This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
Explicitly representing invalid `Int` values in Elm
version 1.0.0
license BSD3
native-modules False
elm-version 0.17.1 <= v < 0.18.0
Tag 1.0.0
Committed At 2016-09-23 09:27:00 UTC
elm-lang/core 4.0.5 <= v < 5.0.0 4.0.5

Modules

README

safe-int

This package implements a way of explicitly representing invalid integers so that you can ensure they don't propagate to weird places in your application (for instance the view). It achieves this by internally modelling which numbers are valid integers and which aren't, and returning a Maybe Int from the get function. So in effect, you always need to explicitly handle invalid calculations at the end of a calculation chain.