simple-parser-0.7.0: Simple parser combinators
Safe HaskellNone
LanguageHaskell2010

SimpleParser.Examples.Sexp

Documentation

newtype Sexp Source #

Constructors

Sexp 

Fields

Instances

Instances details
Eq Sexp Source # 
Instance details

Defined in SimpleParser.Examples.Sexp

Methods

(==) :: Sexp -> Sexp -> Bool #

(/=) :: Sexp -> Sexp -> Bool #

Show Sexp Source # 
Instance details

Defined in SimpleParser.Examples.Sexp

Methods

showsPrec :: Int -> Sexp -> ShowS #

show :: Sexp -> String #

showList :: [Sexp] -> ShowS #

data SexpF a Source #

Constructors

SexpAtom !Atom 
SexpList !(Seq a) 

Instances

Instances details
Functor SexpF Source # 
Instance details

Defined in SimpleParser.Examples.Sexp

Methods

fmap :: (a -> b) -> SexpF a -> SexpF b #

(<$) :: a -> SexpF b -> SexpF a #

Foldable SexpF Source # 
Instance details

Defined in SimpleParser.Examples.Sexp

Methods

fold :: Monoid m => SexpF m -> m #

foldMap :: Monoid m => (a -> m) -> SexpF a -> m #

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

foldr :: (a -> b -> b) -> b -> SexpF a -> b #

foldr' :: (a -> b -> b) -> b -> SexpF a -> b #

foldl :: (b -> a -> b) -> b -> SexpF a -> b #

foldl' :: (b -> a -> b) -> b -> SexpF a -> b #

foldr1 :: (a -> a -> a) -> SexpF a -> a #

foldl1 :: (a -> a -> a) -> SexpF a -> a #

toList :: SexpF a -> [a] #

null :: SexpF a -> Bool #

length :: SexpF a -> Int #

elem :: Eq a => a -> SexpF a -> Bool #

maximum :: Ord a => SexpF a -> a #

minimum :: Ord a => SexpF a -> a #

sum :: Num a => SexpF a -> a #

product :: Num a => SexpF a -> a #

Traversable SexpF Source # 
Instance details

Defined in SimpleParser.Examples.Sexp

Methods

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

sequenceA :: Applicative f => SexpF (f a) -> f (SexpF a) #

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

sequence :: Monad m => SexpF (m a) -> m (SexpF a) #

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

Defined in SimpleParser.Examples.Sexp

Methods

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

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

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

Defined in SimpleParser.Examples.Sexp

Methods

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

show :: SexpF a -> String #

showList :: [SexpF a] -> ShowS #

data Atom Source #

Instances

Instances details
Eq Atom Source # 
Instance details

Defined in SimpleParser.Examples.Sexp

Methods

(==) :: Atom -> Atom -> Bool #

(/=) :: Atom -> Atom -> Bool #

Show Atom Source # 
Instance details

Defined in SimpleParser.Examples.Sexp

Methods

showsPrec :: Int -> Atom -> ShowS #

show :: Atom -> String #

showList :: [Atom] -> ShowS #