Servant.API.Times -> Servant.API.Time
This commit is contained in:
parent
532ea9eb8b
commit
bd869c23a6
4 changed files with 5 additions and 5 deletions
|
@ -295,7 +295,7 @@ captureDateTimeServer = return . show
|
|||
|
||||
captureTimeSpec :: Spec
|
||||
captureTimeSpec = do
|
||||
describe "Servant.API.Times(CaptureTime)" $ do
|
||||
describe "Servant.API.Time(CaptureTime)" $ do
|
||||
with (return (serve captureTimeApi (captureDateServer :<|> captureDateTimeServer))) $ do
|
||||
|
||||
it "can capture parts of the 'pathInfo' (date only)" $ do
|
||||
|
|
|
@ -43,7 +43,7 @@ library
|
|||
Servant.API.ReqBody
|
||||
Servant.API.ResponseHeaders
|
||||
Servant.API.Sub
|
||||
Servant.API.Times
|
||||
Servant.API.Time
|
||||
Servant.API.Vault
|
||||
Servant.API.Verbs
|
||||
Servant.API.WithNamedContext
|
||||
|
|
|
@ -25,7 +25,7 @@ module Servant.API (
|
|||
-- | Access the location for arbitrary data to be shared by applications and middleware
|
||||
module Servant.API.WithNamedContext,
|
||||
-- | Access context entries in combinators in servant-server
|
||||
module Servant.API.Times,
|
||||
module Servant.API.Time,
|
||||
-- | Capturing dates and times in URLs and params with specified formats.
|
||||
|
||||
-- * Actual endpoints, distinguished by HTTP method
|
||||
|
@ -83,7 +83,7 @@ import Servant.API.ResponseHeaders (AddHeader (addHeader),
|
|||
HList (..), Headers (..),
|
||||
getHeadersHList, getResponse)
|
||||
import Servant.API.Sub ((:>))
|
||||
import Servant.API.Times (FTime(..), getFormat, renderFTime, parseFTime)
|
||||
import Servant.API.Time (FTime(..), getFormat, renderFTime, parseFTime)
|
||||
import Servant.API.Vault (Vault)
|
||||
import Servant.API.Verbs (PostCreated, Delete, DeleteAccepted,
|
||||
DeleteNoContent,
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{-# LANGUAGE TypeFamilies #-}
|
||||
{-# LANGUAGE ScopedTypeVariables #-}
|
||||
|
||||
module Servant.API.Times
|
||||
module Servant.API.Time
|
||||
( FTime(..)
|
||||
, toFormatProxy
|
||||
, getFormat
|
Loading…
Reference in a new issue