External Core bug: "Illegal data constructor name"

2003-03-10 Thread Kirsten Chevalier
If you compile the "lambda" nofib benchmark with -fext-core, GHC won't compile the resulting .hcr file: [EMAIL PROTECTED] lambda]$ ghc -fext-core Main.hs [EMAIL PROTECTED] lambda]$ ghc Main.hcr Illegal data constructor name `Main.StateMonad2' This is using GHC 5.05. -- Kirsten Chevalier * [EMA

RE: deriving problem

2003-03-10 Thread Simon Peyton-Jones
The deriving clause is trying to come up with an instance declaration that looks like instance ??? => Show (S r) where What should the "???" be? Well, to show an S we have to show an (r String) and a (r Int), so they plainly need to be in class Show. But instance declarations must