{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
module Rollbar.Item.Internal.Notifier
( Notifier(..)
) where
import Data.Aeson
(FromJSON, ToJSON, defaultOptions, genericToEncoding, toEncoding)
import Data.Version (Version)
import GHC.Generics (Generic)
import Rollbar.Item.Hardcoded (Hardcoded)
data Notifier
= Notifier
{ name :: Hardcoded "rollbar-hs"
, version :: Version
}
deriving (Eq, Generic, Show)
instance FromJSON Notifier
instance ToJSON Notifier where
toEncoding = genericToEncoding defaultOptions