[Haskell-cafe] [Haskell] Can Haskell use short floats; i.e. 16 bit floats to save space?
Henning Thielemann
schlepptop at henning-thielemann.de
Sat Mar 1 06:47:42 UTC 2014
moving to Haskell-Cafe ...
Am 01.03.2014 07:09, schrieb KC:
> Can Haskell use short floats; i.e. 16 bit floats to save space?
You could wrap an Int16 in a newtype and implement your own floating
point arithmetic with some bit manipulation and make that instances of
Num, Fractional or numeric-prelude or yap classes.
More information about the Haskell-Cafe
mailing list