Skip to content

Commit

Permalink
Remove use of eitherDecodeLenient
Browse files Browse the repository at this point in the history
  • Loading branch information
HeinrichApfelmus committed Mar 13, 2024
1 parent 81d7c66 commit 1fb36da
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/deposit-wallet-mock/src/Servant/FineTypes.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ import Servant.API
, MimeRender (..)
, MimeUnrender (..)
)
import Servant.API.ContentTypes
( eitherDecodeLenient
)

import Data.Aeson as JS

Expand All @@ -52,6 +49,6 @@ instance forall a. ToValue a => MimeRender FineJSON a where

instance forall a. FromValue a => MimeUnrender FineJSON a where
mimeUnrender _ bs =
fmap fromValue . valueFromJson typ =<< eitherDecodeLenient bs
fmap fromValue . valueFromJson typ =<< JS.eitherDecode bs
where
typ = toTyp (Proxy :: Proxy a)

0 comments on commit 1fb36da

Please sign in to comment.