BNFC3-3.0: A compiler front-end generator.
Safe HaskellNone
LanguageHaskell2010

BNFC.Types.Position

Synopsis

Documentation

data WithPosition a Source #

Constructors

WithPosition 

Fields

Instances

Instances details
Functor WithPosition Source # 
Instance details

Defined in BNFC.Types.Position

Methods

fmap :: (a -> b) -> WithPosition a -> WithPosition b Source #

(<$) :: a -> WithPosition b -> WithPosition a Source #

Foldable WithPosition Source # 
Instance details

Defined in BNFC.Types.Position

Methods

fold :: Monoid m => WithPosition m -> m Source #

foldMap :: Monoid m => (a -> m) -> WithPosition a -> m Source #

foldMap' :: Monoid m => (a -> m) -> WithPosition a -> m Source #

foldr :: (a -> b -> b) -> b -> WithPosition a -> b Source #

foldr' :: (a -> b -> b) -> b -> WithPosition a -> b Source #

foldl :: (b -> a -> b) -> b -> WithPosition a -> b Source #

foldl' :: (b -> a -> b) -> b -> WithPosition a -> b Source #

foldr1 :: (a -> a -> a) -> WithPosition a -> a Source #

foldl1 :: (a -> a -> a) -> WithPosition a -> a Source #

toList :: WithPosition a -> [a] Source #

null :: WithPosition a -> Bool Source #

length :: WithPosition a -> Int Source #

elem :: Eq a => a -> WithPosition a -> Bool Source #

maximum :: Ord a => WithPosition a -> a Source #

minimum :: Ord a => WithPosition a -> a Source #

sum :: Num a => WithPosition a -> a Source #

product :: Num a => WithPosition a -> a Source #

Traversable WithPosition Source # 
Instance details

Defined in BNFC.Types.Position

Methods

traverse :: Applicative f => (a -> f b) -> WithPosition a -> f (WithPosition b) Source #

sequenceA :: Applicative f => WithPosition (f a) -> f (WithPosition a) Source #

mapM :: Monad m => (a -> m b) -> WithPosition a -> m (WithPosition b) Source #

sequence :: Monad m => WithPosition (m a) -> m (WithPosition a) Source #

Decoration WithPosition Source # 
Instance details

Defined in BNFC.Types.Position

Methods

traverseF :: Functor m => (a -> m b) -> WithPosition a -> m (WithPosition b) Source #

distributeF :: Functor m => WithPosition (m a) -> m (WithPosition a) Source #

traverseF2 :: Bifunctor m => (a -> m b c) -> WithPosition a -> m (WithPosition b) (WithPosition c) Source #

distributeF2 :: Bifunctor m => WithPosition (m a b) -> m (WithPosition a) (WithPosition b) Source #

Eq a => Eq (WithPosition a) Source # 
Instance details

Defined in BNFC.Types.Position

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

Defined in BNFC.Types.Position

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

Defined in BNFC.Types.Position

AddCategories (WithPosition ICat) Source #

Directly add to _stUsedCats.

Instance details

Defined in BNFC.Check.Pass1

data WithPosition' a Source #

Constructors

WithPosition' 

Fields

Instances

Instances details
Functor WithPosition' Source # 
Instance details

Defined in BNFC.Types.Position

Methods

fmap :: (a -> b) -> WithPosition' a -> WithPosition' b Source #

(<$) :: a -> WithPosition' b -> WithPosition' a Source #

Foldable WithPosition' Source # 
Instance details

Defined in BNFC.Types.Position

Methods

fold :: Monoid m => WithPosition' m -> m Source #

foldMap :: Monoid m => (a -> m) -> WithPosition' a -> m Source #

foldMap' :: Monoid m => (a -> m) -> WithPosition' a -> m Source #

foldr :: (a -> b -> b) -> b -> WithPosition' a -> b Source #

foldr' :: (a -> b -> b) -> b -> WithPosition' a -> b Source #

foldl :: (b -> a -> b) -> b -> WithPosition' a -> b Source #

foldl' :: (b -> a -> b) -> b -> WithPosition' a -> b Source #

foldr1 :: (a -> a -> a) -> WithPosition' a -> a Source #

foldl1 :: (a -> a -> a) -> WithPosition' a -> a Source #

toList :: WithPosition' a -> [a] Source #

null :: WithPosition' a -> Bool Source #

length :: WithPosition' a -> Int Source #

elem :: Eq a => a -> WithPosition' a -> Bool Source #

maximum :: Ord a => WithPosition' a -> a Source #

minimum :: Ord a => WithPosition' a -> a Source #

sum :: Num a => WithPosition' a -> a Source #

product :: Num a => WithPosition' a -> a Source #

Traversable WithPosition' Source # 
Instance details

Defined in BNFC.Types.Position

Methods

traverse :: Applicative f => (a -> f b) -> WithPosition' a -> f (WithPosition' b) Source #

sequenceA :: Applicative f => WithPosition' (f a) -> f (WithPosition' a) Source #

mapM :: Monad m => (a -> m b) -> WithPosition' a -> m (WithPosition' b) Source #

sequence :: Monad m => WithPosition' (m a) -> m (WithPosition' a) Source #

Decoration WithPosition' Source # 
Instance details

Defined in BNFC.Types.Position

Show a => Show (WithPosition' a) Source # 
Instance details

Defined in BNFC.Types.Position

data Position Source #

Constructors

Position 

Fields

  • posLine :: !Int

    Starting at line, counting from 1. (0 for invalid line.)

  • posCol :: !Int

    Starting at column, counting from 1. (0 for invalid column.)

class ToPosition p where Source #

Something that can be parsed into a Position.

Methods

toPosition :: p -> Position Source #

Instances

Instances details
ToPosition Position Source # 
Instance details

Defined in BNFC.Types.Position

ToPosition (Int, Int) Source # 
Instance details

Defined in BNFC.Types.Position

Methods

toPosition :: (Int, Int) -> Position Source #

class ToPosition' p where Source #

Something that can be parsed into a Position'.

Methods

toPosition' :: p -> Position' Source #

Instances

Instances details
ToPosition' Position Source # 
Instance details

Defined in BNFC.Types.Position

ToPosition' Position' Source # 
Instance details

Defined in BNFC.Types.Position

ToPosition' (Maybe (Int, Int)) Source # 
Instance details

Defined in BNFC.Types.Position

ToPosition' (Int, Int) Source # 
Instance details

Defined in BNFC.Types.Position