scripts on unix

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Thu Mar 15 05:56:33 EDT 2007


Frederik Eaton <frederik at a5.repetae.net> wrote:

> What is the proper technique for creating a Haskell script on a Unix
> system?
> 
> $ cat test
> #!/usr/bin/env runhaskell
> module Main where
> main = do
>     putStrLn "hello world"

If you install hmake, and change 'runhaskell' to runhs, it works.

Regards,
    Malcolm


More information about the Glasgow-haskell-users mailing list