bellroy/elm-parse-dont-validate/1.0.0

Formerly tricycle/elm-parse-dont-validate. Search finds this package by either name.

Parse.Dont.Validate.String

Set of primitive string parsers

nonEmpty : Parser String () String

Parse a string returning unit as an error if input is empty

uncons : Parser String () ( Char, String )

Parse a string returning unit as an error if input is empty or tuple of first character and the rest of the string otherwise.

int : Parser String () Int

Parse a string returning unit as an error or Int as a result.

float : Parser String () Float

Parse a string returning unit as an error or Float as a result.