Of course the data type is not exact, but is this how (more or less) the Monoid Bool
is implemented?
import Data.Monoid
data Bool' = T | F deriving (Show)
instance Monoid (Bool') where
mempty = T
mappend T _ = T
mappend _ T = T
mappend _ _ = F
If so/not, what is the reasoning for making Bool
's mappend
an OR
versus AND
?