git.iko.soy/rowtype-yoga/purescript-native
on 2fcd178 help sign in
rowtype-yoga/purescript-native/examples/passing/TypeClassesWithOverlappingTypeVariables.purs
10 lines 220 B history raw
1module Main where
3 import Prelude
4 import Data.Either
6 instance functorEither :: Prelude.Functor (Either a) where
7 (<$>) _ (Left x) = Left x
8 (<$>) f (Right y) = Right (f y)
10 main = Debug.Trace.trace "Done"