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