RE: Interface Files _ HOWTO?

2000-10-23 Thread Simon Peyton-Jones
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

Re: Overloaded function and implicit parameter passing

2000-10-23 Thread Fergus Henderson
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))