-
-
Save mgsloan/4361578 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Bar where | |
| bar = answer * 20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Language.Haskell.Interpreter | |
| foo :: IO (Either InterpreterError String) | |
| foo = runInterpreter $ do | |
| reset | |
| loadModules ["Bar", "Prelude"] | |
| setTopLevelModules ["Bar"] | |
| eval "bar" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {-# LANGUAGE PackageImports #-} | |
| module Prelude (module P, answer) where | |
| import "base" Prelude as P | |
| answer = 42 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment