[GHC] #8334: unexpected type inference failure in main
GHC
ghc-devs at haskell.org
Fri Sep 20 14:58:36 CEST 2013
#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
More information about the ghc-tickets
mailing list