Safe Haskell | None |
---|---|
Language | Haskell98 |
- hsSpecificationP :: ModuleName -> [(SourcePos, String)] -> [BPspec] -> Either [Error] (ModName, BareSpec)
- specSpecificationP :: SourceName -> String -> Either Error (ModName, BareSpec)
- singleSpecP :: SourcePos -> String -> Either Error BPspec
- type BPspec = Pspec (Located BareType) LocSymbol
- data Pspec ty ctor
- = Meas (Measure ty ctor)
- | Assm (LocSymbol, ty)
- | Asrt (LocSymbol, ty)
- | LAsrt (LocSymbol, ty)
- | Asrts ([LocSymbol], (ty, Maybe [Located Expr]))
- | Impt Symbol
- | DDecl DataDecl
- | NTDecl DataDecl
- | Incl FilePath
- | Invt ty
- | IAlias (ty, ty)
- | Alias (RTAlias Symbol BareType)
- | EAlias (RTAlias Symbol Expr)
- | Embed (LocSymbol, FTycon)
- | Qualif Qualifier
- | Decr (LocSymbol, [Int])
- | LVars LocSymbol
- | Lazy LocSymbol
- | Insts (LocSymbol, Maybe Int)
- | HMeas LocSymbol
- | Reflect LocSymbol
- | Inline LocSymbol
- | ASize LocSymbol
- | HBound LocSymbol
- | PBound (Bound ty Expr)
- | Pragma (Located String)
- | CMeas (Measure ty ())
- | IMeas (Measure ty ctor)
- | Class (RClass ty)
- | RInst (RInstance ty)
- | Varia (LocSymbol, [Variance])
- | BFix ()
- | Define (LocSymbol, Symbol)
- parseSymbolToLogic :: SourceName -> String -> Either Error LogicMap
Documentation
hsSpecificationP :: ModuleName -> [(SourcePos, String)] -> [BPspec] -> Either [Error] (ModName, BareSpec) Source #
Top Level Parsing API -----------------------------------------------------
Used to parse .hs and .lhs files (via ApiAnnotations)
specSpecificationP :: SourceName -> String -> Either Error (ModName, BareSpec) Source #
Used to parse .spec files
Meas (Measure ty ctor) | |
Assm (LocSymbol, ty) | |
Asrt (LocSymbol, ty) | |
LAsrt (LocSymbol, ty) | |
Asrts ([LocSymbol], (ty, Maybe [Located Expr])) | |
Impt Symbol | |
DDecl DataDecl | |
NTDecl DataDecl | |
Incl FilePath | |
Invt ty | |
IAlias (ty, ty) | |
Alias (RTAlias Symbol BareType) | |
EAlias (RTAlias Symbol Expr) | |
Embed (LocSymbol, FTycon) | |
Qualif Qualifier | |
Decr (LocSymbol, [Int]) | |
LVars LocSymbol | |
Lazy LocSymbol | |
Insts (LocSymbol, Maybe Int) | |
HMeas LocSymbol | |
Reflect LocSymbol | |
Inline LocSymbol | |
ASize LocSymbol | |
HBound LocSymbol | |
PBound (Bound ty Expr) | |
Pragma (Located String) | |
CMeas (Measure ty ()) | |
IMeas (Measure ty ctor) | |
Class (RClass ty) | |
RInst (RInstance ty) | |
Varia (LocSymbol, [Variance]) | |
BFix () | |
Define (LocSymbol, Symbol) |
parseSymbolToLogic :: SourceName -> String -> Either Error LogicMap Source #