Skip to content

Commit

Permalink
[ fix ] Remove deprecated extra-source-files
Browse files Browse the repository at this point in the history
  • Loading branch information
banacorn committed Dec 6, 2024
1 parent 107e56e commit 82d0b69
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 45 deletions.
43 changes: 14 additions & 29 deletions agda-language-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -22,32 +22,26 @@ extra-source-files:
CHANGELOG.md
package.yaml
stack.yaml
stack-9.2-Agda-2.6.2.2.yaml
stack-9.2-Agda-2.6.3.yaml
stack-9.2-Agda-2.6.4.yaml
stack-9.2-Agda-2.6.4.3.yaml
stack-9.2-Agda-2.7.0.1.yaml

source-repository head
type: git
location: https://github.com/banacorn/agda-language-server

flag Agda-2-6-2-2
description: Embed Agda-2.6.2.2
manual: True
default: False

flag Agda-2-6-3
description: Embed Agda-2.6.3
manual: True
default: False

flag Agda-2-6-4
description: Embed Agda-2.6.4
flag Agda-2-6-4-3
description: Embed Agda-2.6.4.3
manual: True
default: False

flag Agda-2-6-4-3
description: Embed Agda-2.6.4.3
flag Agda-2-7-0-1
description: Embed Agda-2.7.0.1
manual: True
default: False

Expand Down Expand Up @@ -108,18 +102,15 @@ library
, text
, text-icu
default-language: Haskell2010
if flag(Agda-2-6-2-2)
build-depends:
Agda ==2.6.2.2
if flag(Agda-2-6-3)
build-depends:
Agda ==2.6.3
if flag(Agda-2-6-4)
build-depends:
Agda ==2.6.4
if flag(Agda-2-6-4-3)
build-depends:
Agda ==2.6.4.3
if flag(Agda-2-7-0-1)
build-depends:
Agda ==2.7.0.1

executable als
main-is: Main.hs
Expand Down Expand Up @@ -154,18 +145,15 @@ executable als
, text
, text-icu
default-language: Haskell2010
if flag(Agda-2-6-2-2)
build-depends:
Agda ==2.6.2.2
if flag(Agda-2-6-3)
build-depends:
Agda ==2.6.3
if flag(Agda-2-6-4)
build-depends:
Agda ==2.6.4
if flag(Agda-2-6-4-3)
build-depends:
Agda ==2.6.4.3
if flag(Agda-2-7-0-1)
build-depends:
Agda ==2.7.0.1

test-suite als-test
type: exitcode-stdio-1.0
Expand Down Expand Up @@ -233,15 +221,12 @@ test-suite als-test
, text
, text-icu
default-language: Haskell2010
if flag(Agda-2-6-2-2)
build-depends:
Agda ==2.6.2.2
if flag(Agda-2-6-3)
build-depends:
Agda ==2.6.3
if flag(Agda-2-6-4)
build-depends:
Agda ==2.6.4
if flag(Agda-2-6-4-3)
build-depends:
Agda ==2.6.4.3
if flag(Agda-2-7-0-1)
build-depends:
Agda ==2.7.0.1
24 changes: 8 additions & 16 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ extra-source-files:
- CHANGELOG.md
- package.yaml
- stack.yaml
- stack-9.2-Agda-2.6.2.2.yaml
- stack-9.2-Agda-2.6.3.yaml
- stack-9.2-Agda-2.6.4.yaml
- stack-9.2-Agda-2.6.4.3.yaml
- stack-9.2-Agda-2.7.0.1.yaml

# Metadata used when publishing your package
synopsis: An implementation of language server protocal (LSP) for Agda 2.
Expand All @@ -26,36 +25,29 @@ category: Development
description: Please see the README on GitHub at <https://github.com/agda/agda-language-server#readme>

flags:
Agda-2-6-2-2:
description: Embed Agda-2.6.2.2
manual: true
default: false
Agda-2-6-3:
description: Embed Agda-2.6.3
manual: true
default: false
Agda-2-6-4:
description: Embed Agda-2.6.4
manual: true
default: false
Agda-2-6-4-3:
description: Embed Agda-2.6.4.3
manual: true
default: false
Agda-2-7-0-1:
description: Embed Agda-2.7.0.1
manual: true
default: false

when:
- condition: "flag(Agda-2-6-2-2)"
dependencies:
- Agda == 2.6.2.2
- condition: "flag(Agda-2-6-3)"
dependencies:
- Agda == 2.6.3
- condition: "flag(Agda-2-6-4)"
dependencies:
- Agda == 2.6.4
- condition: "flag(Agda-2-6-4-3)"
dependencies:
- Agda == 2.6.4.3
- condition: "flag(Agda-2-7-0-1)"
dependencies:
- Agda == 2.7.0.1
# - condition: "flag(Agda-2-6-2-2) && flag(Agda-2-6-3)"
# dependencies:
# - Agda < 0
Expand Down

0 comments on commit 82d0b69

Please sign in to comment.