Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Ann exp a where
- data Signature exp a where
- lam :: VarPred exp a => (exp a -> Signature exp b) -> Signature exp (a -> b)
- name :: VarPred exp a => String -> (exp a -> Signature exp b) -> Signature exp (a -> b)
- ret :: VarPred exp a => String -> exp a -> Signature exp a
- ptr :: VarPred exp a => String -> exp a -> Signature exp a
- arg :: VarPred exp a => Ann exp a -> (exp a -> exp b) -> (exp b -> Signature exp c) -> Signature exp (a -> c)
- translateFunction :: forall m exp a. (MonadC m, CompExp exp) => Signature exp a -> m ()
Language
Signature annotations
Combinators
arg :: VarPred exp a => Ann exp a -> (exp a -> exp b) -> (exp b -> Signature exp c) -> Signature exp (a -> c) Source
Compilation
translateFunction :: forall m exp a. (MonadC m, CompExp exp) => Signature exp a -> m () Source
Compile a function Signature
to C code