Use layout for package description
parent
d1968b5de3
commit
8a4bfe083e
|
@ -1,13 +1,12 @@
|
|||
name: brittany
|
||||
version: 0.13.1.2
|
||||
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/doc/implementation/theory.md this document>;
|
||||
.
|
||||
The implementation is documented in more detail <https://github.com/lspitzner/brittany/blob/master/doc/implementation/index.md here>.
|
||||
}
|
||||
license: AGPL-3
|
||||
license-file: LICENSE
|
||||
author: Lennart Spitzner
|
||||
|
@ -19,19 +18,16 @@ build-type: Simple
|
|||
cabal-version: 2.0
|
||||
homepage: https://github.com/lspitzner/brittany/
|
||||
bug-reports: https://github.com/lspitzner/brittany/issues
|
||||
extra-doc-files: {
|
||||
extra-doc-files:
|
||||
ChangeLog.md
|
||||
README.md
|
||||
doc/implementation/*.md
|
||||
}
|
||||
extra-source-files: {
|
||||
extra-source-files:
|
||||
src-literatetests/*.blt
|
||||
}
|
||||
|
||||
source-repository head {
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://github.com/lspitzner/brittany.git
|
||||
}
|
||||
|
||||
flag brittany-dev-lib
|
||||
description: set buildable false for anything but lib
|
||||
|
@ -43,12 +39,12 @@ flag brittany-test-perf
|
|||
default: False
|
||||
manual: True
|
||||
|
||||
library {
|
||||
library
|
||||
default-language:
|
||||
Haskell2010
|
||||
hs-source-dirs:
|
||||
src
|
||||
exposed-modules: {
|
||||
exposed-modules:
|
||||
Language.Haskell.Brittany
|
||||
Language.Haskell.Brittany.Main
|
||||
Language.Haskell.Brittany.Internal
|
||||
|
@ -61,9 +57,8 @@ library {
|
|||
Language.Haskell.Brittany.Internal.Config.Types.Instances
|
||||
Language.Haskell.Brittany.Internal.Obfuscation
|
||||
Paths_brittany
|
||||
}
|
||||
autogen-modules: Paths_brittany
|
||||
other-modules: {
|
||||
other-modules:
|
||||
Language.Haskell.Brittany.Internal.LayouterBasics
|
||||
Language.Haskell.Brittany.Internal.Backend
|
||||
Language.Haskell.Brittany.Internal.BackendUtils
|
||||
|
@ -82,8 +77,7 @@ library {
|
|||
Language.Haskell.Brittany.Internal.Transformations.Par
|
||||
Language.Haskell.Brittany.Internal.Transformations.Columns
|
||||
Language.Haskell.Brittany.Internal.Transformations.Indent
|
||||
}
|
||||
ghc-options: {
|
||||
ghc-options:
|
||||
-Weverything
|
||||
-Wno-incomplete-uni-patterns
|
||||
-Wno-missing-deriving-strategies
|
||||
|
@ -94,9 +88,8 @@ library {
|
|||
-Wno-monomorphism-restriction
|
||||
-Wno-prepositive-qualified-module
|
||||
-Wno-unsafe
|
||||
}
|
||||
build-depends:
|
||||
{ base ^>= 4.15.0
|
||||
base ^>= 4.15.0
|
||||
, aeson ^>= 2.0.1
|
||||
, butcher ^>= 1.3.3
|
||||
, bytestring ^>= 0.10.12
|
||||
|
@ -124,41 +117,35 @@ library {
|
|||
, transformers ^>= 0.5.6
|
||||
, uniplate ^>= 1.6.13
|
||||
, yaml ^>= 0.11.7
|
||||
}
|
||||
}
|
||||
|
||||
executable brittany
|
||||
if flag(brittany-dev-lib) {
|
||||
if flag(brittany-dev-lib)
|
||||
buildable: False
|
||||
} else {
|
||||
else
|
||||
buildable: True
|
||||
}
|
||||
main-is: Main.hs
|
||||
hs-source-dirs: src-brittany
|
||||
build-depends:
|
||||
{ base
|
||||
base
|
||||
, brittany
|
||||
}
|
||||
default-language: Haskell2010
|
||||
ghc-options: {
|
||||
ghc-options:
|
||||
-Wall
|
||||
-fno-spec-constr
|
||||
-fno-warn-unused-imports
|
||||
-fno-warn-redundant-constraints
|
||||
-rtsopts
|
||||
-with-rtsopts "-M2G"
|
||||
}
|
||||
|
||||
test-suite unittests
|
||||
if flag(brittany-dev-lib) || !flag(brittany-test-perf) {
|
||||
if flag(brittany-dev-lib) || !flag(brittany-test-perf)
|
||||
buildable: False
|
||||
} else {
|
||||
else
|
||||
buildable: True
|
||||
}
|
||||
type: exitcode-stdio-1.0
|
||||
default-language: Haskell2010
|
||||
build-depends:
|
||||
{ brittany
|
||||
brittany
|
||||
, base
|
||||
, ghc
|
||||
, ghc-paths
|
||||
|
@ -188,12 +175,11 @@ test-suite unittests
|
|||
, czipwith
|
||||
, ghc-boot-th
|
||||
, hspec >=2.4.1 && <2.9
|
||||
}
|
||||
main-is: TestMain.hs
|
||||
other-modules: TestUtils
|
||||
AsymptoticPerfTests
|
||||
hs-source-dirs: src-unittests
|
||||
default-extensions: {
|
||||
default-extensions:
|
||||
CPP
|
||||
|
||||
NoImplicitPrelude
|
||||
|
@ -207,8 +193,7 @@ test-suite unittests
|
|||
LambdaCase
|
||||
MultiWayIf
|
||||
KindSignatures
|
||||
}
|
||||
ghc-options: {
|
||||
ghc-options:
|
||||
-Wall
|
||||
-fno-warn-unused-imports
|
||||
-rtsopts
|
||||
|
@ -217,18 +202,16 @@ test-suite unittests
|
|||
-- ^ threaded is not necessary at all, but our CI trusts on being able
|
||||
-- to pass -N1, which is not possible without threaded :-/
|
||||
-- (plus -no-threaded is not a thing, afaict)
|
||||
}
|
||||
|
||||
test-suite littests
|
||||
if flag(brittany-dev-lib) {
|
||||
if flag(brittany-dev-lib)
|
||||
buildable: False
|
||||
} else {
|
||||
else
|
||||
buildable: True
|
||||
}
|
||||
type: exitcode-stdio-1.0
|
||||
default-language: Haskell2010
|
||||
build-depends:
|
||||
{ brittany
|
||||
brittany
|
||||
, base
|
||||
, ghc
|
||||
, ghc-paths
|
||||
|
@ -260,11 +243,10 @@ test-suite littests
|
|||
, hspec >=2.4.1 && <2.9
|
||||
, filepath
|
||||
, parsec >=3.1.11 && <3.2
|
||||
}
|
||||
main-is: Main.hs
|
||||
other-modules:
|
||||
hs-source-dirs: src-literatetests
|
||||
default-extensions: {
|
||||
default-extensions:
|
||||
CPP
|
||||
|
||||
NoImplicitPrelude
|
||||
|
@ -278,34 +260,30 @@ test-suite littests
|
|||
LambdaCase
|
||||
MultiWayIf
|
||||
KindSignatures
|
||||
}
|
||||
ghc-options: {
|
||||
ghc-options:
|
||||
-Wall
|
||||
-fno-warn-unused-imports
|
||||
-threaded
|
||||
-rtsopts
|
||||
-with-rtsopts "-M2G -N"
|
||||
}
|
||||
|
||||
test-suite libinterfacetests
|
||||
if flag(brittany-dev-lib) {
|
||||
if flag(brittany-dev-lib)
|
||||
buildable: False
|
||||
} else {
|
||||
else
|
||||
buildable: True
|
||||
}
|
||||
type: exitcode-stdio-1.0
|
||||
default-language: Haskell2010
|
||||
build-depends:
|
||||
{ brittany
|
||||
brittany
|
||||
, base
|
||||
, text
|
||||
, transformers
|
||||
, hspec >=2.4.1 && <2.9
|
||||
}
|
||||
main-is: Main.hs
|
||||
other-modules:
|
||||
hs-source-dirs: src-libinterfacetests
|
||||
default-extensions: {
|
||||
default-extensions:
|
||||
FlexibleContexts
|
||||
FlexibleInstances
|
||||
ScopedTypeVariables
|
||||
|
@ -313,8 +291,7 @@ test-suite libinterfacetests
|
|||
LambdaCase
|
||||
MultiWayIf
|
||||
KindSignatures
|
||||
}
|
||||
ghc-options: {
|
||||
ghc-options:
|
||||
-Wall
|
||||
-fno-warn-unused-imports
|
||||
-rtsopts
|
||||
|
@ -323,4 +300,3 @@ test-suite libinterfacetests
|
|||
-- ^ threaded is not necessary at all, but our CI trusts on being able
|
||||
-- to pass -N1, which is not possible without threaded :-/
|
||||
-- (plus -no-threaded is not a thing, afaict)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue