Safe Haskell | Safe-Inferred |
---|---|
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
Validation Results
data CheckResult Source #
Instances
Show CheckResult Source # | |
Defined in Camfort.Specification.Stencils.CheckFrontend showsPrec :: Int -> CheckResult -> ShowS # show :: CheckResult -> String # showList :: [CheckResult] -> ShowS # | |
ExitCodeOfReport CheckResult Source # | |
Defined in Camfort.Specification.Stencils.CheckFrontend exitCodeOf :: CheckResult -> Int Source # exitCodeOfSet :: [CheckResult] -> Int Source # | |
Describe CheckResult Source # | |
Defined in Camfort.Specification.Stencils.CheckFrontend describe :: CheckResult -> Text Source # describeBuilder :: CheckResult -> Builder Source # | |
NFData CheckResult Source # | |
Defined in Camfort.Specification.Stencils.CheckFrontend rnf :: CheckResult -> () # | |
Eq CheckResult Source # | |
Defined in Camfort.Specification.Stencils.CheckFrontend (==) :: CheckResult -> CheckResult -> Bool # (/=) :: CheckResult -> CheckResult -> Bool # |
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 #