git.iko.soy/rowtype-yoga/purescript-native
on 661edfb help sign in
rowtype-yoga/purescript-native/examples/passing/TypeClassesWithOverlappingTypeVariables.purs
11 lines 225 B history raw
1module Main where
3import Prelude
5data Either a b = Left a | Right b
7instance functorEither :: Prelude.Functor (Either a) where
8 (<$>) _ (Left x) = Left x
9 (<$>) f (Right y) = Right (f y)
11main = Debug.Trace.trace "Done"