Copyright | (c) A. Tsogias DFKI Bremen 2011 |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | Alexis.Tsogias@dfki.de |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Data structures and functions for thf THF Signatures. Note: Most of the implenentations support only THF0.
Documentation
type MorphismTHF = DefaultMorphism SignTHF Source #
Instances
Instances
Eq TypeInfo Source # | |
Data TypeInfo Source # | |
Defined in THF.Sign gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TypeInfo -> c TypeInfo gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TypeInfo toConstr :: TypeInfo -> Constr dataTypeOf :: TypeInfo -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TypeInfo) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TypeInfo) gmapT :: (forall b. Data b => b -> b) -> TypeInfo -> TypeInfo gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TypeInfo -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TypeInfo -> r gmapQ :: (forall d. Data d => d -> u) -> TypeInfo -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> TypeInfo -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> TypeInfo -> m TypeInfo gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TypeInfo -> m TypeInfo gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TypeInfo -> m TypeInfo | |
Ord TypeInfo Source # | |
Show TypeInfo Source # | |
Generic TypeInfo | |
FromJSON TypeInfo | |
Defined in THF.ATC_THF parseJSON :: Value -> Parser TypeInfo parseJSONList :: Value -> Parser [TypeInfo] | |
ToJSON TypeInfo | |
Defined in THF.ATC_THF toEncoding :: TypeInfo -> Encoding toJSONList :: [TypeInfo] -> Value toEncodingList :: [TypeInfo] -> Encoding | |
ShATermConvertible TypeInfo | |
Defined in THF.ATC_THF toShATermAux :: ATermTable -> TypeInfo -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [TypeInfo] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, TypeInfo) fromShATermList' :: Int -> ATermTable -> (ATermTable, [TypeInfo]) | |
Pretty TypeInfo Source # | |
type Rep TypeInfo | |
Defined in THF.ATC_THF type Rep TypeInfo = D1 ('MetaData "TypeInfo" "THF.Sign" "main" 'False) (C1 ('MetaCons "TypeInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "typeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Constant) :*: S1 ('MetaSel ('Just "typeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name)) :*: (S1 ('MetaSel ('Just "typeKind") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Kind) :*: S1 ('MetaSel ('Just "typeAnno") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Annotations)))) |
Instances
Eq ConstInfo Source # | |
Data ConstInfo Source # | |
Defined in THF.Sign gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ConstInfo -> c ConstInfo gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ConstInfo toConstr :: ConstInfo -> Constr dataTypeOf :: ConstInfo -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ConstInfo) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ConstInfo) gmapT :: (forall b. Data b => b -> b) -> ConstInfo -> ConstInfo gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ConstInfo -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ConstInfo -> r gmapQ :: (forall d. Data d => d -> u) -> ConstInfo -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> ConstInfo -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> ConstInfo -> m ConstInfo gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ConstInfo -> m ConstInfo gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ConstInfo -> m ConstInfo | |
Ord ConstInfo Source # | |
Show ConstInfo Source # | |
Generic ConstInfo | |
FromJSON ConstInfo | |
Defined in THF.ATC_THF parseJSON :: Value -> Parser ConstInfo parseJSONList :: Value -> Parser [ConstInfo] | |
ToJSON ConstInfo | |
Defined in THF.ATC_THF toEncoding :: ConstInfo -> Encoding toJSONList :: [ConstInfo] -> Value toEncodingList :: [ConstInfo] -> Encoding | |
ShATermConvertible ConstInfo | |
Defined in THF.ATC_THF toShATermAux :: ATermTable -> ConstInfo -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [ConstInfo] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, ConstInfo) fromShATermList' :: Int -> ATermTable -> (ATermTable, [ConstInfo]) | |
Pretty ConstInfo Source # | |
type Rep ConstInfo | |
Defined in THF.ATC_THF type Rep ConstInfo = D1 ('MetaData "ConstInfo" "THF.Sign" "main" 'False) (C1 ('MetaCons "ConstInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "constId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Constant) :*: S1 ('MetaSel ('Just "constName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name)) :*: (S1 ('MetaSel ('Just "constType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Type) :*: S1 ('MetaSel ('Just "constAnno") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Annotations)))) |
toEitherLeftMap :: Map c x -> EitherMap c x Source #
eitherMapHasDiagnosis :: EitherMap c x -> Bool Source #
eitherMapGetDiagnosis :: EitherMap c x -> [Diagnosis] Source #
eitherMapGetMap :: EitherMap c x -> Map c x Source #