So I got around to it. storable-endian 0.2.3 released, see code: https://github.com/jkff/storable-endian/blob/master/Data/Storable/Endian.hs There's some boilerplate there, but I think it's tractable.
2010/12/25 Eugene Kirpichov <[email protected]>: > Thanks! Now I'll use it in storable-endian as soon as I get around to it :) > > 2010/12/25 Antoine Latter <[email protected]>: >> On Sat, Dec 25, 2010 at 1:31 AM, Eugene Kirpichov <[email protected]> >> wrote: >>> Great! >>> Antoine, would you perhaps then update the cabal description of the >>> package to include the word "endianness" in it? I Ctrl+F-ed "endian" >>> through hackage before writing storable-endian and did not find your >>> package. >>> >> >> It is done! Although I spelled it wrong on my first try. >> >> Take care, >> Antoine >> >>> 2010/12/25 Antoine Latter <[email protected]>: >>>> On Fri, Dec 24, 2010 at 8:08 AM, Henk-Jan van Tuyl <[email protected]> >>>> wrote: >>>>> >>>>> You could use ADNS.Endian.endian from package hsdns in your Setup.hs to >>>>> define endianness at compile time. >>>>> >>>>> Regards, >>>>> Henk-Jan van Tuyl >>>>> >>>> >>>> It looks like I've reimplemented the same thing in its own package: >>>> http://hackage.haskell.org/package/byteorder >>>> >>>> With pretty much the same technique. >>>> >>>> Take care, >>>> Antoine >>>> >>> >>> >>> >>> -- >>> Eugene Kirpichov >>> Senior Software Engineer, >>> Grid Dynamics http://www.griddynamics.com/ >>> >> > > > > -- > Eugene Kirpichov > Senior Software Engineer, > Grid Dynamics http://www.griddynamics.com/ > -- Eugene Kirpichov Senior Software Engineer, Grid Dynamics http://www.griddynamics.com/ _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
