News for hackers. Stuff that matters.
Re:The friendship between Haskell and C by light_hue_1 on Friday March 17, 2023 @10:40AM (#35197701)
You need to enable floating point trapping. It's trivial, but it's not on by default.

Although, in that case, this function would still be pure as far as Haskell is concerned. Because its output only depends on its input. Interrupts/exceptions are outside of the scope of the type system as far as an individual function goes.

There are no comments on this comment yet.