You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the following definitions to the new Data.Float module:
-- inf or -infinf::RealFloata=>a
inf =1/0nan::RealFloata=>a
nan =0/0
There are certain cases where you want inf/nan as actual values in a Double field, and the two mechanisms to do so (inf = 1/0 or inf = read "Infinity") aren't very obvious.
This proposal contains two parts, where the second part is the actual ask, and the first part is to create an appropriate location to implement it.
Data.Floattobase(ExportcastWord32ToFloat,castFloatToWord32,castWord64ToDouble,castDoubleToWord64from non-GHC.*module #378)Data.Floatmodule:There are certain cases where you want inf/nan as actual values in a
Doublefield, and the two mechanisms to do so (inf = 1/0orinf = read "Infinity") aren't very obvious.