Re: Transmitting Haskell values

2003-10-29 Thread Glynn Clements
Peter Simons wrote: Joachim Durchholz writes: What sent me first into deep confusion is that I found all of {Text,GHC}.{Read,Show} first, and the Read classes marked as nonportable GHC extensions. Then you will surely love the Foreign.* hierarchy, most notably Foreign.Storable.

Re: File permissions of /tmp files

2003-10-29 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: It might even be possible to create the file and then remove(3) it, right away. The file handle will continue to work, but there is never an entry in the file system. IIRC this is not possible because files are referenced in the different phases by

Re: Transmitting Haskell values

2003-10-29 Thread ketil+haskell
Hal Daume III [EMAIL PROTECTED] writes: What sent me first into deep confusion is that I found all of {Text,GHC}.{Read,Show} first, and the Read classes marked as nonportable GHC extensions. Quite disheartening :-( Well, then I found the Prelude definition (though it's entirely unclear how

unknown symbol `__stginit_List_'

2003-10-29 Thread Josef Svenningsson
Hi! Here's a letter from someone who has next to no clue about what he is doing so have patience and don't assume any knowledge when answering... I'm trying to create a package for ghc. I've struggled quite a lot and gotten this far: (This is when invoking ghci -package yahu) Loading package

Re: unknown symbol `__stginit_List_'

2003-10-29 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: (This is when invoking ghci -package yahu) Loading package base ... linking ... done. Loading package yahu ... linking ... /.../chalmers.se/fs/cab/cs/work/proj/multi/pub/lib/yahu/Yahu/YahuHaskell.o: unknown symbol `__stginit_List_' ghc-6.0.1: panic!

Re: unknown symbol `__stginit_List_'

2003-10-29 Thread Malcolm Wallace
Josef Svenningsson [EMAIL PROTECTED] writes: (This is when invoking ghci -package yahu) Loading package base ... linking ... done. Loading package yahu ... linking ... /.../chalmers.se/fs/cab/cs/work/proj/multi/pub/lib/yahu/Yahu/YahuHaskell.o: unknown symbol `__stginit_List_' ghc-6.0.1:

Templates...

2003-10-29 Thread MR K P SCHUPKE
I would like to create a template to generate type declarations, for example: newtype mytype = myconstructor String I am struggling without an example... how do I do it? Regards, Keean Schupke. ___ Glasgow-haskell-users mailing list

RE: Transmitting Haskell values

2003-10-29 Thread Simon Peyton-Jones
| The GHC versions are simply more efficient versions. Show and Read are | completely portable. | | AIIEE! Now they tell me -- I've optimized one of my programs, and it | now spends most of it's time 'read'ing. So the thing is just to | import GHC(read) instead of using the Prelude version?

Re: Marshalling functions was: Transmitting Haskell values

2003-10-29 Thread Alastair Reid
Is [marshaling functions] something absolutely impossible in Haskell and by what reason? Just because of strong typing (forgive my stupidity ;)? Or are there some deeper theoretical limitations? The big theoretical issue is whether it would provide an Eq or Show instance for - by the

Re: Marshalling functions was: Transmitting Haskell values

2003-10-29 Thread Joachim Durchholz
Alastair Reid wrote: Is [marshaling functions] something absolutely impossible in Haskell and by what reason? Just because of strong typing (forgive my stupidity ;)? Or are there some deeper theoretical limitations? The big theoretical issue is whether it would provide an Eq or Show instance

GHC and Kinds

2003-10-29 Thread Steffen Mazanek
Hello again, I have browsed the GHC commentary and I could not find a lot of information about kinds. But kinds are very important for my implementation! The parser seems to call liftedTypeKind from TypeRep. But in TypeRep we have type Kind = Type What does this mean? I briefly explain the

Re: Transmitting Haskell values

2003-10-29 Thread Joachim Durchholz
Glynn Clements wrote: The problem with Storable is that the representation is architecture-specific. It isn't suitable for implementing a commodity protocol which can be used for communication between different architectures. Just endianness issues, or are there deeper differences? If it's just

Re: Marshalling functions was: Transmitting Haskell values

2003-10-29 Thread C.Reinke
Is [marshaling functions] something absolutely impossible in Haskell and by what reason? Just because of strong typing (forgive my stupidity ;)? Or are there some deeper theoretical limitations? If you're interested in some recent work here, have a look at Clean (similar enough to

Template Haskell...

2003-10-29 Thread MR K P SCHUPKE
Okay, I have got my template working, but its extremely unreadable... could anyone tell me how to make this look more like normal Haskell code? stringType :: String - Q [Dec] stringType s = do x - gensym x return [ Newtype [] s [] (Constr s [(NonStrict,Tcon (TconName String))]) [],

ghc-6.0.1 on OS X Panther build

2003-10-29 Thread Gregory Wright
Hi Wolfgang, I tried building 6.0.1 on Panther using 6.0.1 built on Jaguar. (The build was run under darwinports.) It failed with the following: ==fptools== make all -r; in

Re: ghc-6.0.1 on OS X Panther build

2003-10-29 Thread Wolfgang Thaller
On 29.10.2003, at 21:15, Gregory Wright wrote: Hi Wolfgang, I tried building 6.0.1 on Panther using 6.0.1 built on Jaguar. (The build was run under darwinports.) It failed with the following: [...] Ever see anything like this before? Hmm... now that you mention it, probably yes. There was some

Re: Template Haskell...

2003-10-29 Thread Alastair Reid
Okay, I have got my template working, but its extremely unreadable... could anyone tell me how to make this look more like normal Haskell code? Write some combinators for the more common patterns. Some example patterns are: Types: T1 - ... - Tn (T1, ... Tn) TC T1 ... Tn Expressions:

Re: Transmitting Haskell values

2003-10-29 Thread Glynn Clements
Joachim Durchholz wrote: The problem with Storable is that the representation is architecture-specific. It isn't suitable for implementing a commodity protocol which can be used for communication between different architectures. Just endianness issues, or are there deeper differences?