2021-08-07 17:39:45 +03:00
|
|
|
cabal-version: 2.4
|
|
|
|
name: ormolu
|
2023-10-24 21:52:07 +03:00
|
|
|
version: 0.7.3.0
|
2021-08-07 17:39:45 +03:00
|
|
|
license: BSD-3-Clause
|
|
|
|
license-file: LICENSE.md
|
|
|
|
maintainer: Mark Karpov <mark.karpov@tweag.io>
|
2023-07-30 17:05:07 +03:00
|
|
|
tested-with: ghc ==9.4.7 ghc ==9.6.3 ghc ==9.8.1
|
2021-08-07 17:39:45 +03:00
|
|
|
homepage: https://github.com/tweag/ormolu
|
|
|
|
bug-reports: https://github.com/tweag/ormolu/issues
|
|
|
|
synopsis: A formatter for Haskell source code
|
|
|
|
description: A formatter for Haskell source code.
|
|
|
|
category: Development, Formatting
|
|
|
|
build-type: Simple
|
|
|
|
extra-source-files:
|
|
|
|
data/**/*.hs
|
|
|
|
data/**/*.txt
|
2022-07-15 15:48:32 +03:00
|
|
|
data/**/*.cabal
|
2023-01-05 17:48:14 +03:00
|
|
|
extract-hackage-info/hackage-info.bin
|
2020-04-25 00:30:08 +03:00
|
|
|
|
|
|
|
extra-doc-files:
|
|
|
|
CONTRIBUTING.md
|
|
|
|
CHANGELOG.md
|
|
|
|
DESIGN.md
|
|
|
|
README.md
|
2018-11-25 16:34:28 +03:00
|
|
|
|
|
|
|
source-repository head
|
2020-04-25 00:30:08 +03:00
|
|
|
type: git
|
|
|
|
location: https://github.com/tweag/ormolu.git
|
2018-11-25 16:34:28 +03:00
|
|
|
|
|
|
|
flag dev
|
2020-04-25 00:30:08 +03:00
|
|
|
description: Turn on development settings.
|
|
|
|
default: False
|
|
|
|
manual: True
|
2018-11-25 16:34:28 +03:00
|
|
|
|
2023-01-04 23:04:58 +03:00
|
|
|
flag internal-bundle-fixities
|
|
|
|
description:
|
|
|
|
An internal ad-hoc flag that is enabled by default, Ormolu Live disables
|
|
|
|
it due to missing WASM TH support.
|
|
|
|
|
|
|
|
manual: True
|
|
|
|
|
2018-11-25 16:34:28 +03:00
|
|
|
library
|
2020-04-25 00:30:08 +03:00
|
|
|
exposed-modules:
|
|
|
|
Ormolu
|
|
|
|
Ormolu.Config
|
2020-11-11 02:37:33 +03:00
|
|
|
Ormolu.Diff.ParseResult
|
|
|
|
Ormolu.Diff.Text
|
2020-04-25 00:30:08 +03:00
|
|
|
Ormolu.Exception
|
|
|
|
Ormolu.Imports
|
|
|
|
Ormolu.Parser
|
|
|
|
Ormolu.Parser.CommentStream
|
|
|
|
Ormolu.Parser.Pragma
|
|
|
|
Ormolu.Parser.Result
|
|
|
|
Ormolu.Printer
|
|
|
|
Ormolu.Printer.Combinators
|
|
|
|
Ormolu.Printer.Comments
|
|
|
|
Ormolu.Printer.Internal
|
|
|
|
Ormolu.Printer.Meat.Common
|
|
|
|
Ormolu.Printer.Meat.Declaration
|
|
|
|
Ormolu.Printer.Meat.Declaration.Annotation
|
|
|
|
Ormolu.Printer.Meat.Declaration.Class
|
|
|
|
Ormolu.Printer.Meat.Declaration.Data
|
|
|
|
Ormolu.Printer.Meat.Declaration.Default
|
|
|
|
Ormolu.Printer.Meat.Declaration.Foreign
|
|
|
|
Ormolu.Printer.Meat.Declaration.Instance
|
|
|
|
Ormolu.Printer.Meat.Declaration.RoleAnnotation
|
|
|
|
Ormolu.Printer.Meat.Declaration.Rule
|
|
|
|
Ormolu.Printer.Meat.Declaration.Signature
|
|
|
|
Ormolu.Printer.Meat.Declaration.Splice
|
|
|
|
Ormolu.Printer.Meat.Declaration.Type
|
|
|
|
Ormolu.Printer.Meat.Declaration.TypeFamily
|
|
|
|
Ormolu.Printer.Meat.Declaration.Value
|
2021-11-10 19:00:04 +03:00
|
|
|
Ormolu.Printer.Meat.Declaration.OpTree
|
2020-04-25 00:30:08 +03:00
|
|
|
Ormolu.Printer.Meat.Declaration.Warning
|
|
|
|
Ormolu.Printer.Meat.ImportExport
|
|
|
|
Ormolu.Printer.Meat.Module
|
|
|
|
Ormolu.Printer.Meat.Pragma
|
|
|
|
Ormolu.Printer.Meat.Type
|
|
|
|
Ormolu.Printer.Operators
|
2021-11-10 19:00:04 +03:00
|
|
|
Ormolu.Fixity
|
2023-02-25 19:47:24 +03:00
|
|
|
Ormolu.Fixity.Imports
|
2021-12-17 17:28:43 +03:00
|
|
|
Ormolu.Fixity.Internal
|
2022-05-03 18:00:21 +03:00
|
|
|
Ormolu.Fixity.Parser
|
|
|
|
Ormolu.Fixity.Printer
|
2020-04-25 00:30:08 +03:00
|
|
|
Ormolu.Printer.SpanStream
|
|
|
|
Ormolu.Processing.Common
|
|
|
|
Ormolu.Processing.Cpp
|
|
|
|
Ormolu.Processing.Preprocess
|
2020-11-14 21:51:07 +03:00
|
|
|
Ormolu.Terminal
|
2023-02-03 13:02:24 +03:00
|
|
|
Ormolu.Terminal.QualifiedDo
|
2020-04-25 00:30:08 +03:00
|
|
|
Ormolu.Utils
|
2021-11-10 19:00:04 +03:00
|
|
|
Ormolu.Utils.Cabal
|
2022-05-03 18:00:21 +03:00
|
|
|
Ormolu.Utils.Fixity
|
2021-08-11 13:41:22 +03:00
|
|
|
Ormolu.Utils.IO
|
2018-11-25 16:34:28 +03:00
|
|
|
|
2020-04-25 00:30:08 +03:00
|
|
|
hs-source-dirs: src
|
2021-07-23 13:27:41 +03:00
|
|
|
other-modules: GHC.DynFlags
|
2023-03-31 21:32:44 +03:00
|
|
|
default-language: GHC2021
|
2020-04-25 00:30:08 +03:00
|
|
|
build-depends:
|
2023-01-28 17:22:07 +03:00
|
|
|
Cabal-syntax >=3.10 && <3.11,
|
2023-10-23 22:50:17 +03:00
|
|
|
Diff >=0.4 && <1,
|
2021-12-17 21:51:12 +03:00
|
|
|
MemoTrie >=0.6 && <0.7,
|
2023-05-14 19:55:17 +03:00
|
|
|
ansi-terminal >=0.10 && <1.1,
|
2021-12-17 21:51:12 +03:00
|
|
|
array >=0.5 && <0.6,
|
2023-10-23 22:50:17 +03:00
|
|
|
base >=4.14 && <5,
|
2023-01-05 17:48:14 +03:00
|
|
|
binary >=0.8 && <0.9,
|
2023-08-17 21:16:32 +03:00
|
|
|
bytestring >=0.2 && <0.13,
|
2023-07-30 17:05:07 +03:00
|
|
|
containers >=0.5 && <0.8,
|
2023-08-17 21:16:32 +03:00
|
|
|
deepseq >=1.4 && <1.6,
|
2021-12-17 21:51:12 +03:00
|
|
|
directory ^>=1.3,
|
2023-01-03 17:31:57 +03:00
|
|
|
file-embed >=0.0.15 && <0.1,
|
2021-12-17 21:51:12 +03:00
|
|
|
filepath >=1.2 && <1.5,
|
2023-07-30 17:05:07 +03:00
|
|
|
ghc-lib-parser >=9.8 && <9.9,
|
2023-10-23 22:50:17 +03:00
|
|
|
megaparsec >=9,
|
|
|
|
mtl >=2 && <3,
|
2020-04-25 00:30:08 +03:00
|
|
|
syb >=0.7 && <0.8,
|
2023-10-23 22:50:17 +03:00
|
|
|
text >=2 && <3
|
2018-12-08 17:39:42 +03:00
|
|
|
|
2020-04-25 00:30:08 +03:00
|
|
|
if flag(dev)
|
|
|
|
ghc-options:
|
2023-03-31 21:32:45 +03:00
|
|
|
-Wall -Werror -Wredundant-constraints -Wpartial-fields
|
2023-02-03 13:02:24 +03:00
|
|
|
-Wunused-packages
|
2020-04-25 00:30:08 +03:00
|
|
|
|
|
|
|
else
|
|
|
|
ghc-options: -O2 -Wall
|
2018-11-25 16:34:28 +03:00
|
|
|
|
2023-01-04 23:04:58 +03:00
|
|
|
if flag(internal-bundle-fixities)
|
|
|
|
cpp-options: -DBUNDLE_FIXITIES
|
|
|
|
|
2018-11-25 16:34:28 +03:00
|
|
|
executable ormolu
|
2020-04-25 00:30:08 +03:00
|
|
|
main-is: Main.hs
|
|
|
|
hs-source-dirs: app
|
|
|
|
other-modules: Paths_ormolu
|
2021-08-07 17:39:45 +03:00
|
|
|
autogen-modules: Paths_ormolu
|
2023-03-31 21:32:44 +03:00
|
|
|
default-language: GHC2021
|
2020-04-25 00:30:08 +03:00
|
|
|
build-depends:
|
2023-05-03 21:23:07 +03:00
|
|
|
Cabal-syntax >=3.10 && <3.11,
|
2023-10-23 22:50:17 +03:00
|
|
|
base >=4.12 && <5,
|
2021-11-10 19:00:04 +03:00
|
|
|
containers >=0.5 && <0.7,
|
2023-01-24 21:20:49 +03:00
|
|
|
directory ^>=1.3,
|
2020-11-14 21:51:07 +03:00
|
|
|
filepath >=1.2 && <1.5,
|
2023-07-30 17:05:07 +03:00
|
|
|
ghc-lib-parser >=9.8 && <9.9,
|
2023-05-24 21:46:14 +03:00
|
|
|
optparse-applicative >=0.14 && <0.19,
|
2021-07-23 13:27:41 +03:00
|
|
|
ormolu,
|
2023-10-23 22:50:17 +03:00
|
|
|
text >=2 && <3,
|
2023-05-03 21:23:07 +03:00
|
|
|
th-env >=0.1.1 && <0.2
|
2020-04-25 00:30:08 +03:00
|
|
|
|
|
|
|
if flag(dev)
|
|
|
|
ghc-options:
|
2023-03-31 21:32:45 +03:00
|
|
|
-Wall -Werror -Wredundant-constraints -Wpartial-fields
|
|
|
|
-Wunused-packages -Wwarn=unused-packages
|
2020-04-25 00:30:08 +03:00
|
|
|
|
|
|
|
else
|
|
|
|
ghc-options: -O2 -Wall -rtsopts
|
|
|
|
|
|
|
|
test-suite tests
|
2021-08-07 17:39:45 +03:00
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: Spec.hs
|
2023-10-23 22:50:17 +03:00
|
|
|
build-tool-depends: hspec-discover:hspec-discover >=2 && <3
|
2021-08-07 17:39:45 +03:00
|
|
|
hs-source-dirs: tests
|
2020-04-25 00:30:08 +03:00
|
|
|
other-modules:
|
2021-11-10 19:00:04 +03:00
|
|
|
Ormolu.CabalInfoSpec
|
2022-05-03 18:00:21 +03:00
|
|
|
Ormolu.Diff.TextSpec
|
|
|
|
Ormolu.Fixity.ParserSpec
|
|
|
|
Ormolu.Fixity.PrinterSpec
|
2023-02-25 19:47:24 +03:00
|
|
|
Ormolu.FixitySpec
|
2021-11-10 19:00:04 +03:00
|
|
|
Ormolu.OpTreeSpec
|
2021-07-29 17:27:35 +03:00
|
|
|
Ormolu.Parser.OptionsSpec
|
2021-09-10 10:44:19 +03:00
|
|
|
Ormolu.Parser.ParseFailureSpec
|
2020-04-25 00:30:08 +03:00
|
|
|
Ormolu.Parser.PragmaSpec
|
|
|
|
Ormolu.PrinterSpec
|
|
|
|
|
2023-03-31 21:32:44 +03:00
|
|
|
default-language: GHC2021
|
2020-04-25 00:30:08 +03:00
|
|
|
build-depends:
|
2023-01-28 17:22:07 +03:00
|
|
|
Cabal-syntax >=3.10 && <3.11,
|
2022-05-03 18:00:21 +03:00
|
|
|
QuickCheck >=2.14,
|
2023-10-23 22:50:17 +03:00
|
|
|
base >=4.14 && <5,
|
2020-04-25 00:30:08 +03:00
|
|
|
containers >=0.5 && <0.7,
|
2021-09-22 19:37:42 +03:00
|
|
|
directory ^>=1.3,
|
2020-04-25 00:30:08 +03:00
|
|
|
filepath >=1.2 && <1.5,
|
2023-07-30 17:05:07 +03:00
|
|
|
ghc-lib-parser >=9.8 && <9.9,
|
2023-10-23 22:50:17 +03:00
|
|
|
hspec >=2 && <3,
|
2022-05-03 18:00:21 +03:00
|
|
|
hspec-megaparsec >=2.2,
|
2023-10-23 22:50:17 +03:00
|
|
|
megaparsec >=9,
|
2021-07-23 13:27:41 +03:00
|
|
|
ormolu,
|
|
|
|
path >=0.6 && <0.10,
|
2023-10-23 22:50:17 +03:00
|
|
|
path-io >=1.4.2 && <2,
|
2021-09-22 19:37:42 +03:00
|
|
|
temporary ^>=1.3,
|
2023-10-23 22:50:17 +03:00
|
|
|
text >=2 && <3
|
2020-04-25 00:30:08 +03:00
|
|
|
|
|
|
|
if flag(dev)
|
2023-03-31 21:32:45 +03:00
|
|
|
ghc-options:
|
|
|
|
-Wall -Werror -Wredundant-constraints -Wpartial-fields
|
|
|
|
-Wunused-packages
|
2020-04-25 00:30:08 +03:00
|
|
|
|
|
|
|
else
|
|
|
|
ghc-options: -O2 -Wall
|