Copyright | (c) Edward Kmett and Dan Doel 2013-2014 |
---|---|
License | BSD3 |
Maintainer | Dan Doel <dan.doel@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
$setup >>> :m + Text.Groom Ermine.Builtin.Core Data.Int
>>>
putStrLn $ groom (lit (1 :: Int32) `cons` nil :: Core Convention a)
Data [C, C] 1 (glob (Infix R 5) (mkModuleName "ermine" "Prelude") "(::)") [Data [U] 0 (glob Idfix (mkModuleName "ermine" "Prelude") "Literal") [HardCore (Lit (Int 1))], Data [] 0 (glob Idfix (mkModuleName "ermine" "Prelude") "[]") []]
- class Lit a where
- lit :: AsConvention cc => a -> Core cc b
- lits :: AsConvention cc => [a] -> Core cc b
- cons :: AsConvention cc => Core cc a -> Core cc a -> Core cc a
- nil :: Core cc a
- just :: AsConvention cc => Core cc a -> Core cc a
- nothing :: Core cc a
- stringh :: AsConvention cc => Core cc a -> Core cc a
- inth :: AsConvention cc => Core cc a -> Core cc a
- longh :: AsConvention cc => Core cc a -> Core cc a
- cPutStrLn :: AsConvention cc => Core cc a
- cShowInt :: AsConvention cc => Core cc a
- cShowLong :: AsConvention cc => Core cc a
- cShowLongHash :: AsConvention cc => Core cc a
- cAddLong :: AsConvention cc => Core cc a
- cFromIntegerToInt :: AsConvention cc => Core cc a
- cFromIntegerToLong :: AsConvention cc => Core cc a
Host Literals
Lifting of literal values to core.
lit :: AsConvention cc => a -> Core cc b Source
lits :: AsConvention cc => [a] -> Core cc b Source
Lists
cons :: AsConvention cc => Core cc a -> Core cc a -> Core cc a Source
The built-in '::' constructor for a list.
Maybe
prim wrappers
stringh :: AsConvention cc => Core cc a -> Core cc a Source
inth :: AsConvention cc => Core cc a -> Core cc a Source
longh :: AsConvention cc => Core cc a -> Core cc a Source
primops
cPutStrLn :: AsConvention cc => Core cc a Source
cShowInt :: AsConvention cc => Core cc a Source
cShowLong :: AsConvention cc => Core cc a Source
cShowLongHash :: AsConvention cc => Core cc a Source
cAddLong :: AsConvention cc => Core cc a Source
cFromIntegerToInt :: AsConvention cc => Core cc a Source
cFromIntegerToLong :: AsConvention cc => Core cc a Source