{-# LANGUAGE DeriveGeneric #-}
module Telegram.Bot.API.Types.BotDescription where
import Data.Aeson (FromJSON (..), ToJSON (..))
import Data.Text (Text)
import GHC.Generics (Generic)
import Telegram.Bot.API.Internal.Utils
newtype BotDescription = BotDescription
{ BotDescription -> Text
botDescriptionDescription :: Text
}
deriving (forall x. Rep BotDescription x -> BotDescription
forall x. BotDescription -> Rep BotDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BotDescription x -> BotDescription
$cfrom :: forall x. BotDescription -> Rep BotDescription x
Generic, Int -> BotDescription -> ShowS
[BotDescription] -> ShowS
BotDescription -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BotDescription] -> ShowS
$cshowList :: [BotDescription] -> ShowS
show :: BotDescription -> String
$cshow :: BotDescription -> String
showsPrec :: Int -> BotDescription -> ShowS
$cshowsPrec :: Int -> BotDescription -> ShowS
Show)
instance ToJSON BotDescription where toJSON :: BotDescription -> Value
toJSON = forall a (d :: Meta) (f :: * -> *).
(Generic a, GToJSON Zero (Rep a), Rep a ~ D1 d f, Datatype d) =>
a -> Value
gtoJSON
instance FromJSON BotDescription where parseJSON :: Value -> Parser BotDescription
parseJSON = forall a (d :: Meta) (f :: * -> *).
(Generic a, GFromJSON Zero (Rep a), Rep a ~ D1 d f, Datatype d) =>
Value -> Parser a
gparseJSON