mirror of
https://github.com/tweag/ormolu.git
synced 2024-09-11 13:16:13 +03:00
Apply cabal-gild
This commit is contained in:
parent
504cce242f
commit
271bacc727
@ -1,26 +1,31 @@
|
|||||||
cabal-version: 2.4
|
cabal-version: 2.4
|
||||||
name: extract-hackage-info
|
name: extract-hackage-info
|
||||||
version: 0.0.0.0
|
version: 0.0.0.0
|
||||||
maintainer: Thomas Bagrel <thomas.bagrel@tweag.io>
|
maintainer: Thomas Bagrel <thomas.bagrel@tweag.io>
|
||||||
author: Thomas Bagrel <thomas.bagrel@tweag.io>
|
author: Thomas Bagrel <thomas.bagrel@tweag.io>
|
||||||
|
|
||||||
executable extract-hackage-info
|
executable extract-hackage-info
|
||||||
main-is: Main.hs
|
main-is: Main.hs
|
||||||
hs-source-dirs: src
|
hs-source-dirs: src
|
||||||
other-modules: Hoogle
|
other-modules: Hoogle
|
||||||
default-language: GHC2021
|
default-language: GHC2021
|
||||||
ghc-options: -O2 -Wall -rtsopts -Wunused-packages
|
ghc-options:
|
||||||
build-depends:
|
-O2
|
||||||
Cabal-syntax >=3.12 && <3.13,
|
-Wall
|
||||||
aeson >=2.2 && <3,
|
-rtsopts
|
||||||
base >=4.12 && <5,
|
-Wunused-packages
|
||||||
binary >=0.8 && <0.9,
|
|
||||||
bytestring >=0.10 && <0.13,
|
build-depends:
|
||||||
containers >=0.6 && <0.8,
|
Cabal-syntax >=3.12 && <3.13,
|
||||||
directory >=1 && <2,
|
aeson >=2.2 && <3,
|
||||||
filepath >=1.2 && <1.6,
|
base >=4.12 && <5,
|
||||||
optparse-applicative >=0.14 && <0.19,
|
binary >=0.8 && <0.9,
|
||||||
ormolu,
|
bytestring >=0.10 && <0.13,
|
||||||
text >=2.1 && <3,
|
containers >=0.6 && <0.8,
|
||||||
formatting >=7.1 && <7.3,
|
directory >=1 && <2,
|
||||||
megaparsec >=9
|
filepath >=1.2 && <1.6,
|
||||||
|
formatting >=7.1 && <7.3,
|
||||||
|
megaparsec >=9,
|
||||||
|
optparse-applicative >=0.14 && <0.19,
|
||||||
|
ormolu,
|
||||||
|
text >=2.1 && <3,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
cabal-version: 2.4
|
cabal-version: 2.4
|
||||||
name: dummy
|
name: dummy
|
||||||
version: 0.0.0.0
|
version: 0.0.0.0
|
||||||
license: BSD-3-Clause
|
license: BSD-3-Clause
|
||||||
|
@ -1,25 +1,28 @@
|
|||||||
cabal-version: 3.0
|
cabal-version: 3.0
|
||||||
name: ormolu-live
|
name: ormolu-live
|
||||||
version: 0.0.0.0
|
version: 0.0.0.0
|
||||||
maintainer: Alexander Esgen <alexander.esgen@tweag.io>
|
maintainer: Alexander Esgen <alexander.esgen@tweag.io>
|
||||||
author: Alexander Esgen <alexander.esgen@tweag.io>
|
author: Alexander Esgen <alexander.esgen@tweag.io>
|
||||||
|
|
||||||
executable ormolu-live
|
executable ormolu-live
|
||||||
main-is: Main.hs
|
main-is: Main.hs
|
||||||
c-sources: cbits/init.c
|
c-sources: cbits/init.c
|
||||||
hs-source-dirs: app
|
hs-source-dirs: app
|
||||||
default-language: GHC2021
|
default-language: GHC2021
|
||||||
ghc-options:
|
ghc-options:
|
||||||
-Wall -Wunused-packages -no-hs-main -optl-mexec-model=reactor
|
-Wall
|
||||||
"-optl-Wl,--export=malloc,--export=mallocPtr,--export=free,--export=formatRaw"
|
-Wunused-packages
|
||||||
|
-no-hs-main
|
||||||
|
-optl-mexec-model=reactor
|
||||||
|
"-optl-Wl,--export=malloc,--export=mallocPtr,--export=free,--export=formatRaw"
|
||||||
|
|
||||||
build-depends:
|
build-depends:
|
||||||
base,
|
Cabal-syntax,
|
||||||
ormolu,
|
aeson,
|
||||||
bytestring,
|
base,
|
||||||
text,
|
bytestring,
|
||||||
containers,
|
containers,
|
||||||
aeson,
|
deepseq,
|
||||||
ghc-lib-parser,
|
ghc-lib-parser,
|
||||||
Cabal-syntax,
|
ormolu,
|
||||||
deepseq
|
text,
|
||||||
|
372
ormolu.cabal
372
ormolu.cabal
@ -1,199 +1,217 @@
|
|||||||
cabal-version: 2.4
|
cabal-version: 2.4
|
||||||
name: ormolu
|
name: ormolu
|
||||||
version: 0.7.7.0
|
version: 0.7.7.0
|
||||||
license: BSD-3-Clause
|
license: BSD-3-Clause
|
||||||
license-file: LICENSE.md
|
license-file: LICENSE.md
|
||||||
maintainer: Mark Karpov <mark.karpov@tweag.io>
|
maintainer: Mark Karpov <mark.karpov@tweag.io>
|
||||||
tested-with: ghc ==9.6.5 ghc ==9.8.2 ghc ==9.10.1
|
tested-with:
|
||||||
homepage: https://github.com/tweag/ormolu
|
ghc ==9.6.5
|
||||||
bug-reports: https://github.com/tweag/ormolu/issues
|
ghc ==9.8.2
|
||||||
synopsis: A formatter for Haskell source code
|
ghc ==9.10.1
|
||||||
description: A formatter for Haskell source code.
|
|
||||||
category: Development, Formatting
|
homepage: https://github.com/tweag/ormolu
|
||||||
build-type: Simple
|
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:
|
extra-source-files:
|
||||||
data/**/*.hs
|
data/**/*.cabal
|
||||||
data/**/*.txt
|
data/**/*.hs
|
||||||
data/**/*.cabal
|
data/**/*.txt
|
||||||
extract-hackage-info/hackage-info.bin
|
extract-hackage-info/hackage-info.bin
|
||||||
|
|
||||||
extra-doc-files:
|
extra-doc-files:
|
||||||
CONTRIBUTING.md
|
CHANGELOG.md
|
||||||
CHANGELOG.md
|
CONTRIBUTING.md
|
||||||
DESIGN.md
|
DESIGN.md
|
||||||
README.md
|
README.md
|
||||||
|
|
||||||
source-repository head
|
source-repository head
|
||||||
type: git
|
type: git
|
||||||
location: https://github.com/tweag/ormolu.git
|
location: https://github.com/tweag/ormolu.git
|
||||||
|
|
||||||
flag dev
|
flag dev
|
||||||
description: Turn on development settings.
|
description: Turn on development settings.
|
||||||
default: False
|
default: False
|
||||||
manual: True
|
manual: True
|
||||||
|
|
||||||
flag internal-bundle-fixities
|
flag internal-bundle-fixities
|
||||||
description:
|
description:
|
||||||
An internal ad-hoc flag that is enabled by default, Ormolu Live disables
|
An internal ad-hoc flag that is enabled by default, Ormolu Live disables
|
||||||
it due to missing WASM TH support.
|
it due to missing WASM TH support.
|
||||||
|
|
||||||
manual: True
|
manual: True
|
||||||
|
|
||||||
library
|
library
|
||||||
exposed-modules:
|
exposed-modules:
|
||||||
Ormolu
|
Ormolu
|
||||||
Ormolu.Config
|
Ormolu.Config
|
||||||
Ormolu.Diff.ParseResult
|
Ormolu.Diff.ParseResult
|
||||||
Ormolu.Diff.Text
|
Ormolu.Diff.Text
|
||||||
Ormolu.Exception
|
Ormolu.Exception
|
||||||
Ormolu.Imports
|
Ormolu.Fixity
|
||||||
Ormolu.Parser
|
Ormolu.Fixity.Imports
|
||||||
Ormolu.Parser.CommentStream
|
Ormolu.Fixity.Internal
|
||||||
Ormolu.Parser.Pragma
|
Ormolu.Fixity.Parser
|
||||||
Ormolu.Parser.Result
|
Ormolu.Fixity.Printer
|
||||||
Ormolu.Printer
|
Ormolu.Imports
|
||||||
Ormolu.Printer.Combinators
|
Ormolu.Parser
|
||||||
Ormolu.Printer.Comments
|
Ormolu.Parser.CommentStream
|
||||||
Ormolu.Printer.Internal
|
Ormolu.Parser.Pragma
|
||||||
Ormolu.Printer.Meat.Common
|
Ormolu.Parser.Result
|
||||||
Ormolu.Printer.Meat.Declaration
|
Ormolu.Printer
|
||||||
Ormolu.Printer.Meat.Declaration.Annotation
|
Ormolu.Printer.Combinators
|
||||||
Ormolu.Printer.Meat.Declaration.Class
|
Ormolu.Printer.Comments
|
||||||
Ormolu.Printer.Meat.Declaration.Data
|
Ormolu.Printer.Internal
|
||||||
Ormolu.Printer.Meat.Declaration.Default
|
Ormolu.Printer.Meat.Common
|
||||||
Ormolu.Printer.Meat.Declaration.Foreign
|
Ormolu.Printer.Meat.Declaration
|
||||||
Ormolu.Printer.Meat.Declaration.Instance
|
Ormolu.Printer.Meat.Declaration.Annotation
|
||||||
Ormolu.Printer.Meat.Declaration.RoleAnnotation
|
Ormolu.Printer.Meat.Declaration.Class
|
||||||
Ormolu.Printer.Meat.Declaration.Rule
|
Ormolu.Printer.Meat.Declaration.Data
|
||||||
Ormolu.Printer.Meat.Declaration.Signature
|
Ormolu.Printer.Meat.Declaration.Default
|
||||||
Ormolu.Printer.Meat.Declaration.Splice
|
Ormolu.Printer.Meat.Declaration.Foreign
|
||||||
Ormolu.Printer.Meat.Declaration.Type
|
Ormolu.Printer.Meat.Declaration.Instance
|
||||||
Ormolu.Printer.Meat.Declaration.TypeFamily
|
Ormolu.Printer.Meat.Declaration.OpTree
|
||||||
Ormolu.Printer.Meat.Declaration.Value
|
Ormolu.Printer.Meat.Declaration.RoleAnnotation
|
||||||
Ormolu.Printer.Meat.Declaration.OpTree
|
Ormolu.Printer.Meat.Declaration.Rule
|
||||||
Ormolu.Printer.Meat.Declaration.Warning
|
Ormolu.Printer.Meat.Declaration.Signature
|
||||||
Ormolu.Printer.Meat.ImportExport
|
Ormolu.Printer.Meat.Declaration.Splice
|
||||||
Ormolu.Printer.Meat.Module
|
Ormolu.Printer.Meat.Declaration.Type
|
||||||
Ormolu.Printer.Meat.Pragma
|
Ormolu.Printer.Meat.Declaration.TypeFamily
|
||||||
Ormolu.Printer.Meat.Type
|
Ormolu.Printer.Meat.Declaration.Value
|
||||||
Ormolu.Printer.Operators
|
Ormolu.Printer.Meat.Declaration.Warning
|
||||||
Ormolu.Fixity
|
Ormolu.Printer.Meat.ImportExport
|
||||||
Ormolu.Fixity.Imports
|
Ormolu.Printer.Meat.Module
|
||||||
Ormolu.Fixity.Internal
|
Ormolu.Printer.Meat.Pragma
|
||||||
Ormolu.Fixity.Parser
|
Ormolu.Printer.Meat.Type
|
||||||
Ormolu.Fixity.Printer
|
Ormolu.Printer.Operators
|
||||||
Ormolu.Printer.SpanStream
|
Ormolu.Printer.SpanStream
|
||||||
Ormolu.Processing.Common
|
Ormolu.Processing.Common
|
||||||
Ormolu.Processing.Cpp
|
Ormolu.Processing.Cpp
|
||||||
Ormolu.Processing.Preprocess
|
Ormolu.Processing.Preprocess
|
||||||
Ormolu.Terminal
|
Ormolu.Terminal
|
||||||
Ormolu.Terminal.QualifiedDo
|
Ormolu.Terminal.QualifiedDo
|
||||||
Ormolu.Utils
|
Ormolu.Utils
|
||||||
Ormolu.Utils.Cabal
|
Ormolu.Utils.Cabal
|
||||||
Ormolu.Utils.Fixity
|
Ormolu.Utils.Fixity
|
||||||
Ormolu.Utils.IO
|
Ormolu.Utils.IO
|
||||||
|
|
||||||
hs-source-dirs: src
|
hs-source-dirs: src
|
||||||
other-modules: GHC.DynFlags
|
other-modules: GHC.DynFlags
|
||||||
default-language: GHC2021
|
default-language: GHC2021
|
||||||
build-depends:
|
build-depends:
|
||||||
Cabal-syntax >=3.12 && <3.13,
|
Cabal-syntax >=3.12 && <3.13,
|
||||||
Diff >=0.4 && <1,
|
Diff >=0.4 && <1,
|
||||||
MemoTrie >=0.6 && <0.7,
|
MemoTrie >=0.6 && <0.7,
|
||||||
ansi-terminal >=0.10 && <1.2,
|
ansi-terminal >=0.10 && <1.2,
|
||||||
array >=0.5 && <0.6,
|
array >=0.5 && <0.6,
|
||||||
base >=4.14 && <5,
|
base >=4.14 && <5,
|
||||||
binary >=0.8 && <0.9,
|
binary >=0.8 && <0.9,
|
||||||
bytestring >=0.2 && <0.13,
|
bytestring >=0.2 && <0.13,
|
||||||
choice >=0.2.4.1 && <0.3,
|
choice >=0.2.4.1 && <0.3,
|
||||||
containers >=0.5 && <0.8,
|
containers >=0.5 && <0.8,
|
||||||
deepseq >=1.4 && <1.6,
|
deepseq >=1.4 && <1.6,
|
||||||
directory ^>=1.3,
|
directory ^>=1.3,
|
||||||
file-embed >=0.0.15 && <0.1,
|
file-embed >=0.0.15 && <0.1,
|
||||||
filepath >=1.2 && <1.6,
|
filepath >=1.2 && <1.6,
|
||||||
ghc-lib-parser >=9.10 && <9.11,
|
ghc-lib-parser >=9.10 && <9.11,
|
||||||
megaparsec >=9,
|
megaparsec >=9,
|
||||||
mtl >=2 && <3,
|
mtl >=2 && <3,
|
||||||
syb >=0.7 && <0.8,
|
syb >=0.7 && <0.8,
|
||||||
text >=2.1 && <3
|
text >=2.1 && <3,
|
||||||
|
|
||||||
if flag(dev)
|
if flag(dev)
|
||||||
ghc-options:
|
ghc-options:
|
||||||
-Wall -Werror -Wredundant-constraints -Wpartial-fields
|
-Wall
|
||||||
-Wunused-packages
|
-Werror
|
||||||
|
-Wredundant-constraints
|
||||||
|
-Wpartial-fields
|
||||||
|
-Wunused-packages
|
||||||
|
else
|
||||||
|
ghc-options:
|
||||||
|
-O2
|
||||||
|
-Wall
|
||||||
|
|
||||||
else
|
if flag(internal-bundle-fixities)
|
||||||
ghc-options: -O2 -Wall
|
cpp-options: -DBUNDLE_FIXITIES
|
||||||
|
|
||||||
if flag(internal-bundle-fixities)
|
|
||||||
cpp-options: -DBUNDLE_FIXITIES
|
|
||||||
|
|
||||||
executable ormolu
|
executable ormolu
|
||||||
main-is: Main.hs
|
main-is: Main.hs
|
||||||
hs-source-dirs: app
|
hs-source-dirs: app
|
||||||
other-modules: Paths_ormolu
|
other-modules: Paths_ormolu
|
||||||
autogen-modules: Paths_ormolu
|
autogen-modules: Paths_ormolu
|
||||||
default-language: GHC2021
|
default-language: GHC2021
|
||||||
build-depends:
|
build-depends:
|
||||||
Cabal-syntax >=3.12 && <3.13,
|
Cabal-syntax >=3.12 && <3.13,
|
||||||
base >=4.12 && <5,
|
base >=4.12 && <5,
|
||||||
containers >=0.5 && <0.8,
|
containers >=0.5 && <0.8,
|
||||||
directory ^>=1.3,
|
directory ^>=1.3,
|
||||||
filepath >=1.2 && <1.6,
|
filepath >=1.2 && <1.6,
|
||||||
ghc-lib-parser >=9.10 && <9.11,
|
ghc-lib-parser >=9.10 && <9.11,
|
||||||
optparse-applicative >=0.14 && <0.19,
|
optparse-applicative >=0.14 && <0.19,
|
||||||
ormolu,
|
ormolu,
|
||||||
text >=2.1 && <3,
|
text >=2.1 && <3,
|
||||||
th-env >=0.1.1 && <0.2
|
th-env >=0.1.1 && <0.2,
|
||||||
|
|
||||||
if flag(dev)
|
if flag(dev)
|
||||||
ghc-options:
|
ghc-options:
|
||||||
-Wall -Werror -Wredundant-constraints -Wpartial-fields
|
-Wall
|
||||||
-Wunused-packages -Wwarn=unused-packages
|
-Werror
|
||||||
|
-Wredundant-constraints
|
||||||
else
|
-Wpartial-fields
|
||||||
ghc-options: -O2 -Wall -rtsopts
|
-Wunused-packages
|
||||||
|
-Wwarn=unused-packages
|
||||||
|
else
|
||||||
|
ghc-options:
|
||||||
|
-O2
|
||||||
|
-Wall
|
||||||
|
-rtsopts
|
||||||
|
|
||||||
test-suite tests
|
test-suite tests
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
main-is: Spec.hs
|
main-is: Spec.hs
|
||||||
build-tool-depends: hspec-discover:hspec-discover >=2 && <3
|
build-tool-depends: hspec-discover:hspec-discover >=2 && <3
|
||||||
hs-source-dirs: tests
|
hs-source-dirs: tests
|
||||||
other-modules:
|
other-modules:
|
||||||
Ormolu.CabalInfoSpec
|
Ormolu.CabalInfoSpec
|
||||||
Ormolu.Diff.TextSpec
|
Ormolu.Diff.TextSpec
|
||||||
Ormolu.Fixity.ParserSpec
|
Ormolu.Fixity.ParserSpec
|
||||||
Ormolu.Fixity.PrinterSpec
|
Ormolu.Fixity.PrinterSpec
|
||||||
Ormolu.FixitySpec
|
Ormolu.FixitySpec
|
||||||
Ormolu.OpTreeSpec
|
Ormolu.OpTreeSpec
|
||||||
Ormolu.Parser.OptionsSpec
|
Ormolu.Parser.OptionsSpec
|
||||||
Ormolu.Parser.ParseFailureSpec
|
Ormolu.Parser.ParseFailureSpec
|
||||||
Ormolu.Parser.PragmaSpec
|
Ormolu.Parser.PragmaSpec
|
||||||
Ormolu.PrinterSpec
|
Ormolu.PrinterSpec
|
||||||
|
|
||||||
default-language: GHC2021
|
default-language: GHC2021
|
||||||
build-depends:
|
build-depends:
|
||||||
Cabal-syntax >=3.12 && <3.13,
|
Cabal-syntax >=3.12 && <3.13,
|
||||||
QuickCheck >=2.14,
|
QuickCheck >=2.14,
|
||||||
base >=4.14 && <5,
|
base >=4.14 && <5,
|
||||||
choice >=0.2.4.1 && <0.3,
|
choice >=0.2.4.1 && <0.3,
|
||||||
containers >=0.5 && <0.8,
|
containers >=0.5 && <0.8,
|
||||||
directory ^>=1.3,
|
directory ^>=1.3,
|
||||||
filepath >=1.2 && <1.6,
|
filepath >=1.2 && <1.6,
|
||||||
ghc-lib-parser >=9.10 && <9.11,
|
ghc-lib-parser >=9.10 && <9.11,
|
||||||
hspec >=2 && <3,
|
hspec >=2 && <3,
|
||||||
hspec-megaparsec >=2.2,
|
hspec-megaparsec >=2.2,
|
||||||
megaparsec >=9,
|
megaparsec >=9,
|
||||||
ormolu,
|
ormolu,
|
||||||
path >=0.6 && <0.10,
|
path >=0.6 && <0.10,
|
||||||
path-io >=1.4.2 && <2,
|
path-io >=1.4.2 && <2,
|
||||||
temporary ^>=1.3,
|
temporary ^>=1.3,
|
||||||
text >=2.1 && <3
|
text >=2.1 && <3,
|
||||||
|
|
||||||
if flag(dev)
|
if flag(dev)
|
||||||
ghc-options:
|
ghc-options:
|
||||||
-Wall -Werror -Wredundant-constraints -Wpartial-fields
|
-Wall
|
||||||
-Wunused-packages
|
-Werror
|
||||||
|
-Wredundant-constraints
|
||||||
else
|
-Wpartial-fields
|
||||||
ghc-options: -O2 -Wall
|
-Wunused-packages
|
||||||
|
else
|
||||||
|
ghc-options:
|
||||||
|
-O2
|
||||||
|
-Wall
|
||||||
|
Loading…
Reference in New Issue
Block a user