This commit is contained in:
Armin Friedl 2016-08-06 14:12:24 +02:00
parent ecae3b785c
commit cd6d9e1e86
2 changed files with 14 additions and 12 deletions

View file

@ -0,0 +1,5 @@
Using cabal now, update hedit.cabal as needed
https://wiki.haskell.org/Structure_of_a_Haskell_project
http://katychuang.com/cabal-guide/

View file

@ -19,7 +19,7 @@ synopsis: Editor for the property list programming language
-- description: -- description:
-- URL for the project homepage or repository. -- URL for the project homepage or repository.
homepage: hedit.notld -- homepage: hedit.notld
-- The license under which the package is released. -- The license under which the package is released.
-- license: -- license:
@ -28,7 +28,7 @@ homepage: hedit.notld
-- license-file: LICENSE -- license-file: LICENSE
-- The package author(s). -- The package author(s).
author: prosa -- author: prosa
-- An email address to which users can send suggestions, bug reports, and -- An email address to which users can send suggestions, bug reports, and
-- patches. -- patches.
@ -43,7 +43,7 @@ build-type: Simple
-- Extra files to be distributed with the package, such as examples or a -- Extra files to be distributed with the package, such as examples or a
-- README. -- README.
-- extra-source-files: extra-source-files: README.txt
-- Constraint on the version of Cabal needed to build this package. -- Constraint on the version of Cabal needed to build this package.
cabal-version: >=1.10 cabal-version: >=1.10
@ -57,17 +57,15 @@ executable hedit
-- other-modules: -- other-modules:
-- LANGUAGE extensions used by modules in this package. -- LANGUAGE extensions used by modules in this package.
-- only extensions that are used by every module other-extensions: TemplateHaskell
-- else use {-# LANGUAGE ... #-} pragma in file
-- other-extensions:
-- Other library packages from which modules are imported. -- Other library packages from which modules are imported.
build-depends: base >=4.7 && <4.8, build-depends: base >=4.7 && <4.8,
text, brick >=0.8 && <0.9, vty >=5.7 && <5.8,
brick, vty, text >=1.1 && <1.2,
microlens, microlens-th, microlens >=0.4 && <0.5, microlens-th >=0.4 && <0.5,
-- for Control.Monal.IO.Class -- for Control.Monal.IO.Class
transformers transformers >=0.5 && <0.6
-- Directories containing source files. -- Directories containing source files.
hs-source-dirs: src, src/App hs-source-dirs: src, src/App
@ -78,5 +76,4 @@ executable hedit
-- GHC Options use other-extensions if possible -- GHC Options use other-extensions if possible
ghc-options: -O3 ghc-options: -O3
-- concurrency support -- concurrency support
-rtsopts -with-rtsopts=-N -threaded -rtsopts -with-rtsopts=-N -threaded