Safe Haskell | None |
---|---|
Language | Haskell2010 |
Dynamically load a compiled Feldspar function as a Haskell function
Documentation
loadFun :: [Name] -> Q [Dec] Source
Compile and load Feldspar functions into the current GHC session.
prog1 :: Data Index -> Vector1 Index prog1 c = indexed c (const c) $(loadFun ['prog1])
The call to loadFun
above will splice code into the current module
to compile, load and wrap a Feldspar function as a Haskell function:
c_prog1 :: Index -> [Index]
loadFunWithConfig :: Config -> [Name] -> Q [Dec]
Generic function compiler and loader