-- From https://wiki.haskell.org/How_to_write_a_Haskell_program -- -- Copyright (c) 2006 Don Stewart - http://www.cse.unsw.edu.au/~dons/ -- GPL version 2 or later (see http://www.gnu.org/copyleft/gpl.html) -- -- in hugs89, run with :l "Haq.hs" then :main me import System.Environment -- for getArgs -- | 'main' runs the main program -- | main :: IO () main = getArgs >>= print . haqify . head haqify s = "Haq! " ++ s