Beware, to reproduce you need c2hs gtk+hs!
Luckily, I can use the -O switch (does that option mean turn errors OFF?)
to get a perfectly working binary!
ghc -c Get.lhs -o Get.o `c2hs-config --cflags` -fglasgow-exts -package lang
ghc-5.02.1: panic! (the `impossible' happened, GHC version
The native code generator only handles 'foreign import's with a
static target, which is why you're seeing this (HEAD handles
this situation a little bit more gracefully).
Use -fvia-C (or -O, which implicitly does the same thing).
--sigbjorn
- Original Message -
From: Volker Stolz
Thanks for the bug report. I've checked in a fix for 1), but
for 2), I suggest instead of doing
void pj_set_finder( const char *(*)(const char *) );
you express this as
typedef [string]char* (*StringTrans) ([in,string]char* arg1);
void pj_set_finder([in]StringTrans arg);
as HDirect
I guess it's a [mis]feature, since 5.00 worked, but can hardly
imagine anybody could need it.
===
Prelude h-IO.openFile /dev/zero IO.ReadMode
*** Exception: unsupported operation
Action: openFile
Reason: unknown file type
File: /dev/rtf0
Prelude Leaving GHCi.
max@max$cat /dev/zero
C-C
I searched on google, but had no luck.
My program is an implementation of
http://www-aig.jpl.nasa.gov/public/home/gat/lisp-study.html
in haskell, and the dictionary read in is rather large
(900Kb) so I assume most of the space should be [[Char]]
Zxxx is the way GHC encodes operator names
[Apologies for any duplication. Please can you distribute to those who
might be interested...
I am global chair of topic 10, Parallel Programming: Models, Methods and
Programming
Languages, and would welcome submissions from the Haskell community.
Kevin]
* Euro-Par 2002 -
But, to answer your emmediate question:
ZMZM = [] - The list Nil constructor
Z1T = ( ) - The 1-tuple constructor
IIRC, the 1 is the number of commas, so Z1T is the *pair* constructor.
--KW 8-)
--
Keith Wansbrough [EMAIL PROTECTED]
http://www.cl.cam.ac.uk/users/kw217/
University of
I might be dead wrong, in that case I apologize...
I just took the Windows installer and tried to put GHC etc. on my laptop.
I suspect that the installer absolutely wants to put the stuff in Program Files
and doesn't give the user the opportunity to install it on another disk.
Anyway, I have
But, to answer your emmediate question:
ZMZM = [] - The list Nil constructor
Z1T = ( ) - The 1-tuple constructor
IIRC, the 1 is the number of commas, so Z1T is the *pair* constructor.
The comments in OccName.lhs say:
[copying direct from the file]
Before
I suspect you're both right. I seem to remember that it used
to be the way Keith says, but was relatively recently changed to
be the way Robert says.
J
| But, to answer your emmediate question:
|
| ZMZM = [] - The list Nil constructor
| Z1T = ( ) - The 1-tuple constructor
|
|
Well, it's clearly a design choice. But in general laziness does not
come for
free. The choice made by the Haskell designers was that the 'array'
function
can consume and explore all its input before producing any result. It
just
give more scope to the implementor. Nothing too deep.
Simon
You don't say which version of GHC...
GHC 5.02.1 (which I advise you to use) installs in
c:/ghc/ghc-5.02.1
The installer doesn't give you a way to change this. (It should,
but we havn't found out how yet.) But once you have put it there
you can move it if you want.
(Best to mail
I have a class whose instances can extract a field of type a.
Is there a way of referring to that type 'a' in the signatures
of functions that use the class? Sigh! That wasn't very clear.
I'll try explaining via example:
I am trying to define a `Pairable' class, which is an abstraction
of
I'll try explaining via example:
I am trying to define a `Pairable' class, which is an abstraction
of all kinds of pairs: (a,b), Pair a b, etc.
class Ord p = Pairable p where
is_pair :: p - Bool
pair_fst :: Ord a = p - a
I'm really frustrated that modules that you want to compile to
executables have to be named Main. I often have a module with a main
method that I use for testing or whatever (perhaps I want the gained
speed of an executable) but is, for the most part, a module I import
into others. I end up
hi,
the haskell report says that a program should contain
a module called Main, which should export a function called main
of type IO().
there is no requiremnt however that the function main is defined
in the module Main, it could for example be imported from somewhere.
so in your situation
On Fri, 16 Nov 2001, Iavor S. Diatchki wrote:
(snip)
having said all that, there seems to be a bug in ghc (or perhaps
an implementation restriction), which requires that main is defined
in the module Main. the only other haskell implementation i have
(snip)
Actually, what would be nice in
[EMAIL PROTECTED] writes:
I have a class whose instances can extract a field of type a.
Is there a way of referring to that type 'a' in the signatures
of functions that use the class? Sigh! That wasn't very clear.
I'll try explaining via example:
I am trying to define a `Pairable'
Strange, I'm not annoyed by this at all though I supposed to
be. First I make module alone, and have 'module Main' and
'main' function there, then I use it in project, and change
the name to whichever I want and rename or delete the 'main'
function.
Anyway there can be a workaround (I didn't try
19 matches
Mail list logo