361 lines
7.4 KiB
Plaintext
361 lines
7.4 KiB
Plaintext
name: brittany
|
|
version: 0.8.0.0
|
|
synopsis: Haskell source code formatter
|
|
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: AllRightsReserved
|
|
-- license-file: LICENSE
|
|
author: Lennart Spitzner
|
|
maintainer: lsp@informatik.uni-kiel.de
|
|
copyright: Copyright (C) 2016-2017 Lennart Spitzner
|
|
category: Language
|
|
build-type: Simple
|
|
extra-source-files: ChangeLog.md
|
|
cabal-version: >=1.10
|
|
homepage: https://github.com/lspitzner/brittany/
|
|
bug-reports: https://github.com/lspitzner/brittany/issues
|
|
|
|
source-repository head {
|
|
type: git
|
|
location: https://github.com/lspitzner/brittany.git
|
|
}
|
|
|
|
flag brittany-dev
|
|
description: dev options
|
|
default: False
|
|
manual: True
|
|
|
|
flag brittany-dev-lib
|
|
description: set buildable false for anything but lib
|
|
default: False
|
|
manual: True
|
|
|
|
library {
|
|
default-language:
|
|
Haskell2010
|
|
hs-source-dirs:
|
|
src
|
|
install-includes: {
|
|
srcinc/prelude.inc
|
|
}
|
|
exposed-modules: {
|
|
Language.Haskell.Brittany
|
|
Language.Haskell.Brittany.Prelude
|
|
Language.Haskell.Brittany.Types
|
|
Language.Haskell.Brittany.Utils
|
|
Language.Haskell.Brittany.Config
|
|
Language.Haskell.Brittany.Config.Types
|
|
}
|
|
other-modules: {
|
|
Language.Haskell.Brittany.LayouterBasics
|
|
Language.Haskell.Brittany.Backend
|
|
Language.Haskell.Brittany.BackendUtils
|
|
Language.Haskell.Brittany.ExactPrintUtils
|
|
Language.Haskell.Brittany.Layouters.Type
|
|
Language.Haskell.Brittany.Layouters.Decl
|
|
Language.Haskell.Brittany.Layouters.Expr
|
|
Language.Haskell.Brittany.Layouters.Stmt
|
|
Language.Haskell.Brittany.Layouters.Pattern
|
|
Language.Haskell.Brittany.Transformations.Alt
|
|
Language.Haskell.Brittany.Transformations.Floating
|
|
Language.Haskell.Brittany.Transformations.Par
|
|
Language.Haskell.Brittany.Transformations.Columns
|
|
Language.Haskell.Brittany.Transformations.Indent
|
|
Paths_brittany
|
|
}
|
|
ghc-options: {
|
|
-Wall
|
|
-j
|
|
-fno-warn-unused-imports
|
|
-fno-warn-orphans
|
|
}
|
|
if flag(brittany-dev) {
|
|
ghc-options: -O0 -Werror -fobject-code
|
|
}
|
|
build-depends:
|
|
{ base >=4.9 && <4.10
|
|
, ghc >=8.0.1 && <8.1
|
|
, ghc-paths >=0.1.0.9 && <0.2
|
|
, ghc-exactprint >=0.5.3.0 && <0.6
|
|
, transformers >=0.5.2.0 && <0.6
|
|
, containers >=0.5.7.1 && <0.6
|
|
, mtl >=2.2.1 && <2.3
|
|
, text >=1.2 && <1.3
|
|
, multistate >=0.7.1.1 && <0.8
|
|
, syb >=0.6 && <0.7
|
|
, neat-interpolation >=0.3.2 && <0.4
|
|
, data-tree-print
|
|
, pretty >=1.1.3.3 && <1.2
|
|
, bytestring >=0.10.8.1 && <0.11
|
|
, directory >=1.2.6.2 && <1.4
|
|
, butcher >=1.1.0.0 && <1.2
|
|
, yaml >=0.8.18 && <0.9
|
|
, aeson >=1.0.1.0 && <1.3
|
|
, extra >=1.4.10 && <1.6
|
|
, uniplate >=1.6.12 && <1.7
|
|
, strict >=0.3.2 && <0.4
|
|
, monad-memo >=0.4.1 && <0.5
|
|
, unsafe >=0.0 && <0.1
|
|
, safe >=0.3.9 && <0.4
|
|
, deepseq >=1.4.2.0 && <1.5
|
|
, either >=4.4.1.1 && <4.5
|
|
, semigroups >=0.18.2 && <0.19
|
|
, cmdargs >=0.10.14 && <0.11
|
|
, czipwith >=1.0.0.0 && <1.1
|
|
, unordered-containers >=0.2.7 && <0.3
|
|
, ghc-boot-th >=8.0.1 && <8.1
|
|
}
|
|
default-extensions: {
|
|
CPP
|
|
|
|
NoImplicitPrelude
|
|
|
|
GADTs
|
|
|
|
FlexibleContexts
|
|
FlexibleInstances
|
|
ScopedTypeVariables
|
|
MonadComprehensions
|
|
LambdaCase
|
|
MultiWayIf
|
|
KindSignatures
|
|
}
|
|
include-dirs:
|
|
srcinc
|
|
}
|
|
|
|
executable brittany
|
|
if flag(brittany-dev-lib) {
|
|
buildable: False
|
|
} else {
|
|
buildable: True
|
|
}
|
|
main-is: Main.hs
|
|
-- other-modules:
|
|
-- other-extensions:
|
|
build-depends:
|
|
{ brittany
|
|
, base
|
|
, ghc
|
|
, ghc-paths
|
|
, ghc-exactprint
|
|
, transformers
|
|
, containers
|
|
, mtl
|
|
, text
|
|
, multistate
|
|
, syb
|
|
, neat-interpolation
|
|
, data-tree-print
|
|
, pretty
|
|
, bytestring
|
|
, directory
|
|
, butcher
|
|
, yaml
|
|
, aeson
|
|
, extra
|
|
, uniplate
|
|
, strict
|
|
, monad-memo
|
|
, unsafe
|
|
, safe
|
|
, deepseq
|
|
, either
|
|
, semigroups
|
|
, cmdargs
|
|
, czipwith
|
|
, unordered-containers
|
|
, ghc-boot-th
|
|
, hspec >=2.4.1 && <2.5
|
|
, filepath >=1.4.1.0 && <1.5
|
|
}
|
|
hs-source-dirs: src-brittany
|
|
default-language: Haskell2010
|
|
default-extensions: {
|
|
CPP
|
|
|
|
NoImplicitPrelude
|
|
|
|
GADTs
|
|
|
|
FlexibleContexts
|
|
FlexibleInstances
|
|
ScopedTypeVariables
|
|
MonadComprehensions
|
|
LambdaCase
|
|
MultiWayIf
|
|
KindSignatures
|
|
}
|
|
ghc-options: {
|
|
-Wall
|
|
-j
|
|
-fno-spec-constr
|
|
-fno-warn-unused-imports
|
|
-fno-warn-orphans
|
|
-rtsopts
|
|
-with-rtsopts "-M2G"
|
|
}
|
|
if flag(brittany-dev) {
|
|
ghc-options:
|
|
-O0
|
|
-Werror
|
|
-fobject-code
|
|
-fprof-auto
|
|
-fprof-cafs
|
|
}
|
|
|
|
test-suite unittests
|
|
if flag(brittany-dev-lib) {
|
|
buildable: False
|
|
} else {
|
|
buildable: True
|
|
}
|
|
type: exitcode-stdio-1.0
|
|
default-language: Haskell2010
|
|
build-depends:
|
|
{ brittany
|
|
, base
|
|
, ghc
|
|
, ghc-paths
|
|
, ghc-exactprint
|
|
, transformers
|
|
, containers
|
|
, mtl
|
|
, text
|
|
, multistate
|
|
, syb
|
|
, neat-interpolation
|
|
, data-tree-print
|
|
, pretty
|
|
, bytestring
|
|
, directory
|
|
, butcher
|
|
, yaml
|
|
, aeson
|
|
, extra
|
|
, uniplate
|
|
, strict
|
|
, monad-memo
|
|
, unsafe
|
|
, safe
|
|
, deepseq
|
|
, either
|
|
, semigroups
|
|
, cmdargs
|
|
, czipwith
|
|
, unordered-containers
|
|
, ghc-boot-th
|
|
, hspec >=2.4.1 && <2.5
|
|
}
|
|
ghc-options: -Wall
|
|
main-is: TestMain.hs
|
|
other-modules: TestUtils
|
|
AsymptoticPerfTests
|
|
hs-source-dirs: src-unittests
|
|
default-extensions: {
|
|
CPP
|
|
|
|
NoImplicitPrelude
|
|
|
|
GADTs
|
|
|
|
FlexibleContexts
|
|
FlexibleInstances
|
|
ScopedTypeVariables
|
|
MonadComprehensions
|
|
LambdaCase
|
|
MultiWayIf
|
|
KindSignatures
|
|
}
|
|
ghc-options: {
|
|
-Wall
|
|
-j
|
|
-fno-warn-unused-imports
|
|
-fno-warn-orphans
|
|
-rtsopts
|
|
-with-rtsopts "-M2G"
|
|
}
|
|
if flag(brittany-dev) {
|
|
ghc-options: -O0 -Werror -fobject-code
|
|
}
|
|
|
|
test-suite littests
|
|
if flag(brittany-dev-lib) {
|
|
buildable: False
|
|
} else {
|
|
buildable: True
|
|
}
|
|
type: exitcode-stdio-1.0
|
|
default-language: Haskell2010
|
|
build-depends:
|
|
{ brittany
|
|
, base
|
|
, ghc
|
|
, ghc-paths
|
|
, ghc-exactprint
|
|
, transformers
|
|
, containers
|
|
, mtl
|
|
, text
|
|
, multistate
|
|
, syb
|
|
, neat-interpolation
|
|
, data-tree-print
|
|
, pretty
|
|
, bytestring
|
|
, directory
|
|
, butcher
|
|
, yaml
|
|
, aeson
|
|
, extra
|
|
, uniplate
|
|
, strict
|
|
, monad-memo
|
|
, unsafe
|
|
, safe
|
|
, deepseq
|
|
, either
|
|
, semigroups
|
|
, cmdargs
|
|
, czipwith
|
|
, unordered-containers
|
|
, ghc-boot-th
|
|
, hspec >=2.4.1 && <2.5
|
|
, parsec >=3.1.11 && <3.2
|
|
}
|
|
ghc-options: -Wall
|
|
main-is: Main.hs
|
|
other-modules:
|
|
hs-source-dirs: src-literatetests
|
|
default-extensions: {
|
|
CPP
|
|
|
|
NoImplicitPrelude
|
|
|
|
GADTs
|
|
|
|
FlexibleContexts
|
|
FlexibleInstances
|
|
ScopedTypeVariables
|
|
MonadComprehensions
|
|
LambdaCase
|
|
MultiWayIf
|
|
KindSignatures
|
|
}
|
|
ghc-options: {
|
|
-Wall
|
|
-j
|
|
-fno-warn-unused-imports
|
|
-fno-warn-orphans
|
|
-rtsopts
|
|
-with-rtsopts "-M2G"
|
|
}
|
|
if flag(brittany-dev) {
|
|
ghc-options: -O0 -Werror -fobject-code
|
|
}
|