Aaron Denney <[EMAIL PROTECTED]> writes:
> So, I have heard claims that C 99 specifies that a variable v
> of type "complex t" is stored as if declared as t v[2], with
> v[0] the real part and v[1] the imaginary part.
>
> I don't have a copy of the spec at hand. Could someone who does verify
> th
On 2005-01-16, Aaron Denney <[EMAIL PROTECTED]> wrote:
> Basically, what's the best way to deal with C99's complex types?
> Pragmatically, how do I deal with them in function definitions now?
>
> Is there any chance they'll get added to a later version of the
> FFI addendum?
So, I have heard claim
Jeremy Shaw wrote:
Neat! Is there some way I can get access to that information from
within my program ? Maybe something like:
import Language.Haskell.TH.Syntax
instancesOf :: Name -> [Type]
You should be able to use the FFI to import the function from the RTS
just like the run time loader libra
On Sun, 16 Jan 2005 10:07:14 -0800, Jeremy Shaw
<[EMAIL PROTECTED]> wrote:
> At Sun, 16 Jan 2005 12:09:43 +0100,
> Lemmih wrote:
> >
> > On Sun, 16 Jan 2005 00:13:08 -0800, Jeremy Shaw
> > <[EMAIL PROTECTED]> wrote:
> > > Hello,
> > >
> > > Is it possible to write a function that would display all
Marcin 'Qrczak' Kowalczyk wrote:
Convenience. I'm worried that it uses separate types for various
kinds of streams: files, pipes, arrays (private memory), and sockets.
Haskell is statically typed and lacks subsumption. This means that
even though streams are unified by using a class, code which use
At Sun, 16 Jan 2005 12:09:43 +0100,
Lemmih wrote:
>
> On Sun, 16 Jan 2005 00:13:08 -0800, Jeremy Shaw
> <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > Is it possible to write a function that would display all the instances
> > of a class currently in scope[1]?
> >
> > For example, for 'Show a' it
John Meacham <[EMAIL PROTECTED]> writes:
> I was thinking of it as a better implementation of a stream interface
> (when available).
I'm not convinced that the stream interface
(http://www.haskell.org/~simonmar/io/System.IO.html) works at all,
i.e. whether it's complete, implementable and conveni
On Sun, 16 Jan 2005 00:13:08 -0800, Jeremy Shaw
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> Is it possible to write a function that would display all the instances
> of a class currently in scope[1]?
>
> For example, for 'Show a' it should output something like:
>
> The instances of 'Show a' current
Hello,
Is it possible to write a function that would display all the instances
of a class currently in scope[1]?
For example, for 'Show a' it should output something like:
The instances of 'Show a' currently in scope are:
Show Int
Show Float
Show Char
Show ...
Depending on what modules are impo