Copyright | (c) DFKI GmbH 2012 |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | Christian.Maeder@dfki.de |
Stability | provisional |
Portability | non-portable(derive Typeable instances) |
Safe Haskell | None |
Automatic derivation of instances via DrIFT-rule ShATermConvertible, Json
for the type(s):
Sign
Morphism
Sentence
Symbol
SymbolKind
MaudeText
Spec
Module
View
Parameter
ModExp
Renaming
ToPartRenaming
Statement
Import
SubsortDecl
Operator
Membership
Equation
Rule
Condition
Attr
StmntAttr
Hook
Term
Type
Sort
Kind
ParamId
ViewId
ModId
LabelId
OpId
Orphan instances
Generic OpId Source # | |
Generic LabelId Source # | |
Generic ModId Source # | |
Generic ViewId Source # | |
Generic ParamId Source # | |
Generic Kind Source # | |
Generic Sort Source # | |
Generic Type Source # | |
Generic Term Source # | |
Generic Hook Source # | |
Generic StmntAttr Source # | |
Generic Attr Source # | |
Generic Condition Source # | |
Generic Rule Source # | |
Generic Equation Source # | |
Generic Membership Source # | |
type Rep Membership :: Type -> Type from :: Membership -> Rep Membership x to :: Rep Membership x -> Membership | |
Generic Operator Source # | |
Generic SubsortDecl Source # | |
type Rep SubsortDecl :: Type -> Type from :: SubsortDecl -> Rep SubsortDecl x to :: Rep SubsortDecl x -> SubsortDecl | |
Generic Import Source # | |
Generic Statement Source # | |
Generic ToPartRenaming Source # | |
type Rep ToPartRenaming :: Type -> Type from :: ToPartRenaming -> Rep ToPartRenaming x to :: Rep ToPartRenaming x -> ToPartRenaming | |
Generic Renaming Source # | |
Generic ModExp Source # | |
Generic Parameter Source # | |
Generic View Source # | |
Generic Module Source # | |
Generic Spec Source # | |
Generic MaudeText Source # | |
Generic SymbolKind Source # | |
type Rep SymbolKind :: Type -> Type from :: SymbolKind -> Rep SymbolKind x to :: Rep SymbolKind x -> SymbolKind | |
Generic Symbol Source # | |
Generic Sentence Source # | |
Generic Sign Source # | |
Generic Morphism Source # | |
FromJSON OpId Source # | |
parseJSON :: Value -> Parser OpId parseJSONList :: Value -> Parser [OpId] | |
FromJSON LabelId Source # | |
parseJSON :: Value -> Parser LabelId parseJSONList :: Value -> Parser [LabelId] | |
FromJSON ModId Source # | |
parseJSON :: Value -> Parser ModId parseJSONList :: Value -> Parser [ModId] | |
FromJSON ViewId Source # | |
parseJSON :: Value -> Parser ViewId parseJSONList :: Value -> Parser [ViewId] | |
FromJSON ParamId Source # | |
parseJSON :: Value -> Parser ParamId parseJSONList :: Value -> Parser [ParamId] | |
FromJSON Kind Source # | |
parseJSON :: Value -> Parser Kind parseJSONList :: Value -> Parser [Kind] | |
FromJSON Sort Source # | |
parseJSON :: Value -> Parser Sort parseJSONList :: Value -> Parser [Sort] | |
FromJSON Type Source # | |
parseJSON :: Value -> Parser Type parseJSONList :: Value -> Parser [Type] | |
FromJSON Term Source # | |
parseJSON :: Value -> Parser Term parseJSONList :: Value -> Parser [Term] | |
FromJSON Hook Source # | |
parseJSON :: Value -> Parser Hook parseJSONList :: Value -> Parser [Hook] | |
FromJSON StmntAttr Source # | |
parseJSON :: Value -> Parser StmntAttr parseJSONList :: Value -> Parser [StmntAttr] | |
FromJSON Attr Source # | |
parseJSON :: Value -> Parser Attr parseJSONList :: Value -> Parser [Attr] | |
FromJSON Condition Source # | |
parseJSON :: Value -> Parser Condition parseJSONList :: Value -> Parser [Condition] | |
FromJSON Rule Source # | |
parseJSON :: Value -> Parser Rule parseJSONList :: Value -> Parser [Rule] | |
FromJSON Equation Source # | |
parseJSON :: Value -> Parser Equation parseJSONList :: Value -> Parser [Equation] | |
FromJSON Membership Source # | |
parseJSON :: Value -> Parser Membership parseJSONList :: Value -> Parser [Membership] | |
FromJSON Operator Source # | |
parseJSON :: Value -> Parser Operator parseJSONList :: Value -> Parser [Operator] | |
FromJSON SubsortDecl Source # | |
parseJSON :: Value -> Parser SubsortDecl parseJSONList :: Value -> Parser [SubsortDecl] | |
FromJSON Import Source # | |
parseJSON :: Value -> Parser Import parseJSONList :: Value -> Parser [Import] | |
FromJSON Statement Source # | |
parseJSON :: Value -> Parser Statement parseJSONList :: Value -> Parser [Statement] | |
FromJSON ToPartRenaming Source # | |
parseJSON :: Value -> Parser ToPartRenaming parseJSONList :: Value -> Parser [ToPartRenaming] | |
FromJSON Renaming Source # | |
parseJSON :: Value -> Parser Renaming parseJSONList :: Value -> Parser [Renaming] | |
FromJSON ModExp Source # | |
parseJSON :: Value -> Parser ModExp parseJSONList :: Value -> Parser [ModExp] | |
FromJSON Parameter Source # | |
parseJSON :: Value -> Parser Parameter parseJSONList :: Value -> Parser [Parameter] | |
FromJSON View Source # | |
parseJSON :: Value -> Parser View parseJSONList :: Value -> Parser [View] | |
FromJSON Module Source # | |
parseJSON :: Value -> Parser Module parseJSONList :: Value -> Parser [Module] | |
FromJSON Spec Source # | |
parseJSON :: Value -> Parser Spec parseJSONList :: Value -> Parser [Spec] | |
FromJSON MaudeText Source # | |
parseJSON :: Value -> Parser MaudeText parseJSONList :: Value -> Parser [MaudeText] | |
FromJSON SymbolKind Source # | |
parseJSON :: Value -> Parser SymbolKind parseJSONList :: Value -> Parser [SymbolKind] | |
FromJSON Symbol Source # | |
parseJSON :: Value -> Parser Symbol parseJSONList :: Value -> Parser [Symbol] | |
FromJSON Sentence Source # | |
parseJSON :: Value -> Parser Sentence parseJSONList :: Value -> Parser [Sentence] | |
FromJSON Sign Source # | |
parseJSON :: Value -> Parser Sign parseJSONList :: Value -> Parser [Sign] | |
FromJSON Morphism Source # | |
parseJSON :: Value -> Parser Morphism parseJSONList :: Value -> Parser [Morphism] | |
ToJSON OpId Source # | |
ToJSON LabelId Source # | |
toEncoding :: LabelId -> Encoding toJSONList :: [LabelId] -> Value toEncodingList :: [LabelId] -> Encoding | |
ToJSON ModId Source # | |
ToJSON ViewId Source # | |
toEncoding :: ViewId -> Encoding toJSONList :: [ViewId] -> Value toEncodingList :: [ViewId] -> Encoding | |
ToJSON ParamId Source # | |
toEncoding :: ParamId -> Encoding toJSONList :: [ParamId] -> Value toEncodingList :: [ParamId] -> Encoding | |
ToJSON Kind Source # | |
ToJSON Sort Source # | |
ToJSON Type Source # | |
ToJSON Term Source # | |
ToJSON Hook Source # | |
ToJSON StmntAttr Source # | |
toEncoding :: StmntAttr -> Encoding toJSONList :: [StmntAttr] -> Value toEncodingList :: [StmntAttr] -> Encoding | |
ToJSON Attr Source # | |
ToJSON Condition Source # | |
toEncoding :: Condition -> Encoding toJSONList :: [Condition] -> Value toEncodingList :: [Condition] -> Encoding | |
ToJSON Rule Source # | |
ToJSON Equation Source # | |
toEncoding :: Equation -> Encoding toJSONList :: [Equation] -> Value toEncodingList :: [Equation] -> Encoding | |
ToJSON Membership Source # | |
toJSON :: Membership -> Value toEncoding :: Membership -> Encoding toJSONList :: [Membership] -> Value toEncodingList :: [Membership] -> Encoding | |
ToJSON Operator Source # | |
toEncoding :: Operator -> Encoding toJSONList :: [Operator] -> Value toEncodingList :: [Operator] -> Encoding | |
ToJSON SubsortDecl Source # | |
toJSON :: SubsortDecl -> Value toEncoding :: SubsortDecl -> Encoding toJSONList :: [SubsortDecl] -> Value toEncodingList :: [SubsortDecl] -> Encoding | |
ToJSON Import Source # | |
toEncoding :: Import -> Encoding toJSONList :: [Import] -> Value toEncodingList :: [Import] -> Encoding | |
ToJSON Statement Source # | |
toEncoding :: Statement -> Encoding toJSONList :: [Statement] -> Value toEncodingList :: [Statement] -> Encoding | |
ToJSON ToPartRenaming Source # | |
toJSON :: ToPartRenaming -> Value toEncoding :: ToPartRenaming -> Encoding toJSONList :: [ToPartRenaming] -> Value toEncodingList :: [ToPartRenaming] -> Encoding | |
ToJSON Renaming Source # | |
toEncoding :: Renaming -> Encoding toJSONList :: [Renaming] -> Value toEncodingList :: [Renaming] -> Encoding | |
ToJSON ModExp Source # | |
toEncoding :: ModExp -> Encoding toJSONList :: [ModExp] -> Value toEncodingList :: [ModExp] -> Encoding | |
ToJSON Parameter Source # | |
toEncoding :: Parameter -> Encoding toJSONList :: [Parameter] -> Value toEncodingList :: [Parameter] -> Encoding | |
ToJSON View Source # | |
ToJSON Module Source # | |
toEncoding :: Module -> Encoding toJSONList :: [Module] -> Value toEncodingList :: [Module] -> Encoding | |
ToJSON Spec Source # | |
ToJSON MaudeText Source # | |
toEncoding :: MaudeText -> Encoding toJSONList :: [MaudeText] -> Value toEncodingList :: [MaudeText] -> Encoding | |
ToJSON SymbolKind Source # | |
toJSON :: SymbolKind -> Value toEncoding :: SymbolKind -> Encoding toJSONList :: [SymbolKind] -> Value toEncodingList :: [SymbolKind] -> Encoding | |
ToJSON Symbol Source # | |
toEncoding :: Symbol -> Encoding toJSONList :: [Symbol] -> Value toEncodingList :: [Symbol] -> Encoding | |
ToJSON Sentence Source # | |
toEncoding :: Sentence -> Encoding toJSONList :: [Sentence] -> Value toEncodingList :: [Sentence] -> Encoding | |
ToJSON Sign Source # | |
ToJSON Morphism Source # | |
toEncoding :: Morphism -> Encoding toJSONList :: [Morphism] -> Value toEncodingList :: [Morphism] -> Encoding | |
ShATermConvertible OpId Source # | |
toShATermAux :: ATermTable -> OpId -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [OpId] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, OpId) fromShATermList' :: Int -> ATermTable -> (ATermTable, [OpId]) | |
ShATermConvertible LabelId Source # | |
toShATermAux :: ATermTable -> LabelId -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [LabelId] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, LabelId) fromShATermList' :: Int -> ATermTable -> (ATermTable, [LabelId]) | |
ShATermConvertible ModId Source # | |
toShATermAux :: ATermTable -> ModId -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [ModId] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, ModId) fromShATermList' :: Int -> ATermTable -> (ATermTable, [ModId]) | |
ShATermConvertible ViewId Source # | |
toShATermAux :: ATermTable -> ViewId -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [ViewId] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, ViewId) fromShATermList' :: Int -> ATermTable -> (ATermTable, [ViewId]) | |
ShATermConvertible ParamId Source # | |
toShATermAux :: ATermTable -> ParamId -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [ParamId] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, ParamId) fromShATermList' :: Int -> ATermTable -> (ATermTable, [ParamId]) | |
ShATermConvertible Kind Source # | |
toShATermAux :: ATermTable -> Kind -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Kind] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Kind) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Kind]) | |
ShATermConvertible Sort Source # | |
toShATermAux :: ATermTable -> Sort -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Sort] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Sort) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Sort]) | |
ShATermConvertible Type Source # | |
toShATermAux :: ATermTable -> Type -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Type] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Type) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Type]) | |
ShATermConvertible Term Source # | |
toShATermAux :: ATermTable -> Term -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Term] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Term) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Term]) | |
ShATermConvertible Hook Source # | |
toShATermAux :: ATermTable -> Hook -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Hook] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Hook) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Hook]) | |
ShATermConvertible StmntAttr Source # | |
toShATermAux :: ATermTable -> StmntAttr -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [StmntAttr] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, StmntAttr) fromShATermList' :: Int -> ATermTable -> (ATermTable, [StmntAttr]) | |
ShATermConvertible Attr Source # | |
toShATermAux :: ATermTable -> Attr -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Attr] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Attr) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Attr]) | |
ShATermConvertible Condition Source # | |
toShATermAux :: ATermTable -> Condition -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Condition] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Condition) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Condition]) | |
ShATermConvertible Rule Source # | |
toShATermAux :: ATermTable -> Rule -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Rule] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Rule) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Rule]) | |
ShATermConvertible Equation Source # | |
toShATermAux :: ATermTable -> Equation -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Equation] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Equation) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Equation]) | |
ShATermConvertible Membership Source # | |
toShATermAux :: ATermTable -> Membership -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Membership] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Membership) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Membership]) | |
ShATermConvertible Operator Source # | |
toShATermAux :: ATermTable -> Operator -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Operator] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Operator) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Operator]) | |
ShATermConvertible SubsortDecl Source # | |
toShATermAux :: ATermTable -> SubsortDecl -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [SubsortDecl] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, SubsortDecl) fromShATermList' :: Int -> ATermTable -> (ATermTable, [SubsortDecl]) | |
ShATermConvertible Import Source # | |
toShATermAux :: ATermTable -> Import -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Import] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Import) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Import]) | |
ShATermConvertible Statement Source # | |
toShATermAux :: ATermTable -> Statement -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Statement] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Statement) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Statement]) | |
ShATermConvertible ToPartRenaming Source # | |
toShATermAux :: ATermTable -> ToPartRenaming -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [ToPartRenaming] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, ToPartRenaming) fromShATermList' :: Int -> ATermTable -> (ATermTable, [ToPartRenaming]) | |
ShATermConvertible Renaming Source # | |
toShATermAux :: ATermTable -> Renaming -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Renaming] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Renaming) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Renaming]) | |
ShATermConvertible ModExp Source # | |
toShATermAux :: ATermTable -> ModExp -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [ModExp] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, ModExp) fromShATermList' :: Int -> ATermTable -> (ATermTable, [ModExp]) | |
ShATermConvertible Parameter Source # | |
toShATermAux :: ATermTable -> Parameter -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Parameter] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Parameter) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Parameter]) | |
ShATermConvertible View Source # | |
toShATermAux :: ATermTable -> View -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [View] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, View) fromShATermList' :: Int -> ATermTable -> (ATermTable, [View]) | |
ShATermConvertible Module Source # | |
toShATermAux :: ATermTable -> Module -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Module] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Module) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Module]) | |
ShATermConvertible Spec Source # | |
toShATermAux :: ATermTable -> Spec -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Spec] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Spec) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Spec]) | |
ShATermConvertible MaudeText Source # | |
toShATermAux :: ATermTable -> MaudeText -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [MaudeText] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, MaudeText) fromShATermList' :: Int -> ATermTable -> (ATermTable, [MaudeText]) | |
ShATermConvertible SymbolKind Source # | |
toShATermAux :: ATermTable -> SymbolKind -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [SymbolKind] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, SymbolKind) fromShATermList' :: Int -> ATermTable -> (ATermTable, [SymbolKind]) | |
ShATermConvertible Symbol Source # | |
toShATermAux :: ATermTable -> Symbol -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Symbol] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Symbol) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Symbol]) | |
ShATermConvertible Sentence Source # | |
toShATermAux :: ATermTable -> Sentence -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Sentence] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Sentence) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Sentence]) | |
ShATermConvertible Sign Source # | |
toShATermAux :: ATermTable -> Sign -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Sign] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Sign) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Sign]) | |
ShATermConvertible Morphism Source # | |
toShATermAux :: ATermTable -> Morphism -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Morphism] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Morphism) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Morphism]) |