[Haskell-cafe] scripting in haskell
marco-oweber at gmx.de
Tue Jul 25 18:52:58 EDT 2006
> Looking through the mailing list I see something from May 2005 on this
> topic about adding the equivalent of gcc's "-x" option to ghc. What's the
> status of that?
You should always be able to do something like this:
module Main where
---- runfileAsHSFile ----
# run a file by creating a virtual hs file (fifo file pipe)
f=tempfile -s .hs
sed -e '1d' $fileToRun > $f & # remove the first shabeng line using
This is written from scratch but should work without much changes..
But there might be much better solutions.
More information about the Haskell-Cafe