git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Add Functor instance for Ref
3353514Gary Burgess
prelude/prelude.purs+3
@@ -604,6 +604,9 @@ module Data.Eq where
604 (==) = liftRef refEq
604 (==) = liftRef refEq
605 (/=) = liftRef refIneq
605 (/=) = liftRef refIneq
606
606
607+ instance functorRef :: Functor Ref where
608+ (<$>) f (Ref x) = Ref (f x)
609+
607module Prelude.Unsafe where
610module Prelude.Unsafe where
608
611
609 foreign import unsafeIndex
612 foreign import unsafeIndex