Skip to content

Make Status a bit more safe and signature friendly #158

@paluh

Description

@paluh

I love simplicity and efficiency of the current Status representation. I wonder if we want to add a tiny layer of typing around it (so we have readable signatures):

foreign import data Status :: Type

toInt :: Status -> Into
toInt = unsafeCoerce

continue :: Status
continue = unsafeCoerce 100

ok :: Status
ok = unsafeCoerce 200

...

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