@@ -403,75 +403,75 @@ generateCabalFile fileName c = render $
thenshowComment(Just$fileName++" auto-generated by cabal init. For additional options, see http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html#pkg-descr.")
elseempty)
$$
vcat[fieldS"Name"(packageNamec)
vcat[fieldS"name"(packageNamec)
(Just"The name of the package.")
True
,field"Version"(versionc)
,field"version"(versionc)
(Just"The package version. See the Haskell package versioning policy (http://www.haskell.org/haskellwiki/Package_versioning_policy) for standards guiding when and how versions should be incremented.")
True
,fieldS"Synopsis"(synopsisc)
,fieldS"synopsis"(synopsisc)
(Just"A short (one-line) description of the package.")
True
,fieldS"Description"NoFlag
,fieldS"description"NoFlag
(Just"A longer description of the package.")
True
,fieldS"Homepage"(homepagec)
,fieldS"homepage"(homepagec)
(Just"URL for the project homepage or repository.")
False
,fieldS"Bug-reports"NoFlag
,fieldS"bug-reports"NoFlag
(Just"A URL where users can report bugs.")
False
,field"License"(licensec)
,field"license"(licensec)
(Just"The license under which the package is released.")
True
,fieldS"License-file"(Flag"LICENSE")
,fieldS"license-file"(Flag"LICENSE")
(Just"The file containing the license text.")
True
,fieldS"Author"(authorc)
,fieldS"author"(authorc)
(Just"The package author(s).")
True
,fieldS"Maintainer"(emailc)
,fieldS"maintainer"(emailc)
(Just"An email address to which users can send suggestions, bug reports, and patches.")
True
,fieldS"Copyright"NoFlag
,fieldS"copyright"NoFlag
(Just"A copyright notice.")
True
,fieldS"Category"(eitheriddisplay`fmap`categoryc)
,fieldS"category"(eitheriddisplay`fmap`categoryc)
Nothing
True
,fieldS"Build-type"(Flag"Simple")
,fieldS"build-type"(Flag"Simple")
Nothing
True
,fieldS"Extra-source-files"NoFlag
,fieldS"extra-source-files"NoFlag
(Just"Extra files to be distributed with the package, such as examples or a README.")