git.iko.soy/typeable/servant
on master help sign in
doc(servant-foreign): reorder imports
a026509Philip Patsch
servant-foreign/src/Servant/Foreign.hs+14−15
@@ -3,20 +3,28 @@
3--
3--
4-- See documentation of 'HasForeignType' for a simple example. 'listFromAPI' returns a list of all your endpoints and their foreign types, given a mapping from Haskell types to foreign types (conventionally called `ftypes` below).
4-- See documentation of 'HasForeignType' for a simple example. 'listFromAPI' returns a list of all your endpoints and their foreign types, given a mapping from Haskell types to foreign types (conventionally called `ftypes` below).
5module Servant.Foreign
5module Servant.Foreign
6+ ( listFromAPI
7+ , Req(..)
8+ , defReq
9+ , HasForeignType(..)
10+ , GenerateList(..)
11+ , HasForeign(..)
12+ , NoTypes
6− ( ArgType(..)
13+ , ArgType(..)
7 , HeaderArg(..)
14 , HeaderArg(..)
8 , QueryArg(..)
15 , QueryArg(..)
9− , Req(..)
10 , ReqBodyContentType(..)
16 , ReqBodyContentType(..)
11 , Segment(..)
17 , Segment(..)
18+ , isCapture
19+ , captureArg
12 , SegmentType(..)
20 , SegmentType(..)
13 , Url(..)
21 , Url(..)
14− -- aliases
22+ -- * aliases
15 , Path
23 , Path
16 , Arg(..)
24 , Arg(..)
17 , FunctionName(..)
25 , FunctionName(..)
18 , PathSegment(..)
26 , PathSegment(..)
19− -- lenses
27+ -- * lenses
20 , argName
28 , argName
21 , argType
29 , argType
22 , argPath
30 , argPath
@@ -32,7 +40,7 @@ module Servant.Foreign
32 , queryArgName
40 , queryArgName
33 , queryArgType
41 , queryArgType
34 , headerArg
42 , headerArg
35− -- prisms
43+ -- * prisms
36 , _PathSegment
44 , _PathSegment
37 , _HeaderArg
45 , _HeaderArg
38 , _ReplaceHeaderArg
46 , _ReplaceHeaderArg
@@ -41,16 +49,7 @@ module Servant.Foreign
41 , _Normal
49 , _Normal
42 , _Flag
50 , _Flag
43 , _List
51 , _List
44− -- rest of it
45− , HasForeign(..)
46− , HasForeignType(..)
47− , GenerateList(..)
48− , NoTypes
49− , captureArg
50− , isCapture
51− , defReq
52− , listFromAPI
53− -- re-exports
52+ -- * re-exports
54 , module Servant.API
53 , module Servant.API
55 , module Servant.Foreign.Inflections
54 , module Servant.Foreign.Inflections
56 ) where
55 ) where