Blame ormolu-0.1.4.1.cabal

5e17615
cabal-version:   1.18
5e17615
name:            ormolu
5e17615
version:         0.1.4.1
5e17615
x-revision: 1
5e17615
license:         BSD3
5e17615
license-file:    LICENSE.md
5e17615
maintainer:      Mark Karpov <mark.karpov@tweag.io>
5e17615
tested-with:     ghc ==8.6.5 ghc ==8.8.4 ghc ==8.10.2
5e17615
homepage:        https://github.com/tweag/ormolu
5e17615
bug-reports:     https://github.com/tweag/ormolu/issues
5e17615
synopsis:        A formatter for Haskell source code
5e17615
description:     A formatter for Haskell source code.
5e17615
category:        Development, Formatting
5e17615
build-type:      Simple
5e17615
data-files:
5e17615
    data/examples/declaration/annotation/*.hs
5e17615
    data/examples/declaration/class/*.hs
5e17615
    data/examples/declaration/data/*.hs
5e17615
    data/examples/declaration/data/gadt/*.hs
5e17615
    data/examples/declaration/default/*.hs
5e17615
    data/examples/declaration/deriving/*.hs
5e17615
    data/examples/declaration/foreign/*.hs
5e17615
    data/examples/declaration/instance/*.hs
5e17615
    data/examples/declaration/rewrite-rule/*.hs
5e17615
    data/examples/declaration/role-annotation/*.hs
5e17615
    data/examples/declaration/signature/complete/*.hs
5e17615
    data/examples/declaration/signature/fixity/*.hs
5e17615
    data/examples/declaration/signature/inline/*.hs
5e17615
    data/examples/declaration/signature/minimal/*.hs
5e17615
    data/examples/declaration/signature/pattern/*.hs
5e17615
    data/examples/declaration/signature/set-cost-centre/*.hs
5e17615
    data/examples/declaration/signature/specialize/*.hs
5e17615
    data/examples/declaration/signature/type/*.hs
5e17615
    data/examples/declaration/splice/*.hs
5e17615
    data/examples/declaration/type-families/closed-type-family/*.hs
5e17615
    data/examples/declaration/type-families/data-family/*.hs
5e17615
    data/examples/declaration/type-families/type-family/*.hs
5e17615
    data/examples/declaration/type-synonyms/*.hs
5e17615
    data/examples/declaration/type/*.hs
5e17615
    data/examples/declaration/value/function/*.hs
5e17615
    data/examples/declaration/value/function/arrow/*.hs
5e17615
    data/examples/declaration/value/function/comprehension/*.hs
5e17615
    data/examples/declaration/value/function/do/*.hs
5e17615
    data/examples/declaration/value/function/infix/*.hs
5e17615
    data/examples/declaration/value/function/pattern/*.hs
5e17615
    data/examples/declaration/value/other/*.hs
5e17615
    data/examples/declaration/value/pattern-synonyms/*.hs
5e17615
    data/examples/declaration/warning/*.hs
5e17615
    data/examples/import/*.hs
5e17615
    data/examples/module-header/*.hs
5e17615
    data/examples/other/*.hs
5e17615
    data/diff-tests/inputs/*.hs
5e17615
    data/diff-tests/outputs/*.txt
5e17615

5e17615
extra-doc-files:
5e17615
    CONTRIBUTING.md
5e17615
    CHANGELOG.md
5e17615
    DESIGN.md
5e17615
    README.md
5e17615

5e17615
source-repository head
5e17615
    type:     git
5e17615
    location: https://github.com/tweag/ormolu.git
5e17615

5e17615
flag dev
5e17615
    description: Turn on development settings.
5e17615
    default:     False
5e17615
    manual:      True
5e17615

5e17615
library
5e17615
    exposed-modules:
5e17615
        Ormolu
5e17615
        Ormolu.Config
5e17615
        Ormolu.Diff.ParseResult
5e17615
        Ormolu.Diff.Text
5e17615
        Ormolu.Exception
5e17615
        Ormolu.Imports
5e17615
        Ormolu.Parser
5e17615
        Ormolu.Parser.Anns
5e17615
        Ormolu.Parser.CommentStream
5e17615
        Ormolu.Parser.Pragma
5e17615
        Ormolu.Parser.Result
5e17615
        Ormolu.Parser.Shebang
5e17615
        Ormolu.Printer
5e17615
        Ormolu.Printer.Combinators
5e17615
        Ormolu.Printer.Comments
5e17615
        Ormolu.Printer.Internal
5e17615
        Ormolu.Printer.Meat.Common
5e17615
        Ormolu.Printer.Meat.Declaration
5e17615
        Ormolu.Printer.Meat.Declaration.Annotation
5e17615
        Ormolu.Printer.Meat.Declaration.Class
5e17615
        Ormolu.Printer.Meat.Declaration.Data
5e17615
        Ormolu.Printer.Meat.Declaration.Default
5e17615
        Ormolu.Printer.Meat.Declaration.Foreign
5e17615
        Ormolu.Printer.Meat.Declaration.Instance
5e17615
        Ormolu.Printer.Meat.Declaration.RoleAnnotation
5e17615
        Ormolu.Printer.Meat.Declaration.Rule
5e17615
        Ormolu.Printer.Meat.Declaration.Signature
5e17615
        Ormolu.Printer.Meat.Declaration.Splice
5e17615
        Ormolu.Printer.Meat.Declaration.Type
5e17615
        Ormolu.Printer.Meat.Declaration.TypeFamily
5e17615
        Ormolu.Printer.Meat.Declaration.Value
5e17615
        Ormolu.Printer.Meat.Declaration.Warning
5e17615
        Ormolu.Printer.Meat.ImportExport
5e17615
        Ormolu.Printer.Meat.Module
5e17615
        Ormolu.Printer.Meat.Pragma
5e17615
        Ormolu.Printer.Meat.Type
5e17615
        Ormolu.Printer.Operators
5e17615
        Ormolu.Printer.SpanStream
5e17615
        Ormolu.Processing.Common
5e17615
        Ormolu.Processing.Cpp
5e17615
        Ormolu.Processing.Postprocess
5e17615
        Ormolu.Processing.Preprocess
5e17615
        Ormolu.Terminal
5e17615
        Ormolu.Utils
5e17615

5e17615
    hs-source-dirs:   src
5e17615
    other-modules:
5e17615
        GHC
5e17615
        GHC.DynFlags
5e17615

5e17615
    default-language: Haskell2010
5e17615
    build-depends:
5e17615
        Diff >=0.4 && <1.0,
5e17615
        ansi-terminal >=0.10 && <1.0,
5e17615
        base >=4.12 && <5.0,
5e17615
        bytestring >=0.2 && <0.12,
5e17615
        containers >=0.5 && <0.7,
5e17615
        dlist >=0.8 && <2.0,
5e17615
        exceptions >=0.6 && <0.11,
5e17615
        ghc-lib-parser >=8.10 && <8.11,
5e17615
        mtl >=2.0 && <3.0,
5e17615
        syb >=0.7 && <0.8,
5e17615
        text >=0.2 && <1.3
5e17615

5e17615
    if flag(dev)
5e17615
        ghc-options:
5e17615
            -Wall -Werror -Wcompat -Wincomplete-record-updates
5e17615
            -Wincomplete-uni-patterns -Wnoncanonical-monad-instances
5e17615
            -Wno-missing-home-modules
5e17615

5e17615
    else
5e17615
        ghc-options: -O2 -Wall
5e17615

5e17615
executable ormolu
5e17615
    main-is:          Main.hs
5e17615
    hs-source-dirs:   app
5e17615
    other-modules:    Paths_ormolu
5e17615
    default-language: Haskell2010
5e17615
    build-depends:
5e17615
        base >=4.12 && <5.0,
5e17615
        filepath >=1.2 && <1.5,
5e17615
        ghc-lib-parser >=8.10 && <8.11,
5e17615
        gitrev >=1.3 && <1.4,
5e17615
        optparse-applicative >=0.14 && <0.17,
5e17615
        ormolu -any,
5e17615
        text >=0.2 && <1.3
5e17615

5e17615
    if flag(dev)
5e17615
        ghc-options:
5e17615
            -Wall -Werror -Wcompat -Wincomplete-record-updates
5e17615
            -Wincomplete-uni-patterns -Wnoncanonical-monad-instances
5e17615
            -optP-Wno-nonportable-include-path
5e17615

5e17615
    else
5e17615
        ghc-options: -O2 -Wall -rtsopts
5e17615

5e17615
test-suite tests
5e17615
    type:             exitcode-stdio-1.0
5e17615
    main-is:          Spec.hs
5e17615
    build-tools:      hspec-discover >=2.0 && <3.0
5e17615
    hs-source-dirs:   tests
5e17615
    other-modules:
5e17615
        Ormolu.Diff.TextSpec
5e17615
        Ormolu.Parser.PragmaSpec
5e17615
        Ormolu.PrinterSpec
5e17615

5e17615
    default-language: Haskell2010
5e17615
    build-depends:
5e17615
        base >=4.12 && <5.0,
5e17615
        containers >=0.5 && <0.7,
5e17615
        filepath >=1.2 && <1.5,
5e17615
        hspec >=2.0 && <3.0,
5e17615
        ormolu -any,
5e17615
        path >=0.6 && <0.9,
5e17615
        path-io >=1.4.2 && <2.0,
5e17615
        text >=0.2 && <1.3
5e17615

5e17615
    if flag(dev)
5e17615
        ghc-options: -Wall -Werror
5e17615

5e17615
    else
5e17615
        ghc-options: -O2 -Wall