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 consider the
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))
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
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))