
5 Feb
2012
5 Feb
'12
3:41 a.m.
On Wednesday 01 February 2012, 19:08:16, Evan Laforge wrote:
On Wed, Feb 1, 2012 at 8:16 AM, Simon Hengel
wrote: Are you referring to the classical pattern, that allows you to add a shebang?
#!/usr/bin/env runhaskell
import Distribution.Simple main = defaultMain
Ohh, so it's a trick to allow #! in there... I guess that would explain it! I just type runghc on everything and it seems like a lot of those don't have the executable bit set, so I hadn't thought of that reason.
That may have been the idea, but doesn't make a difference. GHC allows a shebang line as the first line of a file also in .hs files.