Modules 25
Text.Parsec.Text
provisionalConvenience definitions for working with Text.
type GenParser st = Parsec Text.Text st
parseFromFile :: Parser a -> FilePath -> IO (Either ParseError a)
parseFromFile p filePath runs a strict text parser p on the
input read from filePath using readFile. Returns either a ParseError
(Left) or a value of type a (Right).
main = do{ result <- parseFromFile numbers "digits.txt"
; case result of
Left err -> print err
Right xs -> print (sum xs)
}- Maintainer
- aslatter@gmail.com
- Portability
- portable
- Copyright
- (c) Antoine Latter 2011
- License
- BSD-style (see the file libraries/parsec/LICENSE)
Build record and source files
Community contribution. The service has not verified this documentation. The generator reported 3 diagnostics.
Target: Linux on x86-64. Some inferred types and resolved links are not available.
Generator: aihc-haddock-858b1951-web-1
Metadata snapshot: 51a8c38adf37e9558e7835b04b20868626c044e2d2e98e3527943eabd1e09c0a
Open the dependency plan · Download the documentation model
- aihc-base-4.21.2.0 · Core library · Cabal file
- aihc-internal-9.1204.0 · Core library · Cabal file
- aihc-prim-0.13.0 · Core library · Cabal file
- aihc-rts-1.0.2 · Core library · Cabal file
- aihc-template-haskell-2.23.0.0 · Core library · Cabal file
- array-0.5.8.0 · Cabal revision 2 · Cabal file · Source archive
- binary-0.8.9.3 · Cabal revision 0 · Cabal file · Source archive
- bytestring-0.12.2.0 · Cabal revision 1 · Cabal file · Source archive
- containers-0.8.1 · Cabal revision 0 · Cabal file · Source archive
- deepseq-1.5.2.0 · Cabal revision 0 · Cabal file · Source archive
- mtl-2.3.2 · Cabal revision 1 · Cabal file · Source archive
- parsec-3.1.18.0 · Cabal revision 1 · Cabal file · Source archive
- system-cxx-std-lib-1.0 · Core library · Cabal file
- text-2.1.4 · Cabal revision 0 · Cabal file · Source archive
- transformers-0.6.3.0 · Cabal revision 2 · Cabal file · Source archive