module Patrol.Type.Exceptions where import qualified Data.Aeson as Aeson import qualified Patrol.Extra.Aeson as Aeson import qualified Patrol.Type.Exception as Exception -- | newtype Exceptions = Exceptions { values :: [Exception.Exception] } deriving (Eq, Show) instance Aeson.ToJSON Exceptions where toJSON exceptions = Aeson.intoObject [ Aeson.pair "values" $ values exceptions ] empty :: Exceptions empty = Exceptions { values = [] }