Compile the module from bottom to top, with -c. Then link. THus
ghc -c MyList.hs
ghc -c ListFun.hs
...etc...
ghc -c Main.hs
ghc -o MyApp MyList.o ListFun.o ... Main.o
Simon
| -Original Message-
| From: Ingo Sander [mailto:[EMAIL PROTECTED]]
| Sent: 20 October 2000 17:09
| To: [EMAIL
On 23-Oct-2000, José Romildo Malaquias [EMAIL PROTECTED] wrote:
- cut here
module Main where
class C a where
f :: (?env :: Integer) = a - Integer
instance C Integer where
f x = ?env + x
main = putStrLn (show (f (45::Integer) with ?env = 100))