A palpable bug, actually originating in the type checker, and shown by
-dcore-lint.
I'll need to think about this one over the w/e
simon
| -----Original Message-----
| From: Ian Lynagh [mailto:igloo@xxxxxxxx]
| Sent: 20 February 2003 18:16
| To: cvs-ghc@xxxxxxxxxxx
| Subject: NoCgInfo
|
|
| Compiling the following module:
|
| module Foo where
|
| foo = [| 5 |]
|
| $(
| [d|
| bar = 5^2
| |]
| )
|
| I'm getting
|
| ghc-5.05: panic! (the `impossible' happened, GHC version 5.05):
| NoCgInfo!
|
| In the -v4 output it looks to me like the problem is between the
|
| ==================== Proto-BCOs ====================
|
| section and
|
| ==================== Desugar ====================
| Rec {
| foo :: Language.Haskell.THSyntax.Expr
| foo = Language.Haskell.THSyntax.lit
| (Language.Haskell.THSyntax.integerL (GHC.Num.S# 5))
| Foo.foo :: Language.Haskell.THSyntax.Expr
| Foo.foo = foo
| bar :: ()
| bar = ^ lit_a1oA lit_a1oB
| Foo.bar :: ()
| Foo.bar = bar
| end Rec }
|
| where lit_a1oA and lit_a1oB are unbound.
|
|
| Thanks
| Ian
|
| _______________________________________________
| Cvs-ghc mailing list
| Cvs-ghc@xxxxxxxxxxx
| http://www.haskell.org/mailman/listinfo/cvs-ghc
|
|