logo       

RE: TH bug: msg#00138

lang.haskell.glasgow.bugs

Subject: RE: TH bug

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@xxxxxxxxxxx
[mailto:glasgow-haskell-bugs-
| bounces@xxxxxxxxxxx] On Behalf Of Bulat Ziganshin
| Sent: 20 January 2006 11:00
| To: glasgow-haskell-bugs@xxxxxxxxxxx
| 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@xxxxxxxxxxx,
| or http://sourceforge.net/projects/ghc/.
|
|
|
|
| --
| Best regards,
| Bulat mailto:bulatz@xxxxxxxxxx
|
|
|
| _______________________________________________
| Glasgow-haskell-bugs mailing list
| Glasgow-haskell-bugs@xxxxxxxxxxx
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise