Using {-# LANGUAGE ExtendedDefaultRules #-} solves the problem and the first example works with it. Thank you @snak for the tip!!
{-# LANGUAGE ExtendedDefaultRules #-}