Copyright | (c) 2017 Dominic Orchard Andrew Rice Mistral Contrastin Matthew Danish |
---|---|
License | Apache-2.0 |
Maintainer | dom.orchard@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data ConsistencyError
- data ConsistencyReport
- = forall a. Consistent (ProgramFile a) Int
- | Inconsistent ConsistencyError
- checkUnits :: UnitAnalysis ConsistencyReport
Documentation
data ConsistencyError Source #
Instances
Show ConsistencyError Source # | |
Defined in Camfort.Specification.Units.Analysis.Consistent showsPrec :: Int -> ConsistencyError -> ShowS # show :: ConsistencyError -> String # showList :: [ConsistencyError] -> ShowS # | |
Describe ConsistencyError Source # | |
Defined in Camfort.Specification.Units.Analysis.Consistent describe :: ConsistencyError -> Text Source # |
data ConsistencyReport Source #
A report that summarises unit consistency.
forall a. Consistent (ProgramFile a) Int | All units were consistent. |
Inconsistent ConsistencyError | An inconsistency was found in units of the program. |
Instances
Show ConsistencyReport Source # | |
Defined in Camfort.Specification.Units.Analysis.Consistent showsPrec :: Int -> ConsistencyReport -> ShowS # show :: ConsistencyReport -> String # showList :: [ConsistencyReport] -> ShowS # | |
NFData ConsistencyReport Source # | |
Defined in Camfort.Specification.Units.Analysis.Consistent rnf :: ConsistencyReport -> () # | |
Describe ConsistencyReport Source # | |
ExitCodeOfReport ConsistencyReport Source # | |
Defined in Camfort.Specification.Units.Analysis.Consistent exitCodeOf :: ConsistencyReport -> Int Source # exitCodeOfSet :: [ConsistencyReport] -> Int Source # |
checkUnits :: UnitAnalysis ConsistencyReport Source #
Check units-of-measure for a program