Send Beginners mailing list submissions to
        beginners@haskell.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  Cross-platform .hs files on Linux and        Windows (Vinay Sajip)


----------------------------------------------------------------------

Message: 1
Date: Tue, 17 Apr 2012 08:13:15 +0000 (UTC)
From: Vinay Sajip <vinay_sa...@yahoo.co.uk>
Subject: Re: [Haskell-beginners] Cross-platform .hs files on Linux and
        Windows
To: beginners@haskell.org
Message-ID: <loom.20120417t100525-...@post.gmane.org>
Content-Type: text/plain; charset=us-ascii

Marius Ghita <mhitza <at> gmail.com> writes:

> And thats expected given than the shebang is *nix specific.

Perhaps not unexpected, but not necessary either. I may be wrong, but it seems
reasonable to assume there's a common code base for the Haskell Platform for
Linux and Windows versions. Presumably there's code for the parser to the skip
shebang line on Linux - there's no reason why it couldn't do the same on
Windows. As it is, it's just an unhelpful impediment to having cross-platform
scripts (unless there's a good reason for it - I couldn't think of one).

Coincidentally, I am working on functionality which brings shebang line
processing to Windows, primarily for Python scripts but it also works with other
scripting languages (like Perl). That's not why I posted this, though - I was
just given a set of scripts and want to use them on Windows without changing
them just for this.

Regards,

Vinay Sajip




------------------------------

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 46, Issue 27
*****************************************

Reply via email to