diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Process/Shell.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Process/Shell.hs b/src/Process/Shell.hs index 2542a2f..904b70f 100644 --- a/src/Process/Shell.hs +++ b/src/Process/Shell.hs @@ -72,13 +72,13 @@ instance Outputable T.Text where instance Outputable LT.Text where fromLBS = LT.decodeUtf8 -data DecodeException = DecodeException +data DecodeException = DecodeException String deriving (Show) instance Exception DecodeException instance (FromJSON a) => Outputable a where - fromLBS = fromMaybe (throw DecodeException) . decode + fromLBS = either (throw . DecodeException) id . eitherDecode class Quotable a where toString :: a -> String |