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

SimpleParser.Examples.Json

Documentation

newtype Json Source #

Constructors

Json 

Fields

Instances

Instances details
Eq Json Source # 
Instance details

Defined in SimpleParser.Examples.Json

Methods

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

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

Show Json Source # 
Instance details

Defined in SimpleParser.Examples.Json

Methods

showsPrec :: Int -> Json -> ShowS #

show :: Json -> String #

showList :: [Json] -> ShowS #

data JsonF a Source #

Instances

Instances details
Functor JsonF Source # 
Instance details

Defined in SimpleParser.Examples.Json

Methods

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

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

Foldable JsonF Source # 
Instance details

Defined in SimpleParser.Examples.Json

Methods

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

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

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

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

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

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

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

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

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

toList :: JsonF a -> [a] #

null :: JsonF a -> Bool #

length :: JsonF a -> Int #

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

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

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

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

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

Traversable JsonF Source # 
Instance details

Defined in SimpleParser.Examples.Json

Methods

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

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

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

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

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

Defined in SimpleParser.Examples.Json

Methods

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

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

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

Defined in SimpleParser.Examples.Json

Methods

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

show :: JsonF a -> String #

showList :: [JsonF a] -> ShowS #