Add .ordeal example for default Stack project
honza opened this issue · comments
It would be super helpful to have a working example of an .ordeal
file for whatever project is created via stack new Xxx
.
I'm getting all kinds of strange output in the console when using the following in my .ordeal
:
import Main
This is the output:
Using main module: Package `Reload' component exe:Reload-exe with main-is file: /Users/honza/Code/Reload/app/Main.hs
The following GHC options are incompatible with GHCi and have not been passed to it: -threaded
Configuring GHCi with the following packages: Reload
GHCi, version 7.10.2: http://www.haskell.org/ghc/ :? for help
[1 of 2] Compiling Lib ( /Users/honza/Code/Reload/src/Lib.hs, interpreted )
[2 of 2] Compiling Main ( /Users/honza/Code/Reload/app/Main.hs, interpreted )
Ok, modules loaded: Lib, Main.
*Main Lib> *Main Lib> Interrupted.
*Main Lib> *Main Lib> [1 of 2] Compiling Lib ( /Users/honza/Code/Reload/src/Lib.hs, interpreted )
Ok, modules loaded: Lib, Main.
*Main Lib> *Main Lib Main> *Main Lib Main> Interrupted.
> *Main Lib Main> *Main Lib Main> [1 of 2] Compiling Lib ( /Users/honza/Code/Reload/src/Lib.hs, interpreted )
Ok, modules loaded: Lib, Main.
*Main Lib Main> *Main Lib Main> *Main Lib Main>
Notice the repeated Main and Lib in the prompt.
This is using 0c995e7.
@honza Ordeal is still in a pretty rough state, but I think the following should get you going:
Change your .ordeal
file to contain the following:
import Main
Main.main
Add the following to ~/.ghci
:
:set prompt "ghci> "