Exercise solution: These

Exercise

Write Functor and Bifunctor instances for the following type:

data These a b = This a | That b | These a b
    deriving Show

Solution

Sign up for access to the full page, plus the complete archive and all the latest content.