vty icon indicating copy to clipboard operation
vty copied to clipboard

Compatibility with mtl-2.3

Open sjakobi opened this issue 3 years ago • 1 comments

vty will apparently require code changes:

Building library for vty-5.35.1..
[ 1 of 40] Compiling Codec.Binary.UTF8.Debug ( src/Codec/Binary/UTF8/Debug.hs, dist/build/Codec/Binary/UTF8/Debug.o, dist/build/Codec/Binary/UTF8/Debug.dyn_o )
[ 2 of 40] Compiling Data.Terminfo.Parse ( src/Data/Terminfo/Parse.hs, dist/build/Data/Terminfo/Parse.o, dist/build/Data/Terminfo/Parse.dyn_o )
[ 3 of 40] Compiling Data.Terminfo.Eval ( src/Data/Terminfo/Eval.hs, dist/build/Data/Terminfo/Eval.o, dist/build/Data/Terminfo/Eval.dyn_o )

src/Data/Terminfo/Eval.hs:76:5: error:
    • Variable not in scope:
        forM_
          :: String -> (a0 -> m0 ()) -> StateT EvalState (Writer Write) ()
    • Perhaps you meant one of these:
        ‘Vector.forM_’ (imported from Data.Vector.Unboxed),
        ‘Vector.forM’ (imported from Data.Vector.Unboxed),
        ‘Vector.iforM_’ (imported from Data.Vector.Unboxed)
   |
76 |     forM_ (show p) $ tell.writeWord8.toEnum.fromEnum
   |     ^^^^^

sjakobi avatar May 20 '22 00:05 sjakobi

Thanks for reporting this. Looking into this, it appears that we're inadvertently depending on mtl for forM_ in that module because the mtl modules re-export Control.Monad. Presumably the re-export went away in 2.3, which would reveal this hidden dependency.

jtdaugherty avatar May 20 '22 02:05 jtdaugherty

This is now fixed on master.

jtdaugherty avatar Jan 19 '23 15:01 jtdaugherty