Copyright | (c) Galois Inc, 2015 |
---|---|
License | Apache-2 |
Maintainer | jhendrix@galois.com, lcasburn@galois.com |
Safe Haskell | Safe |
Language | Haskell98 |
Declares internal datatypes for Lean environment, declarations, and certified declarations.
- newtype Env = Env (ForeignPtr Env)
- type EnvPtr = Ptr Env
- type OutEnvPtr = Ptr EnvPtr
- withEnv :: Env -> (Ptr Env -> IO a) -> IO a
- data Decl
- type DeclPtr = Ptr Decl
- type OutDeclPtr = Ptr DeclPtr
- withDecl :: Decl -> (Ptr Decl -> IO a) -> IO a
- data CertDecl
- type CertDeclPtr = Ptr CertDecl
- type OutCertDeclPtr = Ptr CertDeclPtr
- withCertDecl :: CertDecl -> (Ptr CertDecl -> IO a) -> IO a
Environment
Declaration
type OutDeclPtr = Ptr DeclPtr Source
Haskell type for lean_decl*
FFI parameters.
Certified declaration
type CertDeclPtr = Ptr CertDecl Source
Haskell type for lean_cert_decl
FFI parameters.
type OutCertDeclPtr = Ptr CertDeclPtr Source
Haskell type for lean_cert_decl*
FFI parameters.