Non-exhaustive patterns in basicTypes/Var.lhs

Simon Peyton-Jones simonpj at microsoft.com
Tue Feb 3 17:08:45 EST 2004


We can't reproduce this at all.  What version of GHC are you using?  Can
you show a complete script?

Simon

| -----Original Message-----
| From: glasgow-haskell-users-bounces at haskell.org
[mailto:glasgow-haskell-users-
| bounces at haskell.org] On Behalf Of Peter Simons
| Sent: 18 January 2004 19:54
| To: glasgow-haskell-users at haskell.org
| 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
| Glasgow-haskell-users at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


More information about the Glasgow-haskell-users mailing list