regex-applicative-0.3.3.1: Regex-based parsing with applicative interface

Safe HaskellSafe
LanguageHaskell2010

Text.Regex.Applicative.Common

Contents

Description

Collection of commonly used regular expressions.

Synopsis

Digits

digit :: Num a => RE Char a Source #

Decimal digit, i.e. '0'..'9'

hexDigit :: Num a => RE Char a Source #

Hexadecimal digit i.e. '0'..'9', 'a'..'f', 'A'..'F'.

Numbers

signed :: Num a => RE Char a -> RE Char a Source #

Add optional sign

decimal :: Num a => RE Char a Source #

Parse decimal number without sign.

hexadecimal :: Num a => RE Char a Source #

Parse decimal number without sign.