camfort-1.0.1: CamFort - Cambridge Fortran infrastructure
Safe HaskellNone
LanguageHaskell2010

Camfort.Specification.Units.Environment

Synopsis

Datatypes and Aliases

data Constraint Source #

A relation between UnitInfos

Instances

Instances details
Eq Constraint Source # 
Instance details

Defined in Camfort.Specification.Units.Environment

Data Constraint Source # 
Instance details

Defined in Camfort.Specification.Units.Environment

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Constraint -> c Constraint #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Constraint #

toConstr :: Constraint -> Constr #

dataTypeOf :: Constraint -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Constraint) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Constraint) #

gmapT :: (forall b. Data b => b -> b) -> Constraint -> Constraint #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Constraint -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Constraint -> r #

gmapQ :: (forall d. Data d => d -> u) -> Constraint -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Constraint -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Constraint -> m Constraint #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Constraint -> m Constraint #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Constraint -> m Constraint #

Ord Constraint Source # 
Instance details

Defined in Camfort.Specification.Units.Environment

Show Constraint Source # 
Instance details

Defined in Camfort.Specification.Units.Environment

Generic Constraint Source # 
Instance details

Defined in Camfort.Specification.Units.Environment

Associated Types

type Rep Constraint :: Type -> Type #

Binary Constraint Source # 
Instance details

Defined in Camfort.Specification.Units.Environment

type Rep Constraint Source # 
Instance details

Defined in Camfort.Specification.Units.Environment

data UnitInfo Source #

Description of the unit of an expression.

Instances

Instances details
Eq UnitInfo Source # 
Instance details

Defined in Camfort.Specification.Units.Environment

Data UnitInfo Source # 
Instance details

Defined in Camfort.Specification.Units.Environment

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UnitInfo -> c UnitInfo #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UnitInfo #

toConstr :: UnitInfo -> Constr #

dataTypeOf :: UnitInfo -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UnitInfo) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UnitInfo) #

gmapT :: (forall b. Data b => b -> b) -> UnitInfo -> UnitInfo #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UnitInfo -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UnitInfo -> r #

gmapQ :: (forall d. Data d => d -> u) -> UnitInfo -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UnitInfo -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UnitInfo -> m UnitInfo #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UnitInfo -> m UnitInfo #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UnitInfo -> m UnitInfo #

Ord UnitInfo Source # 
Instance details

Defined in Camfort.Specification.Units.Environment

Show UnitInfo Source # 
Instance details

Defined in Camfort.Specification.Units.Environment

Generic UnitInfo Source # 
Instance details

Defined in Camfort.Specification.Units.Environment

Associated Types

type Rep UnitInfo :: Type -> Type #

Methods

from :: UnitInfo -> Rep UnitInfo x #

to :: Rep UnitInfo x -> UnitInfo #

Binary UnitInfo Source # 
Instance details

Defined in Camfort.Specification.Units.Environment

Methods

put :: UnitInfo -> Put #

get :: Get UnitInfo #

putList :: [UnitInfo] -> Put #

Out UnitInfo Source # 
Instance details

Defined in Camfort.Specification.Units.Environment

Methods

docPrec :: Int -> UnitInfo -> Doc

doc :: UnitInfo -> Doc

docList :: [UnitInfo] -> Doc

type Rep UnitInfo Source # 
Instance details

Defined in Camfort.Specification.Units.Environment

isMonomorphic :: UnitInfo -> Bool Source #

True iff u is monomorphic (has no parametric polymorphic pieces)

isUnitless :: UnitInfo -> Bool Source #

True iff argument matches one of the unitless constructors

type VV = (Name, Name) Source #

A (unique name, source name) variable

type PP = (Name, Name) Source #

A (unique name, source name) program unit name

Helpers

conParamEq :: Constraint -> Constraint -> Bool Source #

Constraint parametric equality: treat all uses of a parametric abstractions as equivalent to the abstraction.

unitParamEq :: UnitInfo -> UnitInfo -> Bool Source #

Unit parametric equality: treat all uses of a parametric abstractions as equivalent to the abstraction.

toUnitInfo :: UnitOfMeasure -> UnitInfo Source #

Convert parser units to UnitInfo

Modules (instances)

module Data.Data