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

Support Cabal 3.0, 3.2 #312

Merged
merged 1 commit into from
Sep 23, 2024
Merged
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
20 changes: 11 additions & 9 deletions lib/happy-lib.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ library frontend
Happy.Frontend.AbsSyn,
Happy.Frontend.Mangler,
Happy.Frontend.PrettyGrammar
build-depends: base < 5, array, transformers, containers, mtl, happy-lib:grammar
build-depends: base < 5, array, transformers, containers, mtl, grammar
other-modules:
Happy.Frontend.ParseMonad
Happy.Frontend.ParseMonad.Class
Expand All @@ -107,15 +107,15 @@ library tabular
Happy.Tabular.Info,
Happy.Tabular.LALR,
Happy.Tabular.NameSet
build-depends: base < 5, array, containers, happy-lib:grammar
build-depends: base < 5, array, containers, grammar


library backend-lalr
import: common-stanza
hs-source-dirs: backend-lalr/src
exposed-modules: Happy.Backend.LALR,
Happy.Backend.LALR.ProduceCode
build-depends: base < 5, array, happy-lib:grammar, happy-lib:tabular
build-depends: base < 5, array, grammar, tabular
other-modules: Paths_happy_lib
autogen-modules: Paths_happy_lib

Expand All @@ -124,7 +124,7 @@ library backend-glr
hs-source-dirs: backend-glr/src
exposed-modules: Happy.Backend.GLR,
Happy.Backend.GLR.ProduceCode
build-depends: base < 5, array, happy-lib:grammar, happy-lib:tabular
build-depends: base < 5, array, grammar, tabular
other-modules: Paths_happy_lib
autogen-modules: Paths_happy_lib

Expand All @@ -150,8 +150,10 @@ library
containers >= 0.4.2,
transformers >= 0.5.6.2,
mtl >= 2.2.1,
happy-lib:grammar,
happy-lib:tabular,
happy-lib:frontend,
happy-lib:backend-lalr,
happy-lib:backend-glr
-- NB: omit the `happy-lib:` prefix in happy-lib:grammar.
-- Otherwise we unnecessarily break Cabal < 3.4
grammar,
tabular,
frontend,
backend-lalr,
backend-glr