Skip to content
Snippets Groups Projects
Commit cd645653 authored by Ben Gamari's avatar Ben Gamari :turtle:
Browse files

Add a simple example of local usage

parent 3c4c9001
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ import IServ.Remote.Message
import IServ.Remote.Interpreter
verbose :: Bool
verbose = True
verbose = False
main :: IO ()
main = do
......
#!/usr/bin/env bash
set -e
GHC="${GHC:-ghc}"
port=5005
cabal build -w "$GHC" iserv-proxy
cabal run -w "$GHC" iserv-proxy-interpreter $port . &
interpreter=$?
proxy="$(cabal list-bin -w "$GHC" exe:iserv-proxy)"
echo "print \"Hello world!\"" | \
"$GHC" \
--interactive \
-fexternal-interpreter \
-pgmi "$proxy" \
-opti 127.0.0.1 -opti$port
kill $interpreter
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment