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

54 lines
870 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
, ForeignType
, Arg
2015-11-16 18:40:15 +01:00
, FunctionName
-- lenses
2015-11-16 18:40:15 +01:00
, reqUrl
, reqMethod
, reqHeaders
, reqBody
, reqReturnType
, reqFuncName
, path
2015-11-16 18:40:15 +01:00
, queryStr
, argName
, argType
-- prisms
, _HeaderArg
, _ReplaceHeaderArg
, _Static
, _Cap
, _Normal
, _Flag
, _List
-- rest of it
, HasForeign(..)
, HasForeignType(..)
, HasNoForeignType
2015-12-02 12:21:37 +01:00
, GenerateList(..)
, NoTypes
, captureArg
, isCapture
, concatCase
, snakeCase
, camelCase
, defReq
, listFromAPI
2015-11-16 18:40:15 +01:00
-- re-exports
, module Servant.API
) where
import Servant.API
import Servant.Foreign.Internal