Bryan O'Sullivan avatar Bryan O'Sullivan committed 143f563

Rename some functions.

Comments (0)

Files changed (1)

src/Data/ParserCombinators/ByteStringParser/Internal.hs

 
     -- * Things like in @Parsec.Char@
     , satisfy
-    , anyChar
-    , char
-    , notChar
+    , anyWord8
+    , word8
+    , notWord8
     , string
     , stringTransform
 
              Nothing -> unParser (nextChunk >> satisfy p) s
 {-# INLINE satisfy #-}
 
-anyChar :: Parser Word8
-anyChar = satisfy $ const True
-{-# INLINE anyChar #-}
+anyWord8 :: Parser Word8
+anyWord8 = satisfy $ const True
+{-# INLINE anyWord8 #-}
 
 -- | Satisfy a specific character.
-char :: Word8 -> Parser Word8
-char c = satisfy (== c) <?> show c
-{-# INLINE char #-}
+word8 :: Word8 -> Parser Word8
+word8 c = satisfy (== c) <?> show c
+{-# INLINE word8 #-}
 
 -- | Satisfy a specific character.
-notChar :: Word8 -> Parser Word8
-notChar c = satisfy (/= c) <?> "not " ++ show c
-{-# INLINE notChar #-}
+notWord8 :: Word8 -> Parser Word8
+notWord8 c = satisfy (/= c) <?> "not " ++ show c
+{-# INLINE notWord8 #-}
 
 sepBy :: Parser a -> Parser s -> Parser [a]
 sepBy p s = liftM2 (:) p ((s >> sepBy1 p s) <|> return []) <|> return []
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.