[GHC] #11670: Can't infer type

GHC ghc-devs at haskell.org
Thu Mar 3 08:56:13 UTC 2016


#11670: Can't infer type
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Iceland_jack):

 This also fails:

 {{{#!hs
 peek :: Ptr CTimeval -> IO CTimeval
 peek ptr = do
   s :: CLong <- peekElemOff (castPtr ptr) 0 :: IO _
   mus        <- peekElemOff (castPtr ptr) 1
   return (MkCTimeval (s :: CLong) mus)
 }}}

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


More information about the ghc-tickets mailing list