|
RE: Is this a known bug?: msg#00007lang.haskell.glasgow.bugs
Yes, it's a known bug. You need the HEAD, I'm afraid, where it's been fixed for some time. Simon | -----Original Message----- | From: glasgow-haskell-bugs-bounces@xxxxxxxxxxx [mailto:glasgow-haskell-bugs- | bounces@xxxxxxxxxxx] On Behalf Of Duncan Coutts | Sent: 03 February 2004 20:56 | To: glasgow-haskell-bugs@xxxxxxxxxxx | Subject: Is this a known bug? | | Is this a known TH bug? | | import Language.Haskell.THSyntax | | foo e = $( [| e |] ) | | $ ghc -fglasgow-exts AlternateTH.hs | ghc-6.2: panic! (the `impossible' happened, GHC version 6.2): | nameModule e {- v a8 -} | | Please report it as a compiler bug to glasgow-haskell-bugs@xxxxxxxxxxx, | or http://sourceforge.net/projects/ghc/. | | If don't splice the expression in, there's no problem and there's no | problem if I write it like so: | | foo e = $( [| Nothing |] ) | | ie putting something simple in there rather than a lambda variable bound | outside the quasi-quotes. | | You see, what I'm trying to do is something like: | foo e = $( [| \m -> case m of | Nothing -> False | (Just _) -> True | |] `appE` [| e |] ) | | which is part of my investigations into the feasibility of using TH to | implement partial evaluation. | | Duncan | | _______________________________________________ | 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> |
|---|---|---|
| Previous by Date: | Is this a known bug?, Duncan Coutts |
|---|---|
| Next by Date: | RE: ghc 6.2 gets confused about Main.hi reuse, Simon Marlow |
| Previous by Thread: | Is this a known bug?, Duncan Coutts |
| Next by Thread: | RE: Is this a known bug?, Duncan Coutts |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |