invoking a Haskell script without a .hs extension

Brandon S. Allbery KF8NH allbery at
Mon Aug 18 14:11:41 EDT 2008

On 2008 Aug 17, at 23:45, Paul Jarc wrote:

> A somewhat related issue: I'd like to avoid hard-coding the path to
> runhaskell or ghc in the #! line.  Instead, I'd like to use #!/bin/sh,
> and have the shell find runhaskell or ghc in $PATH.  This means the

#! /usr/bin/env runhaskell ...

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at
system administrator [openafs,heimdal,too many hats] allbery at
electrical and computer engineering, carnegie mellon university    KF8NH

More information about the Glasgow-haskell-users mailing list