RE: Non-exhaustive patterns in basicTypes/Var.lhs

2004-02-03 Thread Simon Peyton-Jones
We can't reproduce this at all.  What version of GHC are you using?  Can
you show a complete script?

Simon

| -Original Message-
| From: [EMAIL PROTECTED]
[mailto:glasgow-haskell-users-
| [EMAIL PROTECTED] On Behalf Of Peter Simons
| Sent: 18 January 2004 19:54
| To: [EMAIL PROTECTED]
| Subject: Non-exhaustive patterns in basicTypes/Var.lhs
| 
| 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
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


RE: GHC kit for Windows

2004-02-03 Thread Simon Peyton-Jones
Graham wrote

| > I note that the GHC kit for Windows includes some of the (I presume)
| > MinGW
| > binutil components, but does not include 'ar'.  I find that 'ar' is
| > needed
| > for building HaXml.  May I suggest that 'ar' also be included in
this
| > kit?

Sigbjorn says

| Adding 'ar' is clearly trivial, but the tools that GHC installers
| include aren't meant to be used by the public, only by GHC
| to avoid having to rely on external tools when compiling&
| linking (e.g., 'gcc' and 'ld' don't work as-is, but need the right
| -B setting). I'm not strongly against it, but adding other dev
| tools does have potential support costs

I'm inclined to agree with Sigbjorn here.  Where would we stop?  GHC
does include some Mingw stuff "in its belly", but you are not supposed
to know or care how GHC does its work.  You certainly aren't expected to
invoke those tools directly.  If you want anything more than GHC, I
think the best thing is to get Mingw or Cygwin or SFU.

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