JustParse-2.0: A simple and comprehensive Haskell parsing library

CopyrightCopyright Waived
LicensePublicDomain
Maintainergrantslatton@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

Data.JustParse.Numeric

Description

Parsers for dealing with signed and unsigned Ints and Floats.

Synopsis

Documentation

decFloat :: Stream s Char => Parser s Float Source

Parse a float. If a decimal point is present, it must have at least one digit before and after the decimal point.

decFloat_ :: Stream s Char => Parser s Float Source

Branching version of decFloat.

decInt :: Stream s Char => Parser s Int Source

Reads many decimal digits and returns them as an Int.

decInt_ :: Stream s Char => Parser s Int Source

Branching version of decInt.

hexInt :: Stream s Char => Parser s Int Source

Reads many hexidecimal digits and returns them as an Int.

hexInt_ :: Stream s Char => Parser s Int Source

Branching versino of hexInt.