I\'m trying to do one of the Semigroup exercises in Haskell Book (Chapter 15, \"Monoid, Semigroup\") but I\'m stuck. The following is given:
newtype Combine
You can shadow Monoid's (<>) this way:
Monoid
(<>)
import Data.Monoid hiding ((<>))
Then when you import Data.Semigroup, you will have just one (<>) in scope: the one from Data.Semigroup.
import Data.Semigroup
Data.Semigroup