[GHC] #12795: Add more types to System.Posix.Types

GHC ghc-devs at haskell.org
Wed Nov 2 01:58:10 UTC 2016


#12795: Add more types to System.Posix.Types
-------------------------------------+-------------------------------------
           Reporter:  DanielG        |             Owner:
               Type:  feature        |            Status:  new
  request                            |
           Priority:  normal         |         Milestone:
          Component:                 |           Version:
  libraries/base                     |
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 A whole lot of types are still missing from `System.Posix.Types` as noted
 in a TODO comment in the code:

 {{{
 --- ToDo: blksize_t, clockid_t, blkcnt_t, fsblkcnt_t, fsfilcnt_t, id_t,
 key_t
 --- suseconds_t, timer_t, useconds_t
 }}}

 Specifically the lack of wrappers for blkcnt_t is causing trouble because
 it's forcing HFuse to re-implement `unix`'s `FileStatus` type to include
 the missing `st_blocks` field. See
 [https://hackage.haskell.org/package/HFuse/docs/System-
 Fuse.html#t:FileStat FileStat docs on Hackage].

 I have patches for `base` and `unix` ready to add wrappers for all the
 types the comment mentions, let's see if I can figure out how to use Phab
 ;)

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


More information about the ghc-tickets mailing list