parsimony-1.3: Monadic parser combinators derived from Parsec

Stabilityprovisional
Maintaineriavor.diatchki@gmail.com
Safe HaskellSafe-Infered

Parsimony.IO

Description

Utilities for parsing content from files.

Synopsis

Documentation

parseFile :: FilePath -> Parser Text a -> IO (Either ParseError a)Source

Parse a text file in one go. This functions loads the whole file in memory.

parseLargeFile :: FilePath -> Parser Text a -> IO (Either ParseError a)Source

Parse a text file in chunks. This functions loads the file in chunks.

parseBinaryFile :: FilePath -> Parser ByteString a -> IO (Either ParseError a)Source

Parse a binary file in one go. This functions loads the whole file in memory.

parseLargeBinaryFile :: FilePath -> Parser ByteString a -> IO (Either ParseError a)Source

Parse a text file in chunks. This functions loads the file in chunks.

uparseFile :: FilePath -> ParserU u Text a -> u -> IO (Either ParseError a)Source

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)Source

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)Source

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)Source

Parse a text file in chunks, using user state. This functions loads the file in chunks.