[GHC] #9079: Foreign.C.Types in haskell2010

GHC ghc-devs at haskell.org
Tue May 6 07:57:31 UTC 2014


#9079: Foreign.C.Types in haskell2010
------------------------------------------+--------------------------------
        Reporter:  tensor5                |            Owner:
            Type:  bug                    |           Status:  closed
        Priority:  normal                 |        Milestone:
       Component:  libraries/haskell2010  |          Version:  7.8.2
      Resolution:  worksforme             |         Keywords:
Operating System:  Unknown/Multiple       |     Architecture:
 Type of failure:  None/Unknown           |  Unknown/Multiple
       Test Case:                         |       Difficulty:  Unknown
        Blocking:                         |       Blocked By:
                                          |  Related Tickets:
------------------------------------------+--------------------------------
Changes (by simonpj):

 * cc: core-libraries-committee@… (added)
 * status:  new => closed
 * resolution:   => worksforme


Comment:

 Interesting.  `Foreign.C.Types` does export `CInt(..)`.  And compiling the
 module you show works just fine for me:
 {{{
 bash$ ghc --version
 The Glorious Glasgow Haskell Compilation System, version 7.8.2

 bash$ ghc -c T9079.hs -fforce-recomp
 bash$ cat T9079.hs
 module T9079 where

 import Foreign.C

 foreign import ccall unsafe "sys/mount.h umount" umount :: CString -> IO
 CInt
 }}}
 Perhaps you aren't using 7.8.2?  I'll close as "worksforme" but if you
 disagree then please do re-open with more details.

 Simon

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


More information about the ghc-tickets mailing list