You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This test passes in GHC 8.6.4 and fails in 8.10.1 with lens-4.19.2:
importControl.LensimportGHC.Exts (IsList(..))
importqualifiedData.IntMapasIMmain::IO()
main =dolet f i a =5+ i * a
g i a = a +2* i
m = fromList [(-2,1),(0,-4)] ::IM.IntMapInt-- This is a FunctorWithIndex law.
x = imap f (imap g m)
y = imap (\i -> f i . g i) m
print m
print x
print y
print$ x == y