[Haskell] (GHC) Boot files and instance declarations

Simon Peyton-Jones simonpj at microsoft.com
Wed May 3 03:40:49 EDT 2006

At the moment GHC just doesn't support this, I'm afraid.  It's a
shortcoming, and one that could be fixed, but not in a minute or two.
You'll have to find some other way to reorganise your code, I think.

Incidentally questions specific to GHC belong on ghc-users, to which I
have redirected this message


| -----Original Message-----
| From: haskell-bounces at haskell.org [mailto:haskell-bounces at haskell.org]
On Behalf Of David House
| Sent: 02 May 2006 21:36
| To: haskell at haskell.org
| Subject: [Haskell] (GHC) Boot files and instance declarations
| Hi all. A quick bootfiles question.
| The GHC docs specify not to put instance decls in bootfiles. However,
| what if i need to? For example, say I have a module A where I'm
| importing a module B with the {-# SOURCE #-} pragma. Module A needs to
| know that the types in module B are instances of some typeclasses
| (instance declarations for which are given in module B). How would I
| manage this?
| Thanks in advance.
| --
| -David House, dmhouse at gmail.com, http://xmouse.ithium.net
| _______________________________________________
| Haskell mailing list
| Haskell at haskell.org
| http://www.haskell.org/mailman/listinfo/haskell

More information about the Glasgow-haskell-users mailing list