That seems like a good idea!

Can you make a feature request at https://gitlab.haskell.org/ghc/ghc/issues and maybe even an merge request?

Cheers,
Simonx

Am Di., 8. Okt. 2019 um 11:09 Uhr schrieb Dannyu NDos <ndospark320@gmail.com>:
I don't know exact sementics of Storable, but it's addable anyway.

instance Storable Ordering where
   sizeOf _          = sizeOf (undefined::HTYPE_INT)
   alignment _       = alignment (undefined::HTYPE_INT)
   peekElemOff p i   = liftM (`compare` (1::HTYPE_INT)) $ peekElemOff (castPtr p) i
   pokeElemOff p i x = pokeElemOff (castPtr p) i (fromIntegral (fromEnum x)::HTYPE_INT)
_______________________________________________
Libraries mailing list
Libraries@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries