[Haskell] client-side web scripting in Haskell?
marius at cs.pdx.edu
Wed Mar 9 16:31:37 EST 2005
On Mar 3, 2005, at 8:45 PM, Dean Herington wrote:
> Is there any practical way to do client-side web scripting in Haskell?
> All the references I have found to HaskellScript seem quite out of
If you are using hugs, it comes with a program named 'runhugs' that you
can use on the shebang line in executable haskell scripts, e.g.
main = putStrLn "hello"
I believe the latest ghc comes with a similar tool named runghci, but I
am not sure about this.
Alternatively you can hack up a runghci script, something along the
file=`mktemp -t ghci`
mv $file $file.hs
cat $* | tail +2 > $file.hs
echo main | ghci -v0 $file.hs
Hope that helps,
> Haskell mailing list
> Haskell at haskell.org
More information about the Haskell