[Haskell-beginners] runghc question

Ian Duncan iand675 at gmail.com
Wed Apr 8 11:30:20 EDT 2009


I'm writing a script for TextMate using Haskell, and I don't know how  
to get it to work with runghc. Here's the script:

#!/usr/local/bin/runghc
 >module Main
 >where
 >import System.Cmd


 >main = putStrLn "FOO"

{- do
	c <- getContents
	system ("/Users/ian/.cabal/bin/pointfree \"" ++ c ++ "\"")
-}

How do I get it to treat this as an lhs file rather than an hs file if  
there is no extension to the filename? Is there an argument for this?

Ian Duncan


More information about the Beginners mailing list