@@ -18,7 +18,32 @@ The code samples in this module use the following type synonym:
18> :<|> "bye" :> Capture "name" String :> Post '[JSON, PlainText] Bool
18> :<|> "bye" :> Capture "name" String :> Post '[JSON, PlainText] Bool
21−module Servant.API.TypeLevel where
21+module Servant.API.TypeLevel (
30+ -- ** Strict inclusion
43+ -- * Custom type errors
44+ -- | Before @base-4.9.0.0@ we use non-exported 'ElemNotFoundIn' class,
45+ -- which cannot be instantiated.
24import GHC.Exts (Constraint)
49import GHC.Exts (Constraint)
@@ -223,6 +248,9 @@ families are not evaluated (see https://ghc.haskell.org/trac/ghc/ticket/12048).
252+-- The doctests in this module are run with following preamble:
226-- >>> :set -XPolyKinds
254-- >>> :set -XPolyKinds
227-- >>> :set -XGADTs
255-- >>> :set -XGADTs
228-- >>> import Data.Proxy
256-- >>> import Data.Proxy