2018-11-25 16:34:28 +03:00
|
|
|
name: ormolu
|
|
|
|
version: 0.0.1.0
|
|
|
|
cabal-version: 1.18
|
|
|
|
tested-with: GHC==8.4.4
|
|
|
|
license: BSD3
|
|
|
|
license-file: LICENSE.md
|
|
|
|
maintainer: Mark Karpov <mark.karpov@tweag.io>
|
|
|
|
homepage: https://github.com/tweag/ormolu
|
|
|
|
bug-reports: https://github.com/tweag/ormolu/issues
|
|
|
|
category: Development, Formatting
|
|
|
|
synopsis: A formatter for Haskell source code
|
|
|
|
build-type: Simple
|
|
|
|
description: A formatter for Haskell source code.
|
|
|
|
extra-doc-files: CHANGELOG.md
|
|
|
|
, README.md
|
2019-01-30 20:36:52 +03:00
|
|
|
data-files: data/examples/module-header/*.hs
|
|
|
|
, data/printer/*.hs
|
2018-11-25 16:34:28 +03:00
|
|
|
|
|
|
|
source-repository head
|
|
|
|
type: git
|
|
|
|
location: https://github.com/tweag/ormolu.git
|
|
|
|
|
|
|
|
flag dev
|
|
|
|
description: Turn on development settings.
|
|
|
|
manual: True
|
|
|
|
default: False
|
|
|
|
|
|
|
|
library
|
|
|
|
hs-source-dirs: src
|
2018-12-08 17:39:42 +03:00
|
|
|
build-depends: base >= 4.8 && < 5.0
|
|
|
|
, containers >= 0.5 && < 0.7
|
2019-01-30 20:36:52 +03:00
|
|
|
, exceptions >= 0.6 && < 0.11
|
2018-12-08 17:39:42 +03:00
|
|
|
, ghc >= 8.4.3
|
|
|
|
, ghc-boot-th >= 8.4.3
|
2018-12-08 13:34:26 +03:00
|
|
|
, ghc-exactprint >= 0.5.6
|
2018-12-08 17:39:42 +03:00
|
|
|
, mtl >= 2.0 && < 3.0
|
2019-02-21 20:42:17 +03:00
|
|
|
, syb >= 0.7 && < 0.8
|
2018-12-08 17:39:42 +03:00
|
|
|
, text >= 0.2 && < 1.3
|
2019-02-24 23:38:10 +03:00
|
|
|
, yaml >= 0.8 && < 0.12
|
2018-11-25 16:34:28 +03:00
|
|
|
exposed-modules: Ormolu
|
2019-02-21 23:50:03 +03:00
|
|
|
, Ormolu.Comments
|
2019-01-30 20:36:52 +03:00
|
|
|
, Ormolu.Config
|
|
|
|
, Ormolu.Diff
|
2019-02-24 22:50:42 +03:00
|
|
|
, Ormolu.Exception
|
2019-03-01 01:25:23 +03:00
|
|
|
, Ormolu.Imports
|
2018-11-25 16:34:28 +03:00
|
|
|
, Ormolu.Parser
|
|
|
|
, Ormolu.Printer
|
2018-12-08 17:39:42 +03:00
|
|
|
, Ormolu.Printer.Combinators
|
2019-01-30 20:36:52 +03:00
|
|
|
, Ormolu.Printer.Comments
|
2018-12-08 17:39:42 +03:00
|
|
|
, Ormolu.Printer.Internal
|
2019-03-21 17:43:58 +03:00
|
|
|
, Ormolu.Printer.Meat.Common
|
|
|
|
, Ormolu.Printer.Meat.Declaration
|
2019-04-07 21:50:52 +03:00
|
|
|
, Ormolu.Printer.Meat.Declaration.Type
|
2019-03-21 17:43:58 +03:00
|
|
|
, Ormolu.Printer.Meat.Declaration.TypeFamily
|
|
|
|
, Ormolu.Printer.Meat.ImportExport
|
|
|
|
, Ormolu.Printer.Meat.Module
|
|
|
|
, Ormolu.Printer.Meat.Type
|
2018-11-25 16:34:28 +03:00
|
|
|
if flag(dev)
|
|
|
|
ghc-options: -Wall -Werror -Wcompat
|
|
|
|
-Wincomplete-record-updates
|
|
|
|
-Wincomplete-uni-patterns
|
|
|
|
-Wnoncanonical-monad-instances
|
|
|
|
-Wnoncanonical-monadfail-instances
|
|
|
|
else
|
|
|
|
ghc-options: -O2 -Wall
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
|
|
test-suite tests
|
2018-12-08 17:39:42 +03:00
|
|
|
main-is: Spec.hs
|
2018-11-25 16:34:28 +03:00
|
|
|
hs-source-dirs: tests
|
|
|
|
type: exitcode-stdio-1.0
|
2018-12-08 17:39:42 +03:00
|
|
|
build-depends: base >= 4.8 && < 5.0
|
|
|
|
, containers >= 0.5 && < 0.7
|
2019-01-30 20:36:52 +03:00
|
|
|
, filepath >= 1.2 && < 1.5
|
2018-12-08 17:39:42 +03:00
|
|
|
, hspec >= 2.0 && < 3.0
|
2018-11-25 16:34:28 +03:00
|
|
|
, ormolu
|
2019-01-30 20:36:52 +03:00
|
|
|
, path >= 0.6 && < 0.7
|
|
|
|
, path-io >= 1.4.2 && < 2.0
|
2018-12-08 17:39:42 +03:00
|
|
|
, text >= 0.2 && < 1.3
|
2019-01-30 20:36:52 +03:00
|
|
|
build-tools: hspec-discover >= 2.0 && < 3.0
|
2018-12-08 17:39:42 +03:00
|
|
|
other-modules:
|
|
|
|
Ormolu.Printer.CombinatorsSpec
|
2019-01-30 20:36:52 +03:00
|
|
|
, Ormolu.PrinterSpec
|
2018-12-08 17:39:42 +03:00
|
|
|
|
2018-11-25 16:34:28 +03:00
|
|
|
if flag(dev)
|
|
|
|
ghc-options: -Wall -Werror
|
|
|
|
else
|
|
|
|
ghc-options: -O2 -Wall
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
|
|
executable ormolu
|
|
|
|
main-is: Main.hs
|
|
|
|
hs-source-dirs: app
|
2019-01-30 20:36:52 +03:00
|
|
|
build-depends: base >= 4.8 && < 5.0
|
|
|
|
, ghc >= 8.4.3
|
2019-02-24 23:38:10 +03:00
|
|
|
, ghc-exactprint >= 0.5.6
|
|
|
|
, gitrev >= 1.3 && < 1.4
|
|
|
|
, optparse-applicative >= 0.14 && < 0.15
|
2018-11-25 16:34:28 +03:00
|
|
|
, ormolu
|
2019-01-30 20:36:52 +03:00
|
|
|
, text >= 0.2 && < 1.3
|
2019-02-24 23:38:10 +03:00
|
|
|
, yaml >= 0.8 && < 0.12
|
|
|
|
other-modules: Paths_ormolu
|
2018-11-25 16:34:28 +03:00
|
|
|
if flag(dev)
|
|
|
|
ghc-options: -Wall -Werror -Wcompat
|
|
|
|
-Wincomplete-record-updates
|
|
|
|
-Wincomplete-uni-patterns
|
|
|
|
-Wnoncanonical-monad-instances
|
|
|
|
-Wnoncanonical-monadfail-instances
|
|
|
|
else
|
|
|
|
ghc-options: -O2 -Wall
|
|
|
|
default-language: Haskell2010
|