Open
Description
purescript-int64/src/Data/Int64/Internal.purs
Line 113 in 6cba8be
The thing of it is, the foreign JavaScript Long
object stores an unsigned
boolean flag which indicates whether or not the integer is signed or unsigned. Therefore this type-level Signedness
is redundant, because that information is always available at runtime by inspecting the unsigned
flag.
The unsigned
flag is stupid and the long.js authors should have left it out and kept that information at the type level with something like the Signedness
parameter. But that's not how things work in JavaScript world.
Metadata
Metadata
Assignees
Labels
No labels