hasktorch-codegen-0.0.1.1: Code generation tools for Hasktorch

Safe HaskellNone
LanguageHaskell2010

CodeGen.Render.Function

Synopsis

Documentation

renderSig :: SigType -> LibType -> CodeGenType -> FilePath -> TemplateType -> ModuleSuffix -> FileSuffix -> (Maybe (LibType, Text), Text, Parsable, [Arg]) -> Text Source #

Render a single function signature.

mkHsname :: LibType -> SigType -> Maybe (LibType, Text) -> Text -> Text Source #

render a haskell function name.

data SigType Source #

Constructors

IsFun 
IsFunPtr 
Instances
Eq SigType Source # 
Instance details

Defined in CodeGen.Render.Function

Methods

(==) :: SigType -> SigType -> Bool #

(/=) :: SigType -> SigType -> Bool #

Ord SigType Source # 
Instance details

Defined in CodeGen.Render.Function

Show SigType Source # 
Instance details

Defined in CodeGen.Render.Function