[GHC] #9086: main :: IO Int does different things with runghc and when compiled

GHC ghc-devs at haskell.org
Sat Jun 7 15:11:49 UTC 2014


#9086: main :: IO Int does different things with runghc and when compiled
------------------------------------------------+--------------------------
        Reporter:  nh2                          |            Owner:
            Type:  bug                          |           Status:  new
        Priority:  normal                       |        Milestone:  7.10.1
       Component:  Compiler                     |          Version:  7.8.2
      Resolution:                               |         Keywords:
Operating System:  Unknown/Multiple             |     Architecture:
 Type of failure:  Incorrect result at runtime  |  Unknown/Multiple
       Test Case:                               |       Difficulty:
        Blocking:                               |  Unknown
                                                |       Blocked By:
                                                |  Related Tickets:
------------------------------------------------+--------------------------

Comment (by nomeata):

 Seems to be a left-over from how commands are handled in `GHCi`, where the
 result of an `IO` action is printed (if it has `Show` and is not `()`, it
 seems).

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9086#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list