<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear Cafe,<div class=""><br class=""></div><div class="">I kinda understand the [Floating](<a href="https://hackage.haskell.org/package/base/docs/GHC-Float.html#t:Floating" class="">https://hackage.haskell.org/package/base/docs/GHC-Float.html#t:Floating</a>) class doesn't care about NaN, as not expecting all floating point implementations to have such semantics.</div><div class=""><br class=""></div><div class="">But [IEEE Silent NaN](<a href="https://en.wikipedia.org/wiki/NaN#Quiet_NaN" class="">https://en.wikipedia.org/wiki/NaN#Quiet_NaN</a>) has become a norm today, I think it deserves more than mere [isNaN](<a href="https://hackage.haskell.org/package/base/docs/GHC-Float.html#v:isNaN" class="">https://hackage.haskell.org/package/base/docs/GHC-Float.html#v:isNaN</a>) in the [RealFloat](<a href="https://hackage.haskell.org/package/base/docs/GHC-Float.html#t:RealFloat" class="">https://hackage.haskell.org/package/base/docs/GHC-Float.html#t:RealFloat</a>) class.</div><div class=""><br class=""></div><div class="">While [Signaling NaN](<a href="https://en.wikipedia.org/wiki/NaN#Signaling_NaN" class="">https://en.wikipedia.org/wiki/NaN#Signaling_NaN</a>) can be an `Exception` triggering bottom like "divide by zero" is, the silent `NaN` feels like a different kind of bottom, or some thing similar to `Nothing` as in the `Num a => Maybe a` monad?</div><div class=""><br class=""></div><div class="">Is Haskell's type system capable of encoding silent NaN as a special kind/type of bottom that handleable?</div><div class=""><br class=""></div><div class="">Though I don't think I've gained correct understanding at all, on "bottom"s, I'm interested in what options we have to encode them, especially ergonomics ways to handle them accordingly.</div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">Compl</div><div class=""><br class=""></div></body></html>