Experiment 0001
~~~~~~~~~~~~~~~

Portability
~~~~~~~~~~~
Linux/gcc

Building binaries
~~~~~~~~~~~~~~~~~

cd unix
./configure --with-runhugs
cd ..
make runhugs hugs.so

Tests
~~~~~

Main.lhs is a literate script with "#! ./runhugs" on its first line.  

"./runhugs Expt/e0001/Main.lhs foo bar" starts up Hugs, loads
"Expr/e0001/Main.lhs" and executes Main.main

Main.main prints "Hello World", argv[0], argv[1..argc-1]

echo is a Hugs implementation of the Unix "echo" command

Test 1
~~~~~~
Expt/e0001/Main.lhs foo bar
<<<<
"Hello World"
("Expt/e0001/Main.lhs",["foo", "bar"])
>>>>

Test 2
~~~~~~
Expt/e0001/echo foo bar baz
<<<<
foo bar baz
>>>>

