Skip to content

Delete Signedness #4

Open
Open
@jamesdbrock

Description

@jamesdbrock

foreign import data Signedness :: Type

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions