Personal tools

Talk:How to write a Haskell program

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
 
(reply)
Line 18: Line 18:
  
 
</haskell>
 
</haskell>
 +
 +
[[User:DonStewart|dons]] 07:59, 31 October 2006 (UTC)In fact, just this works:
 +
 +
<haskell>
 +
#!/usr/bin/env runhaskell
 +
import Distribution.Simple
 +
main = defaultMainWithHooks defaultUserHooks
 +
</haskell>
 +
 +
which is simplest of all

Revision as of 07:59, 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 = defaultMainWithHooks defaultUserHooks

which is simplest of all