I'm seeing the following error compiling with GHC 9.2.2:
src/Foreign/Storable/Generic/Plugin/Internal/Compile.hs:185:45: error:
• Couldn't match type: ghci-9.2.2:GHCi.RemoteTypes.ForeignRef
ghci-9.2.2:GHCi.RemoteTypes.HValue
with: ForeignRef a0
Expected: ForeignRef a0
Actual: ghci-9.2.2:GHCi.RemoteTypes.ForeignHValue
NB: ‘ForeignRef’
is defined in ‘GHCi.RemoteTypes’ in package ‘ghci-9.2.2’
‘ghci-9.2.2:GHCi.RemoteTypes.ForeignRef’
is defined in ‘GHCi.RemoteTypes’ in package ‘ghci-9.2.2’
• In the first argument of ‘withForeignRef’, namely ‘foreign_hval’
In the second argument of ‘($)’, namely
‘withForeignRef foreign_hval localRef’
In a stmt of a 'do' block:
hval <- liftIO $ withForeignRef foreign_hval localRef
|
185 | hval <- liftIO $ withForeignRef foreign_hval localRef
I'm seeing the following error compiling with GHC 9.2.2: