Skip to content

Fix Setup.hs for Cabal 3.14 SymbolicPath BuildInfo fields - #21

Open
shulhi wants to merge 2 commits into
albertov:masterfrom
plow-technologies:ghc-9-upgrade
Open

Fix Setup.hs for Cabal 3.14 SymbolicPath BuildInfo fields#21
shulhi wants to merge 2 commits into
albertov:masterfrom
plow-technologies:ghc-9-upgrade

Conversation

@shulhi

@shulhi shulhi commented Jul 30, 2026

Copy link
Copy Markdown

BuildInfo's extraLibDirs and includeDirs are now typed as [SymbolicPath ...] rather than [FilePath] in the Cabal bundled with GHC 9.12. Wrap the gdal-config-derived paths with makeSymbolicPath.

shulhi and others added 2 commits July 30, 2026 10:36
BuildInfo's extraLibDirs and includeDirs are now typed as
[SymbolicPath ...] rather than [FilePath] in the Cabal bundled with
GHC 9.12. Wrap the gdal-config-derived paths with makeSymbolicPath.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Newer GDAL changed GDALClose and GDALFlushCache to return CPLErr (CInt)
instead of void, so the c2hs bindings are now DatasetH -> IO CInt. Wrap
the call sites used as IO () actions (ResourceT release, flushCache)
with void.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant