Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- stencilChecking :: ProgramFile SA -> StencilsAnalysis CheckResult
- data CheckResult
- checkFailure :: CheckResult -> Maybe CheckError
- checkWarnings :: CheckResult -> Maybe CheckWarning
- existingStencils :: CheckResult -> [(Specification, SrcSpan, Variable)]
Stencil checking
stencilChecking :: ProgramFile SA -> StencilsAnalysis CheckResult Source #
Validation Results
data CheckResult Source #
Instances
Eq CheckResult Source # | |
Defined in Camfort.Specification.Stencils.CheckFrontend (==) :: CheckResult -> CheckResult -> Bool # (/=) :: CheckResult -> CheckResult -> Bool # | |
Show CheckResult Source # | |
Defined in Camfort.Specification.Stencils.CheckFrontend showsPrec :: Int -> CheckResult -> ShowS # show :: CheckResult -> String # showList :: [CheckResult] -> ShowS # | |
NFData CheckResult Source # | |
Defined in Camfort.Specification.Stencils.CheckFrontend rnf :: CheckResult -> () # | |
Describe CheckResult Source # | |
Defined in Camfort.Specification.Stencils.CheckFrontend describe :: CheckResult -> Text Source # describeBuilder :: CheckResult -> Builder Source # | |
ExitCodeOfReport CheckResult Source # | |
Defined in Camfort.Specification.Stencils.CheckFrontend exitCodeOf :: CheckResult -> Int Source # exitCodeOfSet :: [CheckResult] -> Int Source # |
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 #