Safe Haskell | None |
---|
- unsafeSetGhcOption :: MonadInterpreter m => String -> m ()
- unsafeRunInterpreterWithArgs :: (MonadCatch m, MonadIO m, Functor m) => [String] -> InterpreterT m a -> m (Either InterpreterError a)
Documentation
unsafeSetGhcOption :: MonadInterpreter m => String -> m ()Source
Set a GHC option for the current session,
eg. unsafeSetGhcOption "-XNoMonomorphismRestriction"
.
Warning: Some options may interact badly with the Interpreter.
unsafeRunInterpreterWithArgs :: (MonadCatch m, MonadIO m, Functor m) => [String] -> InterpreterT m a -> m (Either InterpreterError a)Source
Executes the interpreter, setting the args as though they were command-line args. In particular, this means args that have no effect with :set in ghci might function properly from this context.
Warning: Some options may interact badly with the Interpreter.