私はghci
、このコードセクションを使用しています
newtype Gold = Gold Int
deriving (Eq, Ord, Show, Num)
エラーを次のように表示しています
Can't make a derived instance of 'Num Gold':
'Num' is not a derivable class
Try GeneralizedNewTypeDeriving for GHC's newtype-deriving extension in the newtype declaration for 'Gold'
解決策を提案してください。