
#8334: unexpected type inference failure in main -------------------------------------+------------------------------------ Reporter: carter | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: invalid | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by simonpj): * status: new => closed * resolution: => invalid Comment: `main` only has special behaviour when it's in module `Main`. When it's in some other module, like `PrefetchTest` in this case, there is no implied signature `main :: IO ()`. But if you tell GHC "the main module is `PrefetchTest`" then it all works again: {{{ ghc -c -main-is PrefetchTest PrefetchTest.hs }}} So it all looks fine to me. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8334#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler