RE: panic: addImpDecls

"Simon Peyton-Jones" <[email protected]>
Newsgroups gmane.comp.lang.haskell.template
Message-ID <036EAC76E7F5EC4996A3B3C3657D411601243F5B@EUR-MSG-21.europe.corp.microsoft.com>
Strange.  GHC just doesn't allow nested declaration splices -- and gives
a horrible message to boot.  I'm not sure why I hadn't even registered
that point.

Turns out that the way to fix this is closely connected with preparatory
work towards producing *typed* TH syntax trees.

TH has grown quite a long to-do list in the last month.  I'll try to do
something about it before our Xmas release of 6.4.  How urgent is this
particular thing for you?

Simon

| -----Original Message-----
| From: [email protected]
[mailto:[email protected]] On
| Behalf Of Ian Lynagh
| Sent: 21 November 2004 23:59
| To: [email protected]
| Subject: [Template-haskell] panic: addImpDecls
| 
| 
| Hi all,
| 
| If I have
| 
|     module Q () where
| 
|     $( [d|
|              $( [d| foo = 'c' |] )
|          |]
|      )
| 
| or even
| 
|     module Q () where
| 
|     $( [d|
|              $( [] )
|          |]
|      )
| 
| then "ghc -fth --make Q.hs" gives me:
| 
| ghc-6.3: panic! (the `impossible' happened, GHC version 6.3):
|         addImpDecls
| 
| 
| Thanks
| Ian
| 
| _______________________________________________
| template-haskell mailing list
| [email protected]
| http://www.haskell.org/mailman/listinfo/template-haskell
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.