Re: Overloaded function and implicit parameter passing

2000-10-27 Thread Jeffrey R. Lewis
José Romildo Malaquias wrote: > Hi. > > While experimenting with the implicit parameter > extension to Haskell 98, implemented in GHC 4.08.1 > and latest Hugs, I came accross a difference among > those implementations regarding overloading functions > with implicit parameters. > > As a test consi

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 = 10

Overloaded function and implicit parameter passing

2000-10-23 Thread José Romildo Malaquias
Hi. While experimenting with the implicit parameter extension to Haskell 98, implemented in GHC 4.08.1 and latest Hugs, I came accross a difference among those implementations regarding overloading functions with implicit parameters. As a test consider the program - cut