sexpresso-1.0.0.2: A flexible library for parsing and printing S-expression

Copyright© 2019 Vincent Archambault
License0BSD
MaintainerVincent Archambault <archambault.v@gmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Data.SExpresso.Parse.Location

Description

The module Data.SExpresso.Parse re-exports the functions and datatypes of this module.

Synopsis

Documentation

data Location Source #

The Location datatype represents a source span

Constructors

Span SourcePos SourcePos 

data Located a Source #

The Located datatype adds a source span to the type a

Constructors

At Location a 
Instances
Eq a => Eq (Located a) Source # 
Instance details

Defined in Data.SExpresso.Parse.Location

Methods

(==) :: Located a -> Located a -> Bool #

(/=) :: Located a -> Located a -> Bool #

Ord a => Ord (Located a) Source # 
Instance details

Defined in Data.SExpresso.Parse.Location

Methods

compare :: Located a -> Located a -> Ordering #

(<) :: Located a -> Located a -> Bool #

(<=) :: Located a -> Located a -> Bool #

(>) :: Located a -> Located a -> Bool #

(>=) :: Located a -> Located a -> Bool #

max :: Located a -> Located a -> Located a #

min :: Located a -> Located a -> Located a #

Show a => Show (Located a) Source # 
Instance details

Defined in Data.SExpresso.Parse.Location

Methods

showsPrec :: Int -> Located a -> ShowS #

show :: Located a -> String #

showList :: [Located a] -> ShowS #

located :: MonadParsec e s m => m a -> m (Located a) Source #

The located function adds a source span to a parser.