ghc-9.4.3 fails to compile ghc-exactprint-1.6.0
Summary
ghc-9.4.3
fails to compile ghc-exactprint-1.6.0
, but it used to work in ghc-9.4.2
.
Steps to reproduce
ghcup install ghc 9.4.3 -u "https://downloads.haskell.org/ghc/9.4.3/ghc-9.4.3-x86_64-fedora33-linux.tar.xz"
cabal --with-compiler=ghc-9.4.3 install ghc-exactprint-1.6.0
Expected behavior
Should compile it to completion.
Actual behavior
src/Language/Haskell/GHC/ExactPrint/ExactPrint.hs:3228:12: error:
* Could not deduce (ExactPrint (GenLocated SrcSpanAnnN FastString))
arising from a use of `markAnnotated'
from the context: (Monad m, Monoid w)
bound by the type signature for:
exact :: forall (m :: * -> *) w.
(Monad m, Monoid w) =>
DotFieldOcc GhcPs -> EP w m (DotFieldOcc GhcPs)
at src/Language/Haskell/GHC/ExactPrint/ExactPrint.hs:3226:3-7
* In a stmt of a 'do' block: fs' <- markAnnotated fs
In the expression:
do an0 <- markLensKwM an lafDot AnnDot
fs' <- markAnnotated fs
return (DotFieldOcc an0 fs')
In an equation for `exact':
exact (DotFieldOcc an fs)
= do an0 <- markLensKwM an lafDot AnnDot
fs' <- markAnnotated fs
return (DotFieldOcc an0 fs')
|
3228 | fs' <- markAnnotated fs
| ^^^^^^^^^^^^^
Environment
- GHC version used: 9.4.3
Optional:
- Operating System: Ubuntu 22.04
- System Architecture: x86_64