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

Add support for GHC 9.10.2 #368

Merged
merged 2 commits into from
Sep 24, 2024
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest] # macOS-latest, windows-latest
cabal: [3.8]
ghc: [8.8.4, 8.10.7, 9.2.5, 9.4.3, 9.6.3]
cabal: [3.10.3]
ghc: [9.4.8, 9.6.6, 9.8.2, 9.10.1]
steps:
- uses: actions/checkout@v3
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'
Expand Down
2 changes: 1 addition & 1 deletion agda2hs.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ executable agda2hs
AgdaInternals,
Paths_agda2hs
autogen-modules: Paths_agda2hs
build-depends: base >= 4.13 && < 4.20,
build-depends: base >= 4.13 && < 4.21,
Agda >= 2.7.0 && < 2.8.0,
bytestring >= 0.11.5 && < 0.13,
containers >= 0.6 && < 0.8,
Expand Down
4 changes: 3 additions & 1 deletion src/Agda2Hs/Compile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import Agda.Syntax.TopLevelModuleName ( TopLevelModuleName )
import Agda.Syntax.Common.Pretty ( prettyShow )
import Agda.TypeChecking.Pretty
import Agda.TypeChecking.Monad.Signature ( isInlineFun )
import Agda.Utils.Impossible
import Agda.Utils.List
import Agda.Utils.Null
import Agda.Utils.Monad ( whenM, anyM, when )

Expand Down Expand Up @@ -131,5 +133,5 @@ verifyOutput _ _ _ m ls = do
Hs.RecDecl _ n _ -> n
duplicateCons = filter ((> 1) . length) . group . sort $ allCons
when (length duplicateCons > 0) $
genericDocError =<< vcat (map (\x -> text $ "Cannot generate multiple constructors with the same identifier: " <> Hs.prettyPrint (head x)) duplicateCons)
genericDocError =<< vcat (map (\x -> text $ "Cannot generate multiple constructors with the same identifier: " <> Hs.prettyPrint (headWithDefault __IMPOSSIBLE__ x)) duplicateCons)
return (length duplicateCons == 0)
Loading