servant-swagger-1.1.10 / src / Servant / Swagger / Internal / Orphans.hs
{-# LANGUAGE ScopedTypeVariables #-}{-# OPTIONS_GHC -fno-warn-orphans #-}module Servant.Swagger.Internal.Orphans whereimport Data.Proxy (Proxy (..))import Data.Swaggerimport Servant.Types.SourceT (SourceT)-- | Pretend that 'SourceT m a' is '[a]'.---- @since 1.1.7--instance ToSchema a => ToSchema (SourceT m a) where declareNamedSchema _ = declareNamedSchema (Proxy :: Proxy [a])