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.
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
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
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
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!
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:
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
| 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?
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
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
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
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
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
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))]) [],
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
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
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:
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?
18 matches
Mail list logo