| 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 |
Camfort.Specification.Units.Analysis.Consistent
Description
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 Methods showsPrec :: Int -> ConsistencyError -> ShowS # show :: ConsistencyError -> String # showList :: [ConsistencyError] -> ShowS # | |
| Describe ConsistencyError Source # | |
Defined in Camfort.Specification.Units.Analysis.Consistent Methods describe :: ConsistencyError -> Text Source # | |
data ConsistencyReport Source #
A report that summarises unit consistency.
Constructors
| 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 Methods showsPrec :: Int -> ConsistencyReport -> ShowS # show :: ConsistencyReport -> String # showList :: [ConsistencyReport] -> ShowS # | |
| NFData ConsistencyReport Source # | |
Defined in Camfort.Specification.Units.Analysis.Consistent Methods rnf :: ConsistencyReport -> () # | |
| Describe ConsistencyReport Source # | |
Defined in Camfort.Specification.Units.Analysis.Consistent Methods describe :: ConsistencyReport -> Text Source # | |
| ExitCodeOfReport ConsistencyReport Source # | |
Defined in Camfort.Specification.Units.Analysis.Consistent Methods exitCodeOf :: ConsistencyReport -> Int Source # exitCodeOfSet :: [ConsistencyReport] -> Int Source # | |
checkUnits :: UnitAnalysis ConsistencyReport Source #
Check units-of-measure for a program