Newtype deriving mixing up types