Opened 14 years ago

Closed 14 years ago

Last modified 46 years ago

#1 closed bug (Fixed)

Implicit parameters cause strange behavi

Reported by: nobody Owned by: nobody
Priority: normal Milestone:
Component: Compiler Version: 5.0
Keywords: Cc:
Operating System: Architecture:
Type of failure: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


ghc-5.00.1 (with glasgow-exts) compiles the following

> foo :: ((?x :: Int) => b) -> Int -> b
> foo s z = s with ?x = z
> main = foo (print ?x) 42

Running the generated code prints nothing. (No output
is produced
even if we add putStr "Hello world\n" before the call
to foo).

Change History (1)

comment:1 Changed 14 years ago by simonpj

  • Status changed from assigned to closed
Logged In: YES 

Works fine with GHC 5.02 (about to be released)
Note: See TracTickets for help on using tickets.