1 {-# OPTIONS -fglasgow-exts #-}
3 -- !!! Another implicit parameter test, from Alastair Reid
5 module ShouldCompile where
9 type Env = ([(String,Int)],Int)
11 ident1 :: (?env :: Env) => String -> Int
15 y = fromJust (lookup x (fst env))
17 ident2 :: (?env :: Env) => String -> Int
20 y = fromJust (lookup x (fst ?env))
23 -- Two more tests from Jeff Lewis
24 x () = y where y = ?wibble