| Copyright | (c) Galois Inc, 2015 |
|---|---|
| License | Apache-2 |
| Maintainer | jhendrix@galois.com, lcasburn@galois.com |
| Safe Haskell | Trustworthy |
| Language | Haskell98 |
Language.Lean.Internal.Univ
Contents
Description
Internal declarations for Lean universe values together with typeclass instances
for Univ.
- data Univ
- showUniv :: Univ -> String
- showUnivUsing :: Univ -> Options -> String
- univLt :: Univ -> Univ -> Bool
- type UnivPtr = Ptr Univ
- type OutUnivPtr = Ptr UnivPtr
- withUniv :: Univ -> (Ptr Univ -> IO a) -> IO a
- type ListUniv = List Univ
- type ListUnivPtr = Ptr ListUniv
- type OutListUnivPtr = Ptr ListUnivPtr
- withListUniv :: ListUniv -> (Ptr ListUniv -> IO a) -> IO a
Documentation
A Lean universe level
Instances
| Eq Univ Source | |
| Ord Univ Source | |
| Show Univ Source | |
| IsLeanValue Univ (Ptr Univ) Source | |
| IsList (List Univ) Source | Allow |
| Eq (List Univ) Source | |
| Show (List Univ) Source | |
| IsListIso (List Univ) Source | |
| IsLeanValue (List Univ) (Ptr (List Univ)) Source | |
| data List Univ = ListUniv (ForeignPtr (List Univ)) Source | A list of universes (constructor not actually exported) |
| type Item (List Univ) = Univ Source |
showUnivUsing :: Univ -> Options -> String Source
Show a universe with the given options.
Internal Operations
type OutUnivPtr = Ptr UnivPtr Source
Haskell type for lean_univ* FFI parameters.
type ListUnivPtr = Ptr ListUniv Source
Haskell type for lean_list_univ FFI parameters.
type OutListUnivPtr = Ptr ListUnivPtr Source
Haskell type for lean_list_univ* FFI parameters.