| Copyright | (c) Iavor S. Diatchki 2009 |
|---|---|
| License | BSD3 |
| Maintainer | iavor.diatchki@gmail.com |
| Stability | provisional |
| Safe Haskell | Safe |
| Language | Haskell98 |
Parsimony.IO
Description
Utilities for parsing content from files.
- parseFile :: FilePath -> Parser Text a -> IO (Either ParseError a)
- parseLargeFile :: FilePath -> Parser Text a -> IO (Either ParseError a)
- parseBinaryFile :: FilePath -> Parser ByteString a -> IO (Either ParseError a)
- parseLargeBinaryFile :: FilePath -> Parser ByteString a -> IO (Either ParseError a)
- uparseFile :: FilePath -> ParserU u Text a -> u -> IO (Either ParseError a)
- uparseLargeFile :: FilePath -> ParserU u Text a -> u -> IO (Either ParseError a)
- uparseBinaryFile :: FilePath -> ParserU u ByteString a -> u -> IO (Either ParseError a)
- uparseLargeBinaryFile :: FilePath -> ParserU u ByteString a -> u -> IO (Either ParseError a)
Documentation
parseFile :: FilePath -> Parser Text a -> IO (Either ParseError a) #
Parse a text file in one go. This functions loads the whole file in memory.
parseLargeFile :: FilePath -> Parser Text a -> IO (Either ParseError a) #
Parse a text file in chunks. This functions loads the file in chunks.
parseBinaryFile :: FilePath -> Parser ByteString a -> IO (Either ParseError a) #
Parse a binary file in one go. This functions loads the whole file in memory.
parseLargeBinaryFile :: FilePath -> Parser ByteString a -> IO (Either ParseError a) #
Parse a text file in chunks. This functions loads the file in chunks.
uparseFile :: FilePath -> ParserU u Text a -> u -> IO (Either ParseError a) #
Parse a text file in one go, using user state. This functions loads the whole file in memory.
uparseLargeFile :: FilePath -> ParserU u Text a -> u -> IO (Either ParseError a) #
Parse a text file in chunks, using user state. This functions loads the file in chunks.
uparseBinaryFile :: FilePath -> ParserU u ByteString a -> u -> IO (Either ParseError a) #
Parse a binary file in one go, using user state. This functions loads the whole file in memory.
uparseLargeBinaryFile :: FilePath -> ParserU u ByteString a -> u -> IO (Either ParseError a) #
Parse a text file in chunks, using user state. This functions loads the file in chunks.