File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,32 @@ The code samples in this module use the following type synonym:
18
18
> :<|> "bye" :> Capture "name" String :> Post '[JSON, PlainText] Bool
19
19
20
20
-}
21
- module Servant.API.TypeLevel where
21
+ module Servant.API.TypeLevel (
22
+ -- $setup
23
+ -- * API predicates
24
+ Endpoints ,
25
+ -- ** Lax inclusion
26
+ IsElem' ,
27
+ IsElem ,
28
+ IsSubAPI ,
29
+ AllIsElem ,
30
+ -- ** Strict inclusion
31
+ IsIn ,
32
+ IsStrictSubAPI ,
33
+ AllIsIn ,
34
+ -- * Helpers
35
+ -- ** Lists
36
+ MapSub ,
37
+ AppendList ,
38
+ IsSubList ,
39
+ Elem ,
40
+ ElemGo ,
41
+ Or ,
42
+ And ,
43
+ -- * Custom type errors
44
+ -- | Before @base-4.9.0.0@ we use non-exported 'ElemNotFoundIn' class,
45
+ -- which cannot be instantiated.
46
+ ) where
22
47
23
48
24
49
import GHC.Exts (Constraint )
@@ -223,6 +248,9 @@ families are not evaluated (see https://ghc.haskell.org/trac/ghc/ticket/12048).
223
248
224
249
225
250
-- $setup
251
+ --
252
+ -- The doctests in this module are run with following preamble:
253
+ --
226
254
-- >>> :set -XPolyKinds
227
255
-- >>> :set -XGADTs
228
256
-- >>> import Data.Proxy
You can’t perform that action at this time.
0 commit comments