git.iko.soy/rowtype-yoga/purescript-native
on 2fc447f help sign in
rowtype-yoga/purescript-native/examples/passing/TypeClassesWithOverlappingTypeVariables.purs
11 lines 233 B history raw
1module Main where
3import Prelude
5data Either a b = Left a | Right b
7instance functorEither :: Prelude.Functor (Either a) where
8 map _ (Left x) = Left x
9 map f (Right y) = Right (f y)
11main = Control.Monad.Eff.Console.log "Done"