    {-# LANGUAGE DeriveTraversable #-}

    -- | This module offers other servant libraries a minimalistic HTTP response type.
    --
    -- It is purely an internal API and SHOULD NOT be used by end-users of Servant.
    module Servant.Types.Internal.Response where

    import Network.HTTP.Types (Status, Header)
    import Data.Sequence (Seq)
    import GHC.Generics (Generic)
    import Data.Data (Typeable)

    data InternalResponse a = InternalResponse
      { forall a. InternalResponse a -> Status
    statusCode :: Status
      , forall a. InternalResponse a -> Seq Header
    headers :: Seq Header
      , forall a. InternalResponse a -> a
    responseBody :: a
      } deriving stock (InternalResponse a -> InternalResponse a -> Bool
    (InternalResponse a -> InternalResponse a -> Bool)
    -> (InternalResponse a -> InternalResponse a -> Bool)
    -> Eq (InternalResponse a)
    forall a. Eq a => InternalResponse a -> InternalResponse a -> Bool
    forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
    $c== :: forall a. Eq a => InternalResponse a -> InternalResponse a -> Bool
    == :: InternalResponse a -> InternalResponse a -> Bool
    $c/= :: forall a. Eq a => InternalResponse a -> InternalResponse a -> Bool
    /= :: InternalResponse a -> InternalResponse a -> Bool
    Eq, Int -> InternalResponse a -> ShowS
    [InternalResponse a] -> ShowS
    InternalResponse a -> String
    (Int -> InternalResponse a -> ShowS)
    -> (InternalResponse a -> String)
    -> ([InternalResponse a] -> ShowS)
    -> Show (InternalResponse a)
    forall a. Show a => Int -> InternalResponse a -> ShowS
    forall a. Show a => [InternalResponse a] -> ShowS
    forall a. Show a => InternalResponse a -> String
    forall a.
    (Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
    $cshowsPrec :: forall a. Show a => Int -> InternalResponse a -> ShowS
    showsPrec :: Int -> InternalResponse a -> ShowS
    $cshow :: forall a. Show a => InternalResponse a -> String
    show :: InternalResponse a -> String
    $cshowList :: forall a. Show a => [InternalResponse a] -> ShowS
    showList :: [InternalResponse a] -> ShowS
    Show, (forall x. InternalResponse a -> Rep (InternalResponse a) x)
    -> (forall x. Rep (InternalResponse a) x -> InternalResponse a)
    -> Generic (InternalResponse a)
    forall x. Rep (InternalResponse a) x -> InternalResponse a
    forall x. InternalResponse a -> Rep (InternalResponse a) x
    forall a.
    (forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
    forall a x. Rep (InternalResponse a) x -> InternalResponse a
    forall a x. InternalResponse a -> Rep (InternalResponse a) x
    $cfrom :: forall a x. InternalResponse a -> Rep (InternalResponse a) x
    from :: forall x. InternalResponse a -> Rep (InternalResponse a) x
    $cto :: forall a x. Rep (InternalResponse a) x -> InternalResponse a
    to :: forall x. Rep (InternalResponse a) x -> InternalResponse a
    Generic, Typeable, (forall a b. (a -> b) -> InternalResponse a -> InternalResponse b)
    -> (forall a b. a -> InternalResponse b -> InternalResponse a)
    -> Functor InternalResponse
    forall a b. a -> InternalResponse b -> InternalResponse a
    forall a b. (a -> b) -> InternalResponse a -> InternalResponse b
    forall (f :: Type -> Type).
    (forall a b. (a -> b) -> f a -> f b)
    -> (forall a b. a -> f b -> f a) -> Functor f
    $cfmap :: forall a b. (a -> b) -> InternalResponse a -> InternalResponse b
    fmap :: forall a b. (a -> b) -> InternalResponse a -> InternalResponse b
    $c<$ :: forall a b. a -> InternalResponse b -> InternalResponse a
    <$ :: forall a b. a -> InternalResponse b -> InternalResponse a
    Functor, (forall m. Monoid m => InternalResponse m -> m)
    -> (forall m a. Monoid m => (a -> m) -> InternalResponse a -> m)
    -> (forall m a. Monoid m => (a -> m) -> InternalResponse a -> m)
    -> (forall a b. (a -> b -> b) -> b -> InternalResponse a -> b)
    -> (forall a b. (a -> b -> b) -> b -> InternalResponse a -> b)
    -> (forall b a. (b -> a -> b) -> b -> InternalResponse a -> b)
    -> (forall b a. (b -> a -> b) -> b -> InternalResponse a -> b)
    -> (forall a. (a -> a -> a) -> InternalResponse a -> a)
    -> (forall a. (a -> a -> a) -> InternalResponse a -> a)
    -> (forall a. InternalResponse a -> [a])
    -> (forall a. InternalResponse a -> Bool)
    -> (forall a. InternalResponse a -> Int)
    -> (forall a. Eq a => a -> InternalResponse a -> Bool)
    -> (forall a. Ord a => InternalResponse a -> a)
    -> (forall a. Ord a => InternalResponse a -> a)
    -> (forall a. Num a => InternalResponse a -> a)
    -> (forall a. Num a => InternalResponse a -> a)
    -> Foldable InternalResponse
    forall a. Eq a => a -> InternalResponse a -> Bool
    forall a. Num a => InternalResponse a -> a
    forall a. Ord a => InternalResponse a -> a
    forall m. Monoid m => InternalResponse m -> m
    forall a. InternalResponse a -> Bool
    forall a. InternalResponse a -> Int
    forall a. InternalResponse a -> [a]
    forall a. (a -> a -> a) -> InternalResponse a -> a
    forall m a. Monoid m => (a -> m) -> InternalResponse a -> m
    forall b a. (b -> a -> b) -> b -> InternalResponse a -> b
    forall a b. (a -> b -> b) -> b -> InternalResponse a -> b
    forall (t :: Type -> Type).
    (forall m. Monoid m => t m -> m)
    -> (forall m a. Monoid m => (a -> m) -> t a -> m)
    -> (forall m a. Monoid m => (a -> m) -> t a -> m)
    -> (forall a b. (a -> b -> b) -> b -> t a -> b)
    -> (forall a b. (a -> b -> b) -> b -> t a -> b)
    -> (forall b a. (b -> a -> b) -> b -> t a -> b)
    -> (forall b a. (b -> a -> b) -> b -> t a -> b)
    -> (forall a. (a -> a -> a) -> t a -> a)
    -> (forall a. (a -> a -> a) -> t a -> a)
    -> (forall a. t a -> [a])
    -> (forall a. t a -> Bool)
    -> (forall a. t a -> Int)
    -> (forall a. Eq a => a -> t a -> Bool)
    -> (forall a. Ord a => t a -> a)
    -> (forall a. Ord a => t a -> a)
    -> (forall a. Num a => t a -> a)
    -> (forall a. Num a => t a -> a)
    -> Foldable t
    $cfold :: forall m. Monoid m => InternalResponse m -> m
    fold :: forall m. Monoid m => InternalResponse m -> m
    $cfoldMap :: forall m a. Monoid m => (a -> m) -> InternalResponse a -> m
    foldMap :: forall m a. Monoid m => (a -> m) -> InternalResponse a -> m
    $cfoldMap' :: forall m a. Monoid m => (a -> m) -> InternalResponse a -> m
    foldMap' :: forall m a. Monoid m => (a -> m) -> InternalResponse a -> m
    $cfoldr :: forall a b. (a -> b -> b) -> b -> InternalResponse a -> b
    foldr :: forall a b. (a -> b -> b) -> b -> InternalResponse a -> b
    $cfoldr' :: forall a b. (a -> b -> b) -> b -> InternalResponse a -> b
    foldr' :: forall a b. (a -> b -> b) -> b -> InternalResponse a -> b
    $cfoldl :: forall b a. (b -> a -> b) -> b -> InternalResponse a -> b
    foldl :: forall b a. (b -> a -> b) -> b -> InternalResponse a -> b
    $cfoldl' :: forall b a. (b -> a -> b) -> b -> InternalResponse a -> b
    foldl' :: forall b a. (b -> a -> b) -> b -> InternalResponse a -> b
    $cfoldr1 :: forall a. (a -> a -> a) -> InternalResponse a -> a
    foldr1 :: forall a. (a -> a -> a) -> InternalResponse a -> a
    $cfoldl1 :: forall a. (a -> a -> a) -> InternalResponse a -> a
    foldl1 :: forall a. (a -> a -> a) -> InternalResponse a -> a
    $ctoList :: forall a. InternalResponse a -> [a]
    toList :: forall a. InternalResponse a -> [a]
    $cnull :: forall a. InternalResponse a -> Bool
    null :: forall a. InternalResponse a -> Bool
    $clength :: forall a. InternalResponse a -> Int
    length :: forall a. InternalResponse a -> Int
    $celem :: forall a. Eq a => a -> InternalResponse a -> Bool
    elem :: forall a. Eq a => a -> InternalResponse a -> Bool
    $cmaximum :: forall a. Ord a => InternalResponse a -> a
    maximum :: forall a. Ord a => InternalResponse a -> a
    $cminimum :: forall a. Ord a => InternalResponse a -> a
    minimum :: forall a. Ord a => InternalResponse a -> a
    $csum :: forall a. Num a => InternalResponse a -> a
    sum :: forall a. Num a => InternalResponse a -> a
    $cproduct :: forall a. Num a => InternalResponse a -> a
    product :: forall a. Num a => InternalResponse a -> a
    Foldable, Functor InternalResponse
    Foldable InternalResponse
    (Functor InternalResponse, Foldable InternalResponse) =>
    (forall (f :: Type -> Type) a b.
     Applicative f =>
     (a -> f b) -> InternalResponse a -> f (InternalResponse b))
    -> (forall (f :: Type -> Type) a.
        Applicative f =>
        InternalResponse (f a) -> f (InternalResponse a))
    -> (forall (m :: Type -> Type) a b.
        Monad m =>
        (a -> m b) -> InternalResponse a -> m (InternalResponse b))
    -> (forall (m :: Type -> Type) a.
        Monad m =>
        InternalResponse (m a) -> m (InternalResponse a))
    -> Traversable InternalResponse
    forall (t :: Type -> Type).
    (Functor t, Foldable t) =>
    (forall (f :: Type -> Type) a b.
     Applicative f =>
     (a -> f b) -> t a -> f (t b))
    -> (forall (f :: Type -> Type) a.
        Applicative f =>
        t (f a) -> f (t a))
    -> (forall (m :: Type -> Type) a b.
        Monad m =>
        (a -> m b) -> t a -> m (t b))
    -> (forall (m :: Type -> Type) a. Monad m => t (m a) -> m (t a))
    -> Traversable t
    forall (m :: Type -> Type) a.
    Monad m =>
    InternalResponse (m a) -> m (InternalResponse a)
    forall (f :: Type -> Type) a.
    Applicative f =>
    InternalResponse (f a) -> f (InternalResponse a)
    forall (m :: Type -> Type) a b.
    Monad m =>
    (a -> m b) -> InternalResponse a -> m (InternalResponse b)
    forall (f :: Type -> Type) a b.
    Applicative f =>
    (a -> f b) -> InternalResponse a -> f (InternalResponse b)
    $ctraverse :: forall (f :: Type -> Type) a b.
    Applicative f =>
    (a -> f b) -> InternalResponse a -> f (InternalResponse b)
    traverse :: forall (f :: Type -> Type) a b.
    Applicative f =>
    (a -> f b) -> InternalResponse a -> f (InternalResponse b)
    $csequenceA :: forall (f :: Type -> Type) a.
    Applicative f =>
    InternalResponse (f a) -> f (InternalResponse a)
    sequenceA :: forall (f :: Type -> Type) a.
    Applicative f =>
    InternalResponse (f a) -> f (InternalResponse a)
    $cmapM :: forall (m :: Type -> Type) a b.
    Monad m =>
    (a -> m b) -> InternalResponse a -> m (InternalResponse b)
    mapM :: forall (m :: Type -> Type) a b.
    Monad m =>
    (a -> m b) -> InternalResponse a -> m (InternalResponse b)
    $csequence :: forall (m :: Type -> Type) a.
    Monad m =>
    InternalResponse (m a) -> m (InternalResponse a)
    sequence :: forall (m :: Type -> Type) a.
    Monad m =>
    InternalResponse (m a) -> m (InternalResponse a)
    Traversable)