Difference between revisions of "Talk:How to write a Haskell program"

From HaskellWiki
Jump to navigation Jump to search
(reply)
m (typo)
Line 24: Line 24:
 
#!/usr/bin/env runhaskell
 
#!/usr/bin/env runhaskell
 
import Distribution.Simple
 
import Distribution.Simple
  +
main = defaultMain
main = defaultMainWithHooks defaultUserHooks
 
 
</haskell>
 
</haskell>
   

Revision as of 08:00, 31 October 2006

How do people feel about

#!/usr/bin/env runhaskell
\begin{code}
import Distribution.Simple
main = defaultMain
\end{code}

instead of

#!/usr/bin/env runhaskell

> import Distribution.Simple
> main = defaultMain

dons 07:59, 31 October 2006 (UTC)In fact, just this works:

#!/usr/bin/env runhaskell
import Distribution.Simple
main = defaultMain

which is simplest of all