39 lines
670 B
Haskell
39 lines
670 B
Haskell
-- | Generalizes all the data needed to make code generation work with
|
|
-- arbitrary programming languages.
|
|
module Servant.Foreign
|
|
( HasForeign(..)
|
|
, HasForeignType(..)
|
|
, Segment(..)
|
|
, SegmentType(..)
|
|
, FunctionName
|
|
, QueryArg(..)
|
|
, HeaderArg(..)
|
|
, ArgType(..)
|
|
, Req
|
|
, captureArg
|
|
, defReq
|
|
, concatCase
|
|
, snakeCase
|
|
, camelCase
|
|
-- lenses
|
|
, argType
|
|
, argName
|
|
, isCapture
|
|
, funcName
|
|
, path
|
|
, reqUrl
|
|
, reqBody
|
|
, reqHeaders
|
|
, reqMethod
|
|
, reqReturnType
|
|
, segment
|
|
, queryStr
|
|
, listFromAPI
|
|
, GenerateList(..)
|
|
, NoTypes
|
|
-- re-exports
|
|
, module Servant.API
|
|
) where
|
|
|
|
import Servant.API
|
|
import Servant.Foreign.Internal
|