Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data HModule = HModule {
- lib :: LibType
- extensions :: [Text]
- imports :: [Text]
- typeDefs :: [(Text, Text)]
- header :: FilePath
- typeTemplate :: TemplateType
- suffix :: ModuleSuffix
- fileSuffix :: FileSuffix
- bindings :: [Function]
- modOutDir :: TextPath
- isTemplate :: CodeGenType
- newtype ModuleSuffix = ModuleSuffix {
- textSuffix :: Text
- newtype FileSuffix = FileSuffix {}
- newtype TextPath = TextPath {}
- makeModule :: LibType -> TextPath -> CodeGenType -> FilePath -> ModuleSuffix -> FileSuffix -> TemplateType -> [Function] -> HModule
- data TypeCategory
- newtype FunctionName = FunctionName Text
- newtype CRep = CRep Text
- newtype HsRep = HsRep Text
- stripModule :: HsRep -> Text
- data CTensor = CTensor HsRep CRep
- data CReal = CReal HsRep CRep
- data CAccReal = CAccReal HsRep CRep
- data CStorage = CStorage HsRep CRep
- class HasAlias t where
Documentation
HModule | |
|
newtype ModuleSuffix Source #
Instances
newtype FileSuffix Source #
Instances
makeModule :: LibType -> TextPath -> CodeGenType -> FilePath -> ModuleSuffix -> FileSuffix -> TemplateType -> [Function] -> HModule Source #
newtype FunctionName Source #
a concrete type for function names
Instances
Eq FunctionName Source # | |
Defined in CodeGen.Types.HsOutput (==) :: FunctionName -> FunctionName -> Bool # (/=) :: FunctionName -> FunctionName -> Bool # | |
Ord FunctionName Source # | |
Defined in CodeGen.Types.HsOutput compare :: FunctionName -> FunctionName -> Ordering # (<) :: FunctionName -> FunctionName -> Bool # (<=) :: FunctionName -> FunctionName -> Bool # (>) :: FunctionName -> FunctionName -> Bool # (>=) :: FunctionName -> FunctionName -> Bool # max :: FunctionName -> FunctionName -> FunctionName # min :: FunctionName -> FunctionName -> FunctionName # | |
Show FunctionName Source # | |
Defined in CodeGen.Types.HsOutput showsPrec :: Int -> FunctionName -> ShowS # show :: FunctionName -> String # showList :: [FunctionName] -> ShowS # | |
IsString FunctionName Source # | |
Defined in CodeGen.Types.HsOutput fromString :: String -> FunctionName # | |
Hashable FunctionName Source # | |
Defined in CodeGen.Types.HsOutput hashWithSalt :: Int -> FunctionName -> Int hash :: FunctionName -> Int |
stripModule :: HsRep -> Text Source #
Instances
Eq CTensor Source # | |
Ord CTensor Source # | |
Show CTensor Source # | |
Generic CTensor Source # | |
Hashable CTensor Source # | |
Defined in CodeGen.Types.HsOutput | |
HasAlias CTensor Source # | |
type Rep CTensor Source # | |
Defined in CodeGen.Types.HsOutput type Rep CTensor = D1 (MetaData "CTensor" "CodeGen.Types.HsOutput" "hasktorch-codegen-0.0.1.1-inplace" False) (C1 (MetaCons "CTensor" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 HsRep) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CRep))) |
Instances
Eq CReal Source # | |
Ord CReal Source # | |
Show CReal Source # | |
Generic CReal Source # | |
Hashable CReal Source # | |
Defined in CodeGen.Types.HsOutput | |
HasAlias CReal Source # | |
type Rep CReal Source # | |
Defined in CodeGen.Types.HsOutput type Rep CReal = D1 (MetaData "CReal" "CodeGen.Types.HsOutput" "hasktorch-codegen-0.0.1.1-inplace" False) (C1 (MetaCons "CReal" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 HsRep) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CRep))) |
Instances
Eq CAccReal Source # | |
Ord CAccReal Source # | |
Defined in CodeGen.Types.HsOutput | |
Show CAccReal Source # | |
Generic CAccReal Source # | |
Hashable CAccReal Source # | |
Defined in CodeGen.Types.HsOutput | |
HasAlias CAccReal Source # | |
type Rep CAccReal Source # | |
Defined in CodeGen.Types.HsOutput type Rep CAccReal = D1 (MetaData "CAccReal" "CodeGen.Types.HsOutput" "hasktorch-codegen-0.0.1.1-inplace" False) (C1 (MetaCons "CAccReal" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 HsRep) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CRep))) |
Instances
Eq CStorage Source # | |
Ord CStorage Source # | |
Defined in CodeGen.Types.HsOutput | |
Show CStorage Source # | |
Generic CStorage Source # | |
Hashable CStorage Source # | |
Defined in CodeGen.Types.HsOutput | |
HasAlias CStorage Source # | |
type Rep CStorage Source # | |
Defined in CodeGen.Types.HsOutput type Rep CStorage = D1 (MetaData "CStorage" "CodeGen.Types.HsOutput" "hasktorch-codegen-0.0.1.1-inplace" False) (C1 (MetaCons "CStorage" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 HsRep) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CRep))) |