Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Format .cabal files with cabal-fmt #4230

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 24 additions & 35 deletions ghcide/ghcide.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ homepage:
https://github.com/haskell/haskell-language-server/tree/master/ghcide#readme

bug-reports: https://github.com/haskell/haskell-language-server/issues
tested-with: GHC ==9.8.2 || ==9.6.5 || ==9.4.8 || ==9.2.8
tested-with: GHC ==9.2.8 || ==9.4.8 || ==9.6.5 || ==9.8.2
extra-source-files:
CHANGELOG.md
README.md
Expand All @@ -35,16 +35,12 @@ flag pedantic

common warnings
ghc-options:
-Werror=incomplete-patterns
-Wall
-Wincomplete-uni-patterns
-Wunused-packages
-Wno-name-shadowing
-Wno-unticked-promoted-constructors
-fno-ignore-asserts
-Werror=incomplete-patterns -Wall -Wincomplete-uni-patterns
-Wunused-packages -Wno-name-shadowing
-Wno-unticked-promoted-constructors -fno-ignore-asserts

library
import: warnings
import: warnings
default-language: GHC2021
build-depends:
, aeson
Expand Down Expand Up @@ -82,10 +78,10 @@ library
, hashable
, hie-bios ^>=0.14.0
, hie-compat ^>=0.3.0.0
, hiedb ^>= 0.6.0.0
, hls-graph == 2.8.0.0
, hls-plugin-api == 2.8.0.0
, implicit-hie >= 0.1.4.0 && < 0.1.5
, hiedb ^>=0.6.0.0
, hls-graph ==2.8.0.0
, hls-plugin-api ==2.8.0.0
, implicit-hie >=0.1.4.0 && <0.1.5
, lens
, list-t
, lsp ^>=2.5.0.0
Expand Down Expand Up @@ -149,8 +145,8 @@ library
Development.IDE.Core.Tracing
Development.IDE.Core.UseStale
Development.IDE.GHC.Compat
Development.IDE.GHC.Compat.Core
Development.IDE.GHC.Compat.CmdLine
Development.IDE.GHC.Compat.Core
Development.IDE.GHC.Compat.Env
Development.IDE.GHC.Compat.Iface
Development.IDE.GHC.Compat.Logger
Expand All @@ -175,8 +171,8 @@ library
Development.IDE.Monitoring.OpenTelemetry
Development.IDE.Plugin
Development.IDE.Plugin.Completions
Development.IDE.Plugin.Completions.Types
Development.IDE.Plugin.Completions.Logic
Development.IDE.Plugin.Completions.Types
Development.IDE.Plugin.HLS
Development.IDE.Plugin.HLS.GhcIde
Development.IDE.Plugin.Test
Expand Down Expand Up @@ -208,16 +204,15 @@ library
Development.IDE.Types.Action

if flag(pedantic)
ghc-options:
-Werror
ghc-options: -Werror

flag test-exe
description: Build the ghcide-test-preprocessor executable
default: True

executable ghcide-test-preprocessor
import: warnings
default-language: GHC2021
import: warnings
default-language: GHC2021
hs-source-dirs: test/preprocessor
main-is: Main.hs
build-depends: base >=4 && <5
Expand All @@ -230,12 +225,11 @@ flag executable
default: True

executable ghcide
import: warnings
import: warnings
default-language: GHC2021
hs-source-dirs: exe
ghc-options: -threaded -rtsopts "-with-rtsopts=-I0 -A128M -T"


-- allow user RTS overrides
-- disable idle GC
-- increase nursery size
Expand Down Expand Up @@ -267,19 +261,14 @@ executable ghcide
buildable: False

library ghcide-test-utils
import: warnings
visibility: public
import: warnings
visibility: public
default-language: GHC2021

hs-source-dirs: test/cabal
exposed-modules:
Development.IDE.Test.Runfiles

build-depends:
base > 4.9 && < 5

hs-source-dirs: test/cabal
exposed-modules: Development.IDE.Test.Runfiles
build-depends: base >=4.9.0 && <5
default-extensions:
LambdaCase
OverloadedStrings
RecordWildCards
ViewPatterns
LambdaCase
OverloadedStrings
RecordWildCards
ViewPatterns
Loading
Loading