[project @ 2002-06-08 14:14:08 by panne]
[ghc-base.git] / Text / ParserCombinators / Parsec.hs
1 -----------------------------------------------------------------------------
2 -- |
3 -- Module      :  Text.ParserCombinators.Parsec
4 -- Copyright   :  (c) Daan Leijen 1999-2001
5 -- License     :  BSD-style (see the file libraries/base/LICENSE)
6 -- 
7 -- Maintainer  :  daan@cs.uu.nl
8 -- Stability   :  provisional
9 -- Portability :  portable
10 --
11 -- Parsec, the Fast Monadic Parser combinator library, see
12 -- <http://www.cs.uu.nl/people/daan/parsec.html>.
13 --
14 -- Inspired by:
15 --
16 -- * Graham Hutton and Erik Meijer:
17 --   Monadic Parser Combinators.
18 --   Technical report NOTTCS-TR-96-4. 
19 --   Department of Computer Science, University of Nottingham, 1996. 
20 --   <http://www.cs.nott.ac.uk/Department/Staff/gmh/monparsing.ps>
21 --
22 -- * Andrew Partridge, David Wright: 
23 --   Predictive parser combinators need four values to report errors.
24 --   Journal of Functional Programming 6(2): 355-364, 1996
25 --
26 -- This helper module exports elements from the basic libraries.
27 --
28 -----------------------------------------------------------------------------
29
30 module Text.ParserCombinators.Parsec
31                ( -- complete modules
32                  module Text.ParserCombinators.Parsec.Prim
33                , module Text.ParserCombinators.Parsec.Combinator
34                , module Text.ParserCombinators.Parsec.Char
35                
36                -- module Text.ParserCombinators.Parsec.Error
37                , ParseError   
38                , errorPos   
39                
40                -- module Text.ParserCombinators.Parsec.Pos
41                , SourcePos
42                , SourceName, Line, Column             
43                , sourceName, sourceLine, sourceColumn             
44                , incSourceLine, incSourceColumn
45                , setSourceLine, setSourceColumn, setSourceName
46
47              ) where
48
49 import Text.ParserCombinators.Parsec.Pos            -- textual positions
50 import Text.ParserCombinators.Parsec.Error          -- parse errors
51 import Text.ParserCombinators.Parsec.Prim           -- primitive combinators
52 import Text.ParserCombinators.Parsec.Combinator     -- derived combinators
53 import Text.ParserCombinators.Parsec.Char           -- character parsers
54