Hets - the Heterogeneous Tool Set
Copyright(c) Christian Maeder and Uni Bremen 2002-2005
LicenseGPLv2 or higher, see LICENSE.txt
MaintainerChristian.Maeder@dfki.de
Stabilityprovisional
Portabilityportable
Safe HaskellNone

HasCASL.TypeDecl

Description

analyse type declarations

Synopsis

Documentation

anaFormula :: Annoted Term -> State Env (Maybe (Annoted Term, Annoted Term)) Source #

resolve and type check a formula

mapAnMaybe :: Monad m => (Annoted a -> m (Maybe b)) -> [Annoted a] -> m [Annoted b] Source #

lift a analysis function to annotated items

anaTypeItems :: GenKind -> [Annoted TypeItem] -> State Env [Annoted TypeItem] Source #

analyse annotated type items

dataPatToType :: DatatypeDecl -> State Env DataPat Source #

convert a data type with an analysed type pattern to a data pattern

ana1Datatype :: Annoted DatatypeDecl -> State Env (Maybe DatatypeDecl) Source #

pre-analyse a data type for anaDatatype

anaDatatype :: GenKind -> [DataPat] -> Annoted DatatypeDecl -> State Env (Maybe DatatypeDecl) Source #

analyse a pre-analysed data type given all data patterns of the type item

addDataSen :: [DataPat] -> State Env () Source #

add sentences for data type definitions