@@ -213,7 +213,7 @@ instance Arbitrary CreditCardNumber where
213213newtype CreditCardPAN = CreditCardPAN
214214 { unCreditCardPAN :: Text
215215 } deriving (Eq, Ord)
216− deriving newtype (Show)
216+ deriving newtype (Show, FromJSON, ToJSON)
217217
218218panTrailingDigits :: CreditCardPAN -> Text
219219panTrailingDigits (CreditCardPAN txt) = T.takeEnd 4 txt