[GHC] #13498: More storable instances?

GHC ghc-devs at haskell.org
Fri Mar 31 21:28:42 UTC 2017


#13498: More storable instances?
-------------------------------------+-------------------------------------
        Reporter:  wyager            |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  libraries/base    |              Version:  8.0.1
      Resolution:                    |             Keywords:  Storable,
                                     |  Foreign, Ptr
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 wyager):

 > Remember that the prime motivation for Storable is the FFI

 That's a fair argument. But I'm curious; how often do people use the
 various `Storable` array types?  I use `Data.Vector.Storable` a fair
 amount, and if that's a common use case, it makes sense to support it as
 well.

 > nothing is going to stop you from rolling your own

 Which is precisely what I've done here, although I think it could make
 sense to use a standardized, agreed-upon representation known to be
 alignment-safe and have good performance.

 That said, I think you're right that this would be equally well-served by
 a library external to `base`, so on that note I'll close the ticket.

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


More information about the ghc-tickets mailing list