Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Use cabal-helper 1.1 #1771

Merged
merged 5 commits into from
May 14, 2020
Merged
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
10 changes: 3 additions & 7 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ packages:

-- ./submodules/HaRe

source-repository-package
type: git
location: https://github.com/DanielG/cabal-helper.git
tag: a18bbb2af92e9b4337e7f930cb80754f2408bcfd

tests: true

package haskell-ide-engine
Expand All @@ -17,8 +12,9 @@ package haskell-ide-engine
-- Match the flag settings we use in stac builds
constraints:
haskell-ide-engine +pedantic,
hie-plugin-api +pedantic
hie-plugin-api +pedantic,
ghc-lib-parser == 8.8.2.20200205

write-ghc-environment-files: never

index-state: 2020-05-10T18:26:01Z
index-state: 2020-05-12T16:28:12Z
2 changes: 1 addition & 1 deletion haskell-ide-engine.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ library
, brittany
, bytestring
, Cabal
, cabal-helper >= 1.0 && < 1.1
, cabal-helper >= 1.1 && < 1.2
, containers
, data-default
, directory
Expand Down
5 changes: 3 additions & 2 deletions src/Haskell/Ide/Engine/Plugin/Package.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ import qualified Data.Text.Encoding as T
import Data.Maybe
#if __GLASGOW_HASKELL__ < 808
import Data.Monoid ((<>))
#else
#endif
#if MIN_VERSION_Cabal(3,0,0)
import qualified Data.Set as S
#endif
#if MIN_VERSION_Cabal(2,2,0)
Expand Down Expand Up @@ -301,7 +302,7 @@ editCabalPackage file modulePath pkgName fileMap = do
-- Add it to the bottom of the dependencies list
-- TODO: we could sort the depencies and then insert it,
-- or insert it in order iff the list is already sorted.
#if __GLASGOW_HASKELL__ >= 808
#if MIN_VERSION_Cabal(3,0,0)
newDeps = oldDeps ++ [Dependency (mkPackageName (T.unpack dep)) anyVersion S.empty]
#else
newDeps = oldDeps ++ [Dependency (mkPackageName (T.unpack dep)) anyVersion]
Expand Down
14 changes: 9 additions & 5 deletions stack-8.4.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ extra-deps:
- bifunctors-5.5.6
- brittany-0.12.1.1
- bytestring-trie-0.2.5.0
# - cabal-helper-1.0.0.0
- github: DanielG/cabal-helper
commit: a18bbb2af92e9b4337e7f930cb80754f2408bcfd
- Cabal-3.0.2.0
- cabal-doctest-1.0.8
- cabal-helper-1.1.0.0
- cabal-plan-0.5.0.0
- connection-0.3.1 # for network and network-bsd
- constrained-dynamic-0.1.0.0
Expand All @@ -27,16 +27,18 @@ extra-deps:
- ghc-exactprint-0.6.2 # for HaRe
- ghc-lib-parser-8.8.2.20200205
- ghc-lib-parser-ex-8.8.5.3
- haddock-api-2.20.0
- ghc-paths-0.1.0.12
- haddock-api-2.20.0@rev:1
- haddock-library-1.6.0
- happy-1.19.12
- haskell-lsp-0.20.0.0
- haskell-lsp-types-0.20.0.0
- haskell-src-exts-1.22.0
- haskell-src-exts-util-0.2.5
- hie-bios-0.5.0
- hlint-2.2.11
- hoogle-5.0.17.15
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
- hsimport-0.11.0@rev:2
- hslogger-1.3.1.0
- invariant-0.5.3
- lens-4.18.1
Expand Down Expand Up @@ -77,6 +79,8 @@ flags:
hie-plugin-api:
pedantic: true

# allow-newer: true

nix:
packages: [ icu libcxx zlib ]

Expand Down
14 changes: 9 additions & 5 deletions stack-8.4.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ extra-deps:
- bifunctors-5.5.7
- brittany-0.12.1.1
- bytestring-trie-0.2.5.0
# - cabal-helper-1.0.0.0
- github: DanielG/cabal-helper
commit: a18bbb2af92e9b4337e7f930cb80754f2408bcfd
- Cabal-3.0.2.0
- cabal-doctest-1.0.8
- cabal-helper-1.1.0.0
- cabal-plan-0.6.2.0
- connection-0.3.1 # for network and network-bsd
- constrained-dynamic-0.1.0.0
Expand All @@ -33,16 +33,18 @@ extra-deps:
- ghc-exactprint-0.6.2 # for HaRe
- ghc-lib-parser-8.8.2.20200205
- ghc-lib-parser-ex-8.8.5.3
- haddock-api-2.20.0
- ghc-paths-0.1.0.12
- haddock-api-2.20.0@rev:1
- haddock-library-1.6.0
- haskell-lsp-0.20.0.0
- haskell-lsp-types-0.20.0.0
- haskell-src-exts-1.22.0
- haskell-src-exts-util-0.2.5
- happy-1.19.12
- hie-bios-0.5.0
- hlint-2.2.11
- hoogle-5.0.17.15
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
- hsimport-0.11.0@rev:2
- hslogger-1.3.1.0
- hspec-2.7.1
- hspec-core-2.7.1
Expand Down Expand Up @@ -95,6 +97,8 @@ flags:
hie-plugin-api:
pedantic: true

# allow-newer: true

nix:
packages: [icu libcxx zlib]

Expand Down
14 changes: 9 additions & 5 deletions stack-8.4.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ extra-deps:
- bifunctors-5.5.6
- brittany-0.12.1.1
- bytestring-trie-0.2.5.0
# - cabal-helper-1.0.0.0
- github: DanielG/cabal-helper
commit: a18bbb2af92e9b4337e7f930cb80754f2408bcfd
- Cabal-3.0.2.0
- cabal-doctest-1.0.8
- cabal-helper-1.1.0.0
- cabal-plan-0.5.0.0
- connection-0.3.1 # for network and network-bsd
- constrained-dynamic-0.1.0.0
Expand All @@ -26,16 +26,18 @@ extra-deps:
- ghc-exactprint-0.6.2 # for HaRe
- ghc-lib-parser-8.8.2.20200205
- ghc-lib-parser-ex-8.8.5.3
- haddock-api-2.20.0
- ghc-paths-0.1.0.12
- haddock-api-2.20.0@rev:1
- haddock-library-1.6.0
- happy-1.19.12
- haskell-lsp-0.20.0.0
- haskell-lsp-types-0.20.0.0
- haskell-src-exts-1.22.0
- haskell-src-exts-util-0.2.5
- hie-bios-0.5.0
- hlint-2.2.11
- hoogle-5.0.17.15
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
- hsimport-0.11.0@rev:2
- hslogger-1.3.1.0
- invariant-0.5.3
- lens-4.18.1
Expand Down Expand Up @@ -75,6 +77,8 @@ flags:
hie-plugin-api:
pedantic: true

# allow-newer: true

nix:
packages: [icu libcxx zlib]

Expand Down
16 changes: 11 additions & 5 deletions stack-8.6.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,29 @@ extra-deps:
- brittany-0.12.1.1
- butcher-1.3.2.1
- bytestring-trie-0.2.5.0
# - cabal-helper-1.0.0.0
- github: DanielG/cabal-helper
commit: a18bbb2af92e9b4337e7f930cb80754f2408bcfd
- Cabal-3.0.2.0
- cabal-doctest-1.0.8
- cabal-helper-1.1.0.0
- cabal-plan-0.5.0.0
- constrained-dynamic-0.1.0.0
- extra-1.6.21
- floskell-0.10.2
- ghc-exactprint-0.6.2 # for HaRe
- ghc-lib-parser-8.8.2.20200205
- ghc-lib-parser-ex-8.8.5.3
- haddock-api-2.22.0
- ghc-paths-0.1.0.12
- haddock-api-2.22.0@rev:1
- happy-1.19.12
- haskell-lsp-0.20.0.0
- haskell-lsp-types-0.20.0.0
- haskell-src-exts-1.22.0
- hie-bios-0.5.0
- hlint-2.2.11
- hoogle-5.0.17.15
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
- hsimport-0.11.0@rev:2
- lens-4.18
- lsp-test-0.10.1.0
- microlens-th-0.4.2.3@rev:1
- monad-dijkstra-0.1.1.2@rev:1
- monad-memo-0.4.1
- multistate-0.8.0.1
Expand All @@ -39,7 +43,9 @@ extra-deps:
- rope-utf16-splay-0.3.1.0
- syz-0.2.0.0
- temporary-1.2.1.1
- th-abstraction-0.3.1.0
- time-compat-1.9.2.2
- type-equality-1
- unix-compat-0.5.2
- unliftio-0.2.12.1
- unliftio-core-0.2.0.1
Expand Down
11 changes: 6 additions & 5 deletions stack-8.6.5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ extra-deps:
- base-compat-0.11.1
- brittany-0.12.1.1
- bytestring-trie-0.2.5.0
# - cabal-helper-1.0.0.0
- github: DanielG/cabal-helper
commit: a18bbb2af92e9b4337e7f930cb80754f2408bcfd
- Cabal-3.0.2.0
- cabal-helper-1.1.0.0
- cabal-plan-0.6.2.0
- clock-0.7.2
- constrained-dynamic-0.1.0.0
Expand All @@ -24,15 +23,16 @@ extra-deps:
- ghc-exactprint-0.6.2 # for HaRe
- ghc-lib-parser-8.8.2.20200205
- ghc-lib-parser-ex-8.8.5.3
- haddock-api-2.22.0
- haddock-api-2.22.0@rev:1
- haskell-lsp-0.20.0.0
- haskell-lsp-types-0.20.0.0
- haskell-src-exts-1.22.0
- hie-bios-0.5.0
- hlint-2.2.11
- hoogle-5.0.17.15
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
- hsimport-0.11.0@rev:2
- indexed-profunctors-0.1
- lens-4.18
- lsp-test-0.10.1.0
- monad-dijkstra-0.1.1.2
- optics-core-0.2
Expand All @@ -43,6 +43,7 @@ extra-deps:
- semialign-1.1
- temporary-1.2.1.1
- topograph-1
- type-equality-1
- unliftio-0.2.12.1
- unliftio-core-0.2.0.1

Expand Down
7 changes: 3 additions & 4 deletions stack-8.8.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ extra-deps:
- apply-refact-0.7.0.0
- brittany-0.12.1.1
- bytestring-trie-0.2.5.0
# - cabal-helper-1.0.0.0
- github: DanielG/cabal-helper
commit: a18bbb2af92e9b4337e7f930cb80754f2408bcfd
- Cabal-3.0.2.0
- cabal-helper-1.1.0.0
- clock-0.7.2
- constrained-dynamic-0.1.0.0
- floskell-0.10.2
Expand All @@ -25,7 +24,7 @@ extra-deps:
- hie-bios-0.5.0
- hlint-2.2.11
- hoogle-5.0.17.15
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
- hsimport-0.11.0@rev:2
- ilist-0.3.1.0
- monad-dijkstra-0.1.1.2
- ormolu-0.0.3.1
Expand Down
5 changes: 2 additions & 3 deletions stack-8.8.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ extra-deps:

- apply-refact-0.7.0.0
- bytestring-trie-0.2.5.0@rev:1
# - cabal-helper-1.0.0.0
- github: DanielG/cabal-helper
commit: a18bbb2af92e9b4337e7f930cb80754f2408bcfd
- Cabal-3.0.2.0
- cabal-helper-1.1.0.0
- clock-0.7.2
- constrained-dynamic-0.1.0.0
- floskell-0.10.2
Expand Down
4 changes: 1 addition & 3 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ extra-deps:

- apply-refact-0.7.0.0
- bytestring-trie-0.2.5.0
# - cabal-helper-1.0.0.0
- github: DanielG/cabal-helper
commit: a18bbb2af92e9b4337e7f930cb80754f2408bcfd
- cabal-helper-1.1.0.0
- clock-0.7.2
- constrained-dynamic-0.1.0.0
- floskell-0.10.2
Expand Down