Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Camfort.Specification.Stencils.CheckFrontend
Synopsis
- stencilChecking :: ProgramFile SA -> StencilsAnalysis CheckResult
- data CheckResult
- checkFailure :: CheckResult -> Maybe CheckError
- checkWarnings :: CheckResult -> Maybe CheckWarning
- existingStencils :: CheckResult -> [(Specification, SrcSpan, Variable)]
Stencil checking
Validation Results
data CheckResult Source #
Instances
Show CheckResult Source # | |
Defined in Camfort.Specification.Stencils.CheckFrontend Methods showsPrec :: Int -> CheckResult -> ShowS # show :: CheckResult -> String # showList :: [CheckResult] -> ShowS # | |
ExitCodeOfReport CheckResult Source # | |
Defined in Camfort.Specification.Stencils.CheckFrontend | |
Describe CheckResult Source # | |
Defined in Camfort.Specification.Stencils.CheckFrontend | |
NFData CheckResult Source # | |
Defined in Camfort.Specification.Stencils.CheckFrontend Methods rnf :: CheckResult -> () # | |
Eq CheckResult Source # | |
Defined in Camfort.Specification.Stencils.CheckFrontend |
checkFailure :: CheckResult -> Maybe CheckError Source #
Retrieve the checks for invalid stencils from a CheckResult
. Result is
Nothing if there are no invalid checks.
checkWarnings :: CheckResult -> Maybe CheckWarning Source #
Helpers
existingStencils :: CheckResult -> [(Specification, SrcSpan, Variable)] Source #