Skip to content

Commit

Permalink
Remove happy-lib: prefix to support Cabal < 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sgraf812 committed Sep 23, 2024
1 parent 41bc746 commit a86c073
Showing 1 changed file with 11 additions and 9 deletions.
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

0 comments on commit a86c073

Please sign in to comment.