Ticket #1445 (closed bug: fixed)
implicit parameter not hoisted
Description
Try compiling this:
{-# OPTIONS -fglasgow-exts #-}
module Bug where
f :: () -> (?p :: ()) => () -> ()
f _ _ = ();
g :: (?p :: ()) => ()
g = f () ()
Results:
Bug.hs:7:10:
Couldn't match expected type `{?p::()}' against inferred type `()'
In the second argument of `f', namely `()'
In the expression: f () ()
In the definition of `g': g = f () ()
Expected: to compile.
Change History
Note: See
TracTickets for help on using
tickets.
