# Talk:How to write a Haskell program

(Difference between revisions)
 Revision as of 15:34, 10 January 2007 (edit)m ← Previous diff Revision as of 07:08, 12 July 2007 (edit) (undo)Next diff → Line 40: Line 40: I'm using this tutorial to bootstrap a the Haskell wikibook [http://en.wikibooks.org/wiki/Haskell/Packaging Packaging chapter]. The wikibook version diverges somewhat in that it ignores the Haskell community stuff, and (one day) tries to flow with the rest of the book. -- [[User:EricKow|EricKow]] 15:33, 10 January 2007 (UTC) I'm using this tutorial to bootstrap a the Haskell wikibook [http://en.wikibooks.org/wiki/Haskell/Packaging Packaging chapter]. The wikibook version diverges somewhat in that it ignores the Haskell community stuff, and (one day) tries to flow with the rest of the book. -- [[User:EricKow|EricKow]] 15:33, 10 January 2007 (UTC) + + == Error message == + + Just as a heads up, I'm getting this error message after creating a project with mkcabal: + + $runhaskell Setup.lhs configure + Setup.lhs: testing.cabal:4: Parse of field 'license' failed: + + + Upon inspection, it seems that it doesn't like 'GPL2' or 'GPL3'. I manually changed it to 'GPL', as shown in the wiki page, and it worked. I tested this on ghc 6.6 and ghc 6.6.1. [[User:Paulo|tanimoto]] ## Revision as of 07:08, 12 July 2007 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 ## Contents ## 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) ## 3 Imported to the wikibook I'm using this tutorial to bootstrap a the Haskell wikibook Packaging chapter. The wikibook version diverges somewhat in that it ignores the Haskell community stuff, and (one day) tries to flow with the rest of the book. -- EricKow 15:33, 10 January 2007 (UTC) ## 4 Error message Just as a heads up, I'm getting this error message after creating a project with mkcabal: $ runhaskell Setup.lhs configure
Setup.lhs: testing.cabal:4: Parse of field 'license' failed: