IntersectMBO / IntersectMBO/cardano-ledger

Make doctests work with ghc-9.14

Open
#5,680 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
295
Forks
179
Avg merge
4d 7h
Merged PRs (30d)
29

Description

```shellsession
$ nix develop .#ghc9141
$ cabal build all && scripts/doctest.sh
...
.../libs/cardano-ledger-api/src/Cardano/Ledger/Api/Tx.hs:18: failure in expression `import Cardano.Ledger.Api.Era (BabbageEra)'
expected:
but got: : error: [GHC-87110]
^
Could not load module ‘Cardano.Ledger.Api.Era’.
It is a member of the hidden package ‘cardano-ledger-api-1.13.0.0’.
Perhaps you need to add ‘cardano-ledger-api’ to the build-depends in your .cabal file.

.../libs/cardano-ledger-api/src/Cardano/Ledger/Api/Tx/Out.hs:17: failure in expression `import Cardano.Ledger.Api.Era (BabbageEra)'
expected:
but got: : error: [GHC-87110]
^
Could not load module ‘Cardano.Ledger.Api.Era’.
It is a member of the hidden package ‘cardano-ledger-api-1.13.0.0’.
Perhaps you need to add ‘cardano-ledger-api’ to the build-depends in your .cabal file.

.../libs/cardano-ledger-api/src/Cardano/Ledger/Api/Era.hs:167: failure in expression `import Cardano.Ledger.Api.Era (BabbageEra, ConwayEra)'
expected:
but got: : error: [GHC-87110]
^
Could not load module ‘Cardano.Ledger.Api.Era’.
It is a member of the hidden package ‘cardano-ledger-api-1.13.0.0’.
Perhaps you need to add ‘cardano-ledger-api’ to the build-depends in your .cabal file.

Examples: 25 Tried: 8 Errors: 0 Failures: 3
```

_Originally requested by @lehins in https://github.com/IntersectMBO/cardano-ledger/issues/5599#issuecomment-4041243118_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.