[Haskell-beginners] Cross-platform .hs files on Linux and Windows
Marius Ghita
mhitza at gmail.com
Tue Apr 17 02:31:09 CEST 2012
And thats expected given than the shebang is *nix specific.
On Tue, Apr 17, 2012 at 12:11 AM, Vinay Sajip <vinay_sajip at yahoo.co.uk>wrote:
> Lorenzo Bolla <lbolla <at> gmail.com> writes:
>
> >
> > Check this out:
> >
>
> http://stackoverflow.com/questions/6818031/use-shebang-hashbang-in-windows-command-prompt
> >
>
> Thanks, but that link just leads either to answers saying it can't be
> done, or
> information about using assoc and ftype to associate e.g. .hs files with
> runhaskell. That's not the crux of the problem: the crux is that
> runhaskell on
> Linux will run .hs files with a #!/usr/bin/env runhaskell (even though
> that's
> not a valid line in Haskell), whereas runhaskell.exe on Windows will try to
> parse that first line using the Haskell parser, even though it's not valid
> Haskell (the Linux version presumably skips that first line).
>
> Regards,
>
> Vinay Sajip
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
--
Google+: https://plus.google.com/111881868112036203454
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120417/09c9dacc/attachment-0001.htm>
More information about the Beginners
mailing list