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
It may be beneficial to have a vector-0.10.12 release fixing the AMP warnings, as that's all that's currently needed in order to be able to build vector == 0.10.* w/ GHC HEAD. This would make the transition smoother w/ GHC 7.10 and packages still relying on vector == 0.10.*
The following change is all that's currently needed:
diff --git a/Data/Vector/Fusion/Util.hs b/Data/Vector/Fusion/Util.hs
index c84abbb..1b6d5ed 100644
--- a/Data/Vector/Fusion/Util.hs+++ b/Data/Vector/Fusion/Util.hs@@ -22,6 +22,10 @@ newtype Id a = Id { unId :: a }
instance Functor Id where
fmap f (Id x) = Id (f x)
+instance Applicative Id where+ pure = Id+ Id f <*> Id x = Id (f x)+
instance Monad Id where
return = Id
Id x >>= f = f x
@@ -32,6 +36,10 @@ data Box a = Box { unBox :: a }
instance Functor Box where
fmap f (Box x) = Box (f x)
+instance Applicative Box where+ pure = Box+ Box f <*> Box x = Box (f x)+
instance Monad Box where
return = Box
Box x >>= f = f x
It may be beneficial to have a
vector-0.10.12
release fixing the AMP warnings, as that's all that's currently needed in order to be able to buildvector == 0.10.*
w/ GHC HEAD. This would make the transition smoother w/ GHC 7.10 and packages still relying onvector == 0.10.*
The following change is all that's currently needed:
/cc @EdwardK
The text was updated successfully, but these errors were encountered: