feldspar-language-0.3: A functional embedded language for DSP and parallelismSource codeContentsIndex
Feldspar.Haskell
Description
Helper functions for producing Haskell code
Synopsis
class HaskellType a where
haskellType :: a -> String
class HaskellValue a where
haskellValue :: a -> String
unlinesNoTrail :: [String] -> String
indent :: Int -> String -> String
newline :: String
(-$-) :: HaskellValue a => String -> a -> String
opApp :: (HaskellValue a, HaskellValue b) => String -> a -> b -> String
(-=-) :: (HaskellValue patt, HaskellValue def) => patt -> def -> String
local :: String -> String -> String
ifThenElse :: (HaskellValue c, HaskellValue t, HaskellValue e) => c -> t -> e -> String
Documentation
class HaskellType a whereSource
Types that can represent Haskell types (as source code strings)
Methods
haskellType :: a -> StringSource
Gives the Haskell type denoted by the argument.
show/hide Instances
class HaskellValue a whereSource
Types that can represent Haskell values (as source code strings)
Methods
haskellValue :: a -> StringSource
Gives the Haskell code denoted by the argument.
show/hide Instances
unlinesNoTrail :: [String] -> StringSource
Like unlines, but no trailing '\n'.
indent :: Int -> String -> StringSource
Indents a string the given number of columns.
newline :: StringSource
(-$-) :: HaskellValue a => String -> a -> StringSource
Application
opApp :: (HaskellValue a, HaskellValue b) => String -> a -> b -> StringSource
Binary operator application
(-=-) :: (HaskellValue patt, HaskellValue def) => patt -> def -> StringSource
Definition
local :: String -> String -> StringSource
ifThenElse :: (HaskellValue c, HaskellValue t, HaskellValue e) => c -> t -> e -> StringSource
Produced by Haddock version 2.6.1