Clean up .cabal file and stack.yaml

(all deps are now on hackage in appropriate form)
pull/35/head
Lennart Spitzner 2017-05-17 21:28:20 +02:00
parent 68e77c9337
commit 07164b39dc
3 changed files with 49 additions and 25 deletions

View File

@ -1,7 +1,13 @@
name: brittany name: brittany
version: 0.8.0.0 version: 0.8.0.0
-- synopsis: synopsis: Haskell source code formatter
-- description: description: {
See <https://github.com/lspitzner/brittany/blob/master/README.md the README>
If you are interested in the implementation, have a look at <https://github.com/lspitzner/brittany/blob/master/docs/implementation/theory.md this document>;
The implementation is documented in more detail <https://github.com/lspitzner/brittany/blob/master/docs/implementation/index.md here>.
}
license: AllRightsReserved license: AllRightsReserved
-- license-file: LICENSE -- license-file: LICENSE
author: Lennart Spitzner author: Lennart Spitzner
@ -11,6 +17,8 @@ category: Language
build-type: Simple build-type: Simple
extra-source-files: ChangeLog.md extra-source-files: ChangeLog.md
cabal-version: >=1.10 cabal-version: >=1.10
homepage: https://github.com/lspitzner/brittany/
bug-reports: https://github.com/lspitzner/brittany/issues
flag brittany-dev flag brittany-dev
description: dev options description: dev options
@ -68,7 +76,7 @@ library {
{ base >=4.9 && <4.10 { base >=4.9 && <4.10
, ghc >=8.0.1 && <8.1 , ghc >=8.0.1 && <8.1
, ghc-paths >=0.1.0.9 && <0.2 , ghc-paths >=0.1.0.9 && <0.2
, ghc-exactprint >=0.5.1.1 && <0.6 , ghc-exactprint >=0.5.3.0 && <0.6
, transformers >=0.5.2.0 && <0.6 , transformers >=0.5.2.0 && <0.6
, containers >=0.5.7.1 && <0.6 , containers >=0.5.7.1 && <0.6
, mtl >=2.2.1 && <2.3 , mtl >=2.2.1 && <2.3
@ -80,7 +88,7 @@ library {
, pretty >=1.1.3.3 && <1.2 , pretty >=1.1.3.3 && <1.2
, bytestring >=0.10.8.1 && <0.11 , bytestring >=0.10.8.1 && <0.11
, directory >=1.2.6.2 && <1.4 , directory >=1.2.6.2 && <1.4
, butcher >=1.0.0.0 && <1.1 , butcher >=1.1.0.0 && <1.2
, yaml >=0.8.18 && <0.9 , yaml >=0.8.18 && <0.9
, aeson >=1.0.1.0 && <1.3 , aeson >=1.0.1.0 && <1.3
, extra >=1.4.10 && <1.6 , extra >=1.4.10 && <1.6
@ -125,7 +133,7 @@ executable brittany
-- other-extensions: -- other-extensions:
build-depends: build-depends:
{ brittany { brittany
, base >=4.9 && <4.10 , base
, ghc , ghc
, ghc-paths , ghc-paths
, ghc-exactprint , ghc-exactprint
@ -136,22 +144,27 @@ executable brittany
, multistate , multistate
, syb , syb
, neat-interpolation , neat-interpolation
, hspec
, data-tree-print , data-tree-print
, pretty , pretty
, bytestring , bytestring
, directory , directory
, butcher , butcher
, yaml , yaml
, aeson
, extra , extra
, uniplate , uniplate
, strict , strict
, monad-memo , monad-memo
, unsafe
, safe , safe
, filepath >=1.4.1.0 && <1.5 , deepseq
, either , either
, ghc-boot-th , semigroups
, cmdargs
, czipwith , czipwith
, hspec >=2.4.1 && <2.5
, filepath >=1.4.1.0 && <1.5
, ghc-boot-th >=8.0.1 && <8.1
} }
hs-source-dirs: src-brittany hs-source-dirs: src-brittany
default-language: Haskell2010 default-language: Haskell2010
@ -172,15 +185,20 @@ executable brittany
} }
ghc-options: { ghc-options: {
-Wall -Wall
-fprof-auto -fprof-cafs -fno-spec-constr
-j -j
-fno-spec-constr
-fno-warn-unused-imports -fno-warn-unused-imports
-fno-warn-orphans -fno-warn-orphans
-rtsopts -rtsopts
-with-rtsopts "-M2G" -with-rtsopts "-M2G"
} }
if flag(brittany-dev) { if flag(brittany-dev) {
ghc-options: -O0 -Werror -fobject-code ghc-options:
-O0
-Werror
-fobject-code
-fprof-auto
-fprof-cafs
} }
test-suite unittests test-suite unittests
@ -193,7 +211,7 @@ test-suite unittests
default-language: Haskell2010 default-language: Haskell2010
build-depends: build-depends:
{ brittany { brittany
, base >=4.9 && <4.10 , base
, ghc , ghc
, ghc-paths , ghc-paths
, ghc-exactprint , ghc-exactprint
@ -204,19 +222,25 @@ test-suite unittests
, multistate , multistate
, syb , syb
, neat-interpolation , neat-interpolation
, hspec
, data-tree-print , data-tree-print
, pretty , pretty
, bytestring , bytestring
, directory , directory
, butcher , butcher
, yaml , yaml
, aeson
, extra , extra
, uniplate , uniplate
, strict , strict
, monad-memo , monad-memo
, unsafe
, safe , safe
, deepseq
, either , either
, semigroups
, cmdargs
, czipwith
, hspec >=2.4.1 && <2.5
} }
ghc-options: -Wall ghc-options: -Wall
main-is: TestMain.hs main-is: TestMain.hs
@ -260,7 +284,7 @@ test-suite littests
default-language: Haskell2010 default-language: Haskell2010
build-depends: build-depends:
{ brittany { brittany
, base >=4.9 && <4.10 , base
, ghc , ghc
, ghc-paths , ghc-paths
, ghc-exactprint , ghc-exactprint
@ -271,20 +295,26 @@ test-suite littests
, multistate , multistate
, syb , syb
, neat-interpolation , neat-interpolation
, hspec
, data-tree-print , data-tree-print
, pretty , pretty
, bytestring , bytestring
, directory , directory
, butcher , butcher
, yaml , yaml
, aeson
, extra , extra
, uniplate , uniplate
, strict , strict
, monad-memo , monad-memo
, unsafe
, safe , safe
, deepseq
, either , either
, parsec , semigroups
, cmdargs
, czipwith
, hspec >=2.4.1 && <2.5
, parsec >=3.1.11 && <3.2
} }
ghc-options: -Wall ghc-options: -Wall
main-is: Main.hs main-is: Main.hs

View File

@ -9,8 +9,7 @@ project, including the following two:
These two goals stand in conflict, and this project chooses a solution These two goals stand in conflict, and this project chooses a solution
to this that distinguishes it from (all) other existing formatters. This to this that distinguishes it from (all) other existing formatters. This
approach was an important motivation for writing Brittany, when other approach was an important motivation for writing Brittany. The approach might
formatters already existed. The approach might
also be applicable to more general-purposes structured-document formatters also be applicable to more general-purposes structured-document formatters
(although we will not expand on that here). Before explaining the idea, we (although we will not expand on that here). Before explaining the idea, we
will first consider will first consider

View File

@ -4,14 +4,9 @@ extra-deps:
- monad-memo-0.4.1 - monad-memo-0.4.1
- unsafe-0.0 - unsafe-0.0
- czipwith-1.0.0.0 - czipwith-1.0.0.0
- butcher-1.1.0.0
- data-tree-print-0.1.0.0
- deque-0.2
packages: packages:
- . - .
- extra-dep: true
location:
git: https://github.com/lspitzner/butcher
commit: b15f1ae585341ea312f712e63f29a0c57fa5f637
- extra-dep: true
location:
git: https://github.com/lspitzner/data-tree-print
commit: 605855659b15ff190d1e9c0c9b5e981e379aed15