Ticket #1 (closed bug: Fixed)

Opened 12 years ago

Last modified 43 years ago

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: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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

> 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

Changed 12 years ago by simonpj

  • status changed from assigned to closed
Logged In: YES 
user_id=50165

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