Safe Haskell | None |
---|---|
Language | Haskell98 |
- 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 :: (Eq n, Ord n, Pretty n, Show n, CompoundName n) => Bool -> Profile n -> KindEnv n -> TypeEnv n -> s -> Simplifier s (AnTEC () n) n -> Exp (AnTEC () n) n -> IO (Maybe (Exp (AnTEC () n) n))
Documentation
:: 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.
:: 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
.
:: 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
.
:: Config | Driver config. |
-> Bool | |
-> Language | |
-> (forall n. Typeable n => Exp (AnTEC () n) n -> IO ()) | |
-> Source | |
-> String | |
-> IO () |
Load an expression and apply the current transformation.
:: (Eq n, Ord n, Pretty n, Show n, CompoundName n) | |
=> Bool | Trace transform information. |
-> Profile n | Language profile. |
-> KindEnv n | Kind Environment. |
-> TypeEnv n | Type Environment. |
-> s | |
-> Simplifier s (AnTEC () n) n | |
-> Exp (AnTEC () n) n | |
-> IO (Maybe (Exp (AnTEC () n) n)) |
Transform an expression, or display errors