Thanks for your help! I could not get runhugs to work, but when I named a
file main.hs and put my code in there and ran the interperator on it, it
worked! I am having a new problem which I would be grateful for some help
on. I have to create a function that takes the form
subst ys x zs
which when given will replace all occurances of a given value character x in
the string zs to the string ys.
My attempt so far is this
subst ys x zs =
if (head zs==head x)
then tail zs++"("++ys++")" {Remove the first character of zs)
subst ys x zs {Repeat for the rest of zs HUGS will not allow this}
else subst ys x zs
Ideally I need to run 2 statements inside the then part of the if statement.
How do I do it? Or am I going about it in the wrong way?