on 79df417 help sign in
69 lines 1.3 kB history raw
1{-# LANGUAGE CPP #-}
2-- |
3-- Module : Streamly.Unicode.Parser
4-- Copyright : (c) 2021 Composewell Technologies
5-- License : BSD-3-Clause
6-- Maintainer : streamly@composewell.com
7-- Stability : released
8-- Portability : GHC
9--
10-- To parse a text input, use the decode routines from
11-- "Streamly.Unicode.Stream" module to convert an input byte stream to a
12-- Unicode Char stream and then use these parsers on the Char stream.
14module Streamly.Unicode.Parser
15 (
16 -- * Setup
17 -- | To execute the code examples provided in this module in ghci, please
18 -- run the following commands first.
19 --
20 -- $setup
22 -- * Single Chars
24 -- Any char
25 char
26 , charIgnoreCase
28 -- Char classes
29 , alpha
30 , alphaNum
31 , letter
32 , ascii
33 , asciiLower
34 , asciiUpper
35 , latin1
36 , lower
37 , upper
38 , mark
39 , printable
40 , punctuation
41 , separator
42 , space
43 , symbol
45 -- Digits
46 , digit
47 , octDigit
48 , hexDigit
49 , numeric
51 -- * Char Sequences
52 , string
53 , stringIgnoreCase
54 , dropSpace
55 , dropSpace1
57 -- * Digit Sequences (Numbers)
58 , decimal
59 , hexadecimal
60 , double
62 -- * Modifiers
63 , signed
64 )
65where
67import Streamly.Internal.Unicode.Parser
69#include "DocTestUnicodeParser.hs"