Re: Talking with the compiler

2004-01-18 Thread Ketil Malde
[EMAIL PROTECTED] (Hans Nikolaus Beck) writes:

 in order to build a programming environement, it would be nice to ask
 the GHC about symbols etc found in a given Haskell program.

I suppose a programming environment could talk to GHCi (which provides
commands like :type, :info, :browse to explore the currently defined
symbols)?

-kzm
-- 
If I haven't seen further, it is by standing in the footprints of giants
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Talking with the compiler

2004-01-18 Thread Hans Nikolaus Beck
Hi,

Am 18.01.2004 um 11:31 schrieb Ketil Malde:

[EMAIL PROTECTED] (Hans Nikolaus Beck) writes:

in order to build a programming environement, it would be nice to ask
the GHC about symbols etc found in a given Haskell program.
I suppose a programming environment could talk to GHCi (which provides
commands like :type, :info, :browse to explore the currently defined
symbols)?
I've look shortly at the GHCi documentation. So I think it would be 
possible to include a GHC engine into a IDE application by 
redirecting input and output from GHCi to pipes (I rembemer that emacs 
used something similar for doing it's compile stuff). But that's 
hardcore UNIX,  I've forgot how to do that  :-(((

Greetings

Hans
-kzm
--
If I haven't seen further, it is by standing in the footprints of 
giants

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Non-exhaustive patterns in basicTypes/Var.lhs

2004-01-18 Thread Peter Simons
QuickCheck's 'generate' function works fine in GHCi, but
only for the _first_ time I call it. After that, I get an
error:

 | Ok, modules loaded: Main.
 | *Main generate 3 (mkStdGen 28) (return 'x')
 | Loading package QuickCheck ... linking ... done.
 | 'x'
 |
 | *Main generate 3 (mkStdGen 28) (return 'x')
 | *** Exception: basicTypes/Var.lhs:226:32-58: Non-exhaustive
 | patterns in record update

Peter

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users