Work around GHC deriving errors