2015-11-16 18:40:15 +01:00
|
|
|
-- | Generalizes all the data needed to make code generation work with
|
|
|
|
-- arbitrary programming languages.
|
|
|
|
module Servant.Foreign
|
2016-02-11 11:41:34 +01:00
|
|
|
( ArgType(..)
|
|
|
|
, HeaderArg(..)
|
|
|
|
, QueryArg(..)
|
|
|
|
, Req(..)
|
2015-11-16 18:40:15 +01:00
|
|
|
, Segment(..)
|
|
|
|
, SegmentType(..)
|
2016-02-11 11:41:34 +01:00
|
|
|
, Url(..)
|
|
|
|
-- aliases
|
|
|
|
, Path
|
2016-02-17 22:47:30 +01:00
|
|
|
, ForeignType(..)
|
|
|
|
, Arg(..)
|
|
|
|
, FunctionName(..)
|
|
|
|
, PathSegment(..)
|
2016-02-11 11:41:34 +01:00
|
|
|
-- lenses
|
2016-02-17 22:47:30 +01:00
|
|
|
, aName
|
|
|
|
, aType
|
|
|
|
, aPath
|
2015-11-16 18:40:15 +01:00
|
|
|
, reqUrl
|
|
|
|
, reqMethod
|
2016-02-11 11:41:34 +01:00
|
|
|
, reqHeaders
|
|
|
|
, reqBody
|
2015-11-28 09:13:26 +01:00
|
|
|
, reqReturnType
|
2016-02-11 11:41:34 +01:00
|
|
|
, reqFuncName
|
|
|
|
, path
|
2015-11-16 18:40:15 +01:00
|
|
|
, queryStr
|
2016-02-11 11:41:34 +01:00
|
|
|
, argName
|
|
|
|
, argType
|
2016-02-17 22:47:30 +01:00
|
|
|
, headerArg
|
2016-02-11 11:41:34 +01:00
|
|
|
-- prisms
|
2016-02-17 22:47:30 +01:00
|
|
|
, _PathSegment
|
|
|
|
, _ForeignType
|
2016-02-11 11:41:34 +01:00
|
|
|
, _HeaderArg
|
|
|
|
, _ReplaceHeaderArg
|
|
|
|
, _Static
|
|
|
|
, _Cap
|
|
|
|
, _Normal
|
|
|
|
, _Flag
|
|
|
|
, _List
|
|
|
|
-- rest of it
|
|
|
|
, HasForeign(..)
|
|
|
|
, HasForeignType(..)
|
|
|
|
, HasNoForeignType
|
2015-12-02 12:21:37 +01:00
|
|
|
, GenerateList(..)
|
2015-12-02 16:56:56 +01:00
|
|
|
, NoTypes
|
2016-02-11 11:41:34 +01:00
|
|
|
, captureArg
|
|
|
|
, isCapture
|
|
|
|
, defReq
|
|
|
|
, listFromAPI
|
2016-02-17 22:47:30 +01:00
|
|
|
-- re-exports
|
2015-11-16 18:40:15 +01:00
|
|
|
, module Servant.API
|
2016-02-17 22:47:30 +01:00
|
|
|
, module Servant.Foreign.Inflections
|
2015-11-16 18:40:15 +01:00
|
|
|
) where
|
|
|
|
|
|
|
|
import Servant.API
|
|
|
|
import Servant.Foreign.Internal
|
2016-02-17 22:47:30 +01:00
|
|
|
import Servant.Foreign.Inflections
|