Personal tools

Talk:How to write a Haskell program

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
Line 28: Line 28:
   
 
which is simplest of all
 
which is simplest of all
  +
  +
== Directory structure ==
  +
  +
Shouldn't the advise be to let all the source code be collected under src/ and the testing under test/ extra scripts under scripts/ etc.?
   
 
== Thanks! ==
 
== Thanks! ==

Revision as of 18:57, 19 November 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

1 Directory structure

Shouldn't the advise be to let all the source code be collected under src/ and the testing under test/ extra scripts under scripts/ etc.?

2 Thanks!

I was putting off (and meaning to get around to) cabalising my software until I saw how easy it was on this page. BTW, I kinda like the birdtracks as is -- kowey 09:20, 31 October 2006 (UTC)