| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
DDC.Driver.Command.Trans
- cmdTransDetect :: Config -> Language -> Bool -> Source -> String -> ExceptT String IO ()
- cmdTransModule :: Config -> Language -> Bool -> Source -> String -> ExceptT String IO ()
- cmdTransExp :: Config -> Language -> Bool -> Source -> String -> ExceptT String IO ()
- cmdTransExpCont :: Config -> Bool -> Language -> (forall n. Typeable n => Exp (AnTEC () n) n -> IO ()) -> Source -> String -> IO ()
- transExp :: (Ord n, Pretty n, Show n, CompoundName n) => Bool -> Profile n -> EnvX n -> s -> Simplifier s (AnTEC () n) n -> Exp (AnTEC () n) n -> IO (Maybe (Exp (AnTEC () n) n))
Documentation
Arguments
| :: Config | Driver config. |
| -> Language | Language definition. |
| -> Bool | Print transform info. |
| -> Source | Source of the code. |
| -> String | Input text. |
| -> ExceptT String IO () |
Load and transform a module or expression, and print the result to stdout.
If the source starts with the 'module' keyword then treat it as one, otherwise treat it as an expression.
Arguments
| :: Config | Driver config. |
| -> Language | Language definition. |
| -> Bool | Print transform info. |
| -> Source | Source of the code. |
| -> String | Input text. |
| -> ExceptT String IO () |
Load and transform a module, and print the result to stdout.
Arguments
| :: Config | Driver config. |
| -> Language | Source language. |
| -> Bool | Print transform info. |
| -> Source | Source of input text. |
| -> String | Input text. |
| -> ExceptT String IO () |
Load and transfrom an expression
and print the result to stdout.