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

Add a simple interpreter

parent e9020c33
No related branches found
No related tags found
No related merge requests found
module Main where
import System.Environment
import IServ.Remote.Message
import IServ.Remote.Interpreter
verbose :: Bool
verbose = True
main :: IO ()
main = do
[portStr, storagePath] <- getArgs
let port = read portStr
startInterpreter' verbose storagePath port
......@@ -37,8 +37,9 @@ Description:
> iserv $ arch-platform-target-cabal install -flibrary
.
* setup an application for your target that calls the
@startInterpreter@ function. This could be either Haskell or your
target's FFI-capable language, if needed.
@startInterpreter@ function. This could be either the included
@iserv-proxy-interpreter@ executable or, if necessary, an application in
your target's FFI-capable language:
.
> void startInterpreter(
> false /* verbose */, 5000 /* port */,
......@@ -94,3 +95,10 @@ Executable iserv-proxy
ghci == 9.3,
libiserv == 9.3,
iserv-proxy
Executable iserv-proxy-interpreter
Default-Language: Haskell2010
Main-Is: Interpreter.hs
Build-Depends: base >= 4 && < 5,
iserv-proxy
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