katydid-0.4.0.2: A haskell implementation of Katydid

Safe HaskellSafe
LanguageHaskell2010

Data.Katydid.Parser.Parser

Description

This module describes the abstract tree that can be validated by Relapse.

The JSON and XML parsers both are both versions of this type class.

Synopsis

Documentation

class Tree a where Source #

Tree is the type class that should be implemented by a katydid parser. This is implemented by the Json and XML parser.

Minimal complete definition

getLabel, getChildren

Methods

getLabel :: a -> Label Source #

getChildren :: a -> [a] Source #

data Label Source #

Label is a tagged union of all possible value types that can returned by a katydid parser: String, Int, Uint, Double, Bool and Bytes.

Instances
Eq Label Source # 
Instance details

Defined in Data.Katydid.Parser.Parser

Methods

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

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

Ord Label Source # 
Instance details

Defined in Data.Katydid.Parser.Parser

Methods

compare :: Label -> Label -> Ordering #

(<) :: Label -> Label -> Bool #

(<=) :: Label -> Label -> Bool #

(>) :: Label -> Label -> Bool #

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

max :: Label -> Label -> Label #

min :: Label -> Label -> Label #

Show Label Source # 
Instance details

Defined in Data.Katydid.Parser.Parser

Methods

showsPrec :: Int -> Label -> ShowS #

show :: Label -> String #

showList :: [Label] -> ShowS #

Generic Label Source # 
Instance details

Defined in Data.Katydid.Parser.Parser

Associated Types

type Rep Label :: * -> * #

Methods

from :: Label -> Rep Label x #

to :: Rep Label x -> Label #

NFData Label Source # 
Instance details

Defined in Data.Katydid.Parser.Parser

Methods

rnf :: Label -> () #

Tree JsonTree Source # 
Instance details

Defined in Data.Katydid.Parser.Json

type Rep Label Source # 
Instance details

Defined in Data.Katydid.Parser.Parser