ghci `Probable fix' non-exhaustive pattern exception
Simon Peyton-Jones
simonpj at microsoft.com
Fri Feb 25 09:16:11 EST 2005
Good bug report. Fixed!
Simon
| -----Original Message-----
| From: glasgow-haskell-bugs-bounces at haskell.org
[mailto:glasgow-haskell-bugs-
| bounces at haskell.org] On Behalf Of Remi Turk
| Sent: 20 February 2005 18:12
| To: glasgow-haskell-bugs at haskell.org
| Subject: ghci `Probable fix' non-exhaustive pattern exception
|
| Good evening,
|
| the following says it all:
|
| ~% /var/tmp/ghc/bin/ghci /tmp/foo.hs
| ___ ___ _
| / _ \ /\ /\/ __(_)
| / /_\// /_/ / / | | GHC Interactive, version 6.4.20050215, for
Haskell 98.
| / /_\\/ __ / /___| | http://www.haskell.org/ghc/
| \____/\/ /_/\____/|_| Type :? for help.
|
| Loading package base-1.0 ... linking ... done.
| Compiling Main ( /tmp/foo.hs, interpreted )
|
| /tmp/foo.hs:64:6:
| No instance for (Show c)
| arising from use of `show' at /tmp/foo.hs:64:6-9
| Probable fix:*** Exception: typecheck/TcSimplify.lhs:2389:8-82:
Non-exhaustive patterns in
| function add_ors
|
| >
|
|
| The "work-in-progress" source causing it is attached.
|
| Happy hacking,
| Remi
|
| --
| Nobody can be exactly like me. Even I have trouble doing it.
More information about the Glasgow-haskell-bugs
mailing list