Copyright | (c) Maciej Bendkowski 2017-2018 |
---|---|
License | BSD3 |
Maintainer | maciej.bendkowski@tcs.uj.edu.pl |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
General utilities used across system compilers.
- systemNote :: PSystem Double -> [String]
- unname :: String -> QName
- typeCons :: String -> Type
- typeVar :: String -> Type
- varExp :: String -> Exp
- conExp :: String -> Exp
- toLit :: Int -> Exp
- importType :: String -> ImportSpec
- importFunc :: String -> ImportSpec
- importFrom :: String -> [ImportSpec] -> ImportDecl
- exportType :: String -> ExportSpec
- exportTypes :: PSystem Double -> [ExportSpec]
- exportFunc :: String -> ExportSpec
- declTFun :: String -> Type -> [String] -> Exp -> [Decl]
- symbol :: String -> QOp
- greater :: Exp -> Exp -> Exp
- less :: Exp -> Exp -> Exp
- and :: Exp -> Exp -> Exp
- lessEq :: Exp -> Exp -> Exp
- lessF :: Real a => Exp -> a -> Exp
- bind :: String -> Exp -> Stmt
- bindP :: String -> String -> Exp -> Stmt
- sub :: Exp -> Exp -> Exp
- add :: Exp -> Exp -> Exp
- applyF :: Exp -> [Exp] -> Exp
- dot :: Exp -> Exp -> Exp
- declareADTs :: Bool -> PSystem a -> [Decl]
- declADT :: Bool -> (String, [Cons a]) -> Decl
- declCon :: Cons a -> ConDecl
- declArg :: Arg -> Type
Documentation
importType :: String -> ImportSpec Source #
importFunc :: String -> ImportSpec Source #
importFrom :: String -> [ImportSpec] -> ImportDecl Source #
Simple import declaration.
exportType :: String -> ExportSpec Source #
exportTypes :: PSystem Double -> [ExportSpec] Source #
exportFunc :: String -> ExportSpec Source #