Add Functor instance for Ref
commit3353514369386d853dcd1ed0e1f8d74bda04a8a2
authorGary Burgess <gary.burgess@gmail.com>
dateMon 14 Jul 2014, 21:40 (12 years ago)
parent4fc5a0d
prelude/prelude.purs+3
@@ -604,6 +604,9 @@ module Data.Eq where
604604 (==) = liftRef refEq
605605 (/=) = liftRef refIneq
606606
607+ instance functorRef :: Functor Ref where
608+ (<$>) f (Ref x) = Ref (f x)
609+
607610module Prelude.Unsafe where
608611
609612 foreign import unsafeIndex