
25 Jul
2006
25 Jul
'06
6:52 p.m.
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: #!/usr/bin/runfileAsHSFile "$@" module Main where import blah ---- runfileAsHSFile ---- #!/bin/sh # run a file by creating a virtual hs file (fifo file pipe) fileToRun=$1; shift; f=tempfile -s .hs mkfifo $f sed -e '1d' $fileToRun > $f & # remove the first shabeng line using sed.. runhaskell $f rm $f This is written from scratch but should work without much changes.. But there might be much better solutions. Marc Weber