TH bug
Simon Peyton-Jones
simonpj at microsoft.com
Fri Jan 20 12:31:01 EST 2006
Yes, pattern brackets are not supported yet. They are very tricky. (The
manual doesn't mention them.)
I'll improve the error message though!
S
| -----Original Message-----
| From: glasgow-haskell-bugs-bounces at haskell.org
[mailto:glasgow-haskell-bugs-
| bounces at haskell.org] On Behalf Of Bulat Ziganshin
| Sent: 20 January 2006 11:00
| To: glasgow-haskell-bugs at haskell.org
| Cc: Simon Peyton-Jones
| Subject: TH bug
|
| Hello ,
|
| attempt to compile this module:
|
| {-# OPTIONS_GHC -fglasgow-exts -fth #-}
| import Language.Haskell.TH
| f = match [p|0|] [|return ()|] []
|
|
| produce the following error:
|
| ghc.EXE: panic! (the `impossible' happened, GHC version 6.4.1):
| typecheck/TcSplice.lhs:(128,0)-(150,44): Non-exhaustive
patterns in function tc_bracket
|
|
| Please report it as a compiler bug to
glasgow-haskell-bugs at haskell.org,
| or http://sourceforge.net/projects/ghc/.
|
|
|
|
| --
| Best regards,
| Bulat mailto:bulatz at HotPOP.com
|
|
|
| _______________________________________________
| Glasgow-haskell-bugs mailing list
| Glasgow-haskell-bugs at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
More information about the Glasgow-haskell-bugs
mailing list