[Haskell-cafe] Float instance of Data.Bits

Sam Martin sam.martin at geomerics.com
Fri Jul 9 09:29:22 EDT 2010


Is there a particular reason Float, Double, etc do not have instances of Data.Bits in the standard libraries? I note the Haskell 2010 report doesn't include them either.

In fact, I'm not actually sure how you'd implement the instance for floating point types without having some kind of compiler-specific extension, or a c-binding.

Could anyone fill in my missing knowledge here?


More information about the Haskell-Cafe mailing list