RE: [Haskell] (GHC) Boot files and instance declarations

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 Simon | -----Original Message----- | From: haskell-bounces@haskell.org [mailto:haskell-bounces@haskell.org] On Behalf Of David House | Sent: 02 May 2006 21:36 | To: haskell@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@gmail.com, http://xmouse.ithium.net | _______________________________________________ | Haskell mailing list | Haskell@haskell.org | http://www.haskell.org/mailman/listinfo/haskell
participants (1)
-
Simon Peyton-Jones