[Haskell-beginners] Cross-platform .hs files on Linux and Windows

Lorenzo Bolla lbolla at gmail.com
Mon Apr 16 21:49:02 CEST 2012

Check this out:


On Mon, Apr 16, 2012 at 06:23:57PM +0000, Vinay Sajip wrote:
> I've been given a set of .hs files which contain the shebang line
> #!/usr/bin/env runhaskell
> and I would like them to work on Windows, but none of the Windows binaries seem
> to be able to process them without a
> <script.hs>:1:1: parse error on input `#!'
> These files came from a Linux machine, where they run without trouble. Is there
> any way I can get the Windows executables to run these files? I asked on IRC and
> it was suggested that I change the files to literate Haskell, but I'd rather
> have some way of having cross-platform operation which does not involve making
> changes to the scripts themselves. Is there something that can be done e.g. by
> using particular command line options or configuration settings?
> Thanks & regards,
> Vinay Sajip
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners

Lorenzo Bolla
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120416/ec2325bf/attachment-0001.pgp>

More information about the Beginners mailing list