Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Pkg = Pkg String
- newtype Mod = Mod String
- newtype Flag = Flag String
- data Expr = Expr {}
- eval :: Expr -> IO (Maybe String)
- raw :: String -> Expr
- ($$) :: Expr -> Expr -> Expr
- asString :: Show a => a -> Expr
- qualified :: Mod -> Expr -> Expr
- withMods :: [Mod] -> Expr -> Expr
- withPkgs :: [Pkg] -> Expr -> Expr
- withFlags :: [Flag] -> Expr -> Expr
- withPreamble :: String -> Expr -> Expr
Documentation
raw :: String -> Expr Source #
A raw String of Haskell code, with no packages or modules. You can use OverloadedStrings to call this automatically.
($$) :: Expr -> Expr -> Expr infixr 8 Source #
Apply the first Expr to the second, eg. `f $$ x` ==> `f x`