Skip to content

Commit

Permalink
Documentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ekmett committed Jan 12, 2014
1 parent cb95e9c commit 0d35bf2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.markdown
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.10.2
------
* Documentation fixes

0.10.1.2
--------
* Updated to work with `text` 1.0
Expand Down
2 changes: 1 addition & 1 deletion parsers.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: parsers
category: Text, Parsing
version: 0.10.1.2
version: 0.10.2
license: BSD3
cabal-version: >= 1.10
license-file: LICENSE
Expand Down
9 changes: 3 additions & 6 deletions src/Text/Parser/Char.hs
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,17 @@ tab :: CharParsing m => m Char
tab = char '\t' <?> "tab"
{-# INLINE tab #-}

-- | Parses an upper case letter (a character between \'A\' and \'Z\').
-- Returns the parsed character.
-- | Parses an upper case letter. Returns the parsed character.
upper :: CharParsing m => m Char
upper = satisfy isUpper <?> "uppercase letter"
{-# INLINE upper #-}

-- | Parses a lower case character (a character between \'a\' and \'z\').
-- Returns the parsed character.
-- | Parses a lower case character. Returns the parsed character.
lower :: CharParsing m => m Char
lower = satisfy isLower <?> "lowercase letter"
{-# INLINE lower #-}

-- | Parses a letter or digit (a character between \'0\' and \'9\').
-- Returns the parsed character.
-- | Parses a letter or digit. Returns the parsed character.
alphaNum :: CharParsing m => m Char
alphaNum = satisfy isAlphaNum <?> "letter or digit"
{-# INLINE alphaNum #-}
Expand Down

0 comments on commit 0d35bf2

Please sign in to comment.