servant/servant-foreign/src/Servant/Foreign.hs

57 lines
1,001 B
Haskell
Raw Normal View History

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
( ArgType(..)
, HeaderArg(..)
, QueryArg(..)
, Req(..)
2015-11-16 18:40:15 +01:00
, Segment(..)
, SegmentType(..)
, Url(..)
-- aliases
, Path
2016-02-17 22:47:30 +01:00
, Arg(..)
, FunctionName(..)
, PathSegment(..)
-- lenses
, argName
, argType
, argPath
2015-11-16 18:40:15 +01:00
, reqUrl
, reqMethod
, reqHeaders
, reqBody
, reqReturnType
, reqFuncName
, path
2015-11-16 18:40:15 +01:00
, queryStr
, queryArgName
, queryArgType
2016-02-17 22:47:30 +01:00
, headerArg
-- prisms
2016-02-17 22:47:30 +01:00
, _PathSegment
, _HeaderArg
, _ReplaceHeaderArg
, _Static
, _Cap
, _Normal
, _Flag
, _List
-- rest of it
, HasForeign(..)
, HasForeignType(..)
2015-12-02 12:21:37 +01:00
, GenerateList(..)
, NoTypes
, 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
2018-06-29 21:08:26 +02:00
import Servant.API
import Servant.Foreign.Inflections
import Servant.Foreign.Internal