Adjust file contents a little.
This commit is contained in:
parent
a1dcc275eb
commit
9b08a05502
3 changed files with 36 additions and 30 deletions
|
@ -25,7 +25,7 @@ source-repository head
|
||||||
location: http://github.com/haskell-servant/servant.git
|
location: http://github.com/haskell-servant/servant.git
|
||||||
|
|
||||||
library
|
library
|
||||||
exposed-modules: Servant.Foreign
|
exposed-modules: Servant.Foreign, Servant.Foreign.Internal
|
||||||
build-depends: base == 4.*
|
build-depends: base == 4.*
|
||||||
, lens == 4.*
|
, lens == 4.*
|
||||||
, servant == 0.5.*
|
, servant == 0.5.*
|
||||||
|
|
34
servant-foreign/src/Servant/Foreign.hs
Normal file
34
servant-foreign/src/Servant/Foreign.hs
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
-- | Generalizes all the data needed to make code generation work with
|
||||||
|
-- arbitrary programming languages.
|
||||||
|
module Servant.Foreign
|
||||||
|
( HasForeign(..)
|
||||||
|
, Segment(..)
|
||||||
|
, SegmentType(..)
|
||||||
|
, FunctionName
|
||||||
|
, QueryArg(..)
|
||||||
|
, HeaderArg(..)
|
||||||
|
, ArgType(..)
|
||||||
|
, Req
|
||||||
|
, captureArg
|
||||||
|
, defReq
|
||||||
|
, concatCase
|
||||||
|
, snakeCase
|
||||||
|
, camelCase
|
||||||
|
-- lenses
|
||||||
|
, argType
|
||||||
|
, argName
|
||||||
|
, isCapture
|
||||||
|
, funcName
|
||||||
|
, path
|
||||||
|
, reqUrl
|
||||||
|
, reqBody
|
||||||
|
, reqHeaders
|
||||||
|
, reqMethod
|
||||||
|
, segment
|
||||||
|
, queryStr
|
||||||
|
-- re-exports
|
||||||
|
, module Servant.API
|
||||||
|
) where
|
||||||
|
|
||||||
|
import Servant.API
|
||||||
|
import Servant.Foreign.Internal
|
|
@ -16,35 +16,7 @@
|
||||||
|
|
||||||
-- | Generalizes all the data needed to make code generation work with
|
-- | Generalizes all the data needed to make code generation work with
|
||||||
-- arbitrary programming languages.
|
-- arbitrary programming languages.
|
||||||
module Servant.Foreign
|
module Servant.Foreign.Internal where
|
||||||
( HasForeign(..)
|
|
||||||
, Segment(..)
|
|
||||||
, SegmentType(..)
|
|
||||||
, FunctionName
|
|
||||||
, QueryArg(..)
|
|
||||||
, HeaderArg(..)
|
|
||||||
, ArgType(..)
|
|
||||||
, Req
|
|
||||||
, captureArg
|
|
||||||
, defReq
|
|
||||||
, concatCase
|
|
||||||
, snakeCase
|
|
||||||
, camelCase
|
|
||||||
-- lenses
|
|
||||||
, argType
|
|
||||||
, argName
|
|
||||||
, isCapture
|
|
||||||
, funcName
|
|
||||||
, path
|
|
||||||
, reqUrl
|
|
||||||
, reqBody
|
|
||||||
, reqHeaders
|
|
||||||
, reqMethod
|
|
||||||
, segment
|
|
||||||
, queryStr
|
|
||||||
-- re-exports
|
|
||||||
, module Servant.API
|
|
||||||
) where
|
|
||||||
|
|
||||||
import Control.Lens (makeLenses, (%~), (&), (.~), (<>~))
|
import Control.Lens (makeLenses, (%~), (&), (.~), (<>~))
|
||||||
import qualified Data.Char as C
|
import qualified Data.Char as C
|
||||||
|
|
Loading…
Reference in a new issue