rest-rewrite-0.4.3: Rewriting library with online termination checking
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.REST.Types

Synopsis

Documentation

data PPArgs Source #

Arguments used for pretty-printing terms

Constructors

PPArgs 

Fields

  • ppReplace :: [(Text, Text)]

    A list of pairs (search, rep). If any operator starts with search for some element in the list, during the printing the operator is printed with the corresponding rep in place of search.

  • ppInfixOps :: [(Text, Text)]

    A list of pairs (search, rep). If any operator matches search, then it's corresponding term is printed in infix style with operator rep.

  • ppCustom :: MetaTerm -> Maybe Text

    Used to override printing for some terms. When ppCustom m = Just s, then m be printed as s.

data Relation Source #

Constructors

GT 
GTE 
EQ 

Instances

Instances details
Generic Relation Source # 
Instance details

Defined in Language.REST.Types

Associated Types

type Rep Relation :: Type -> Type #

Methods

from :: Relation -> Rep Relation x #

to :: Rep Relation x -> Relation #

Show Relation Source # 
Instance details

Defined in Language.REST.Types

Eq Relation Source # 
Instance details

Defined in Language.REST.Types

Hashable Relation Source # 
Instance details

Defined in Language.REST.Types

Methods

hashWithSalt :: Int -> Relation -> Int #

hash :: Relation -> Int #

type Rep Relation Source # 
Instance details

Defined in Language.REST.Types

type Rep Relation = D1 ('MetaData "Relation" "Language.REST.Types" "rest-rewrite-0.4.3-L4CHsmDzf4PMYNf7CqgfF" 'False) (C1 ('MetaCons "GT" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "GTE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EQ" 'PrefixI 'False) (U1 :: Type -> Type)))

toOrderedSet :: (Eq a, Hashable a, Ord a) => HashSet a -> Set a Source #