Combining Module Interfaces
Simon Peyton-Jones
simonpj@microsoft.com
Mon, 10 Dec 2001 01:58:04 -0800
No, GHC just does not support this. GHC tries to avoid duplicating=20
information (which might become inconsistent with catastrophic results),
so C.hi simply records the dependency on A.hi and B.hi.
You must have both of the latter available.
Simon
| -----Original Message-----
| From: Ashley Yakeley [mailto:ashley@semantic.org]=20
| Sent: 07 December 2001 22:03
| To: GHC List
| Subject: Combining Module Interfaces
|=20
|=20
| Is there a way to combine interfaces into a single file?
|=20
| If I have modules A and B, I want to create a module C with all the=20
| exported definitions of A and B such that I can compile=20
| against C.hi file=20
| without needing the A.hi and B.hi files.
|=20
| I tried this:
|=20
| module C (module A,module B) where
| {
| import A;
| import B;
| }
|=20
| ...but if I attempt to compile against C.hi using definitions=20
| from A and=20
| B, GHC complains if I don't have A.hi and B.hi. I want C.hi=20
| to contain=20
| everything that A.hi and B.hi do.
|=20
| --=20
| Ashley Yakeley, Seattle WA
|=20
|=20
| _______________________________________________
| Glasgow-haskell-users mailing list=20
| Glasgow-haskell-users@haskell.org=20
| http://www.haskell.org/mailman/listinfo/glasgow-| haskell-users
|=20