Servant.API.Times -> Servant.API.Time

This commit is contained in:
Alex Mason 2016-09-04 17:39:44 +10:00
parent 532ea9eb8b
commit bd869c23a6
4 changed files with 5 additions and 5 deletions

View file

@ -295,7 +295,7 @@ captureDateTimeServer = return . show
captureTimeSpec :: Spec captureTimeSpec :: Spec
captureTimeSpec = do captureTimeSpec = do
describe "Servant.API.Times(CaptureTime)" $ do describe "Servant.API.Time(CaptureTime)" $ do
with (return (serve captureTimeApi (captureDateServer :<|> captureDateTimeServer))) $ do with (return (serve captureTimeApi (captureDateServer :<|> captureDateTimeServer))) $ do
it "can capture parts of the 'pathInfo' (date only)" $ do it "can capture parts of the 'pathInfo' (date only)" $ do

View file

@ -43,7 +43,7 @@ library
Servant.API.ReqBody Servant.API.ReqBody
Servant.API.ResponseHeaders Servant.API.ResponseHeaders
Servant.API.Sub Servant.API.Sub
Servant.API.Times Servant.API.Time
Servant.API.Vault Servant.API.Vault
Servant.API.Verbs Servant.API.Verbs
Servant.API.WithNamedContext Servant.API.WithNamedContext

View file

@ -25,7 +25,7 @@ module Servant.API (
-- | Access the location for arbitrary data to be shared by applications and middleware -- | Access the location for arbitrary data to be shared by applications and middleware
module Servant.API.WithNamedContext, module Servant.API.WithNamedContext,
-- | Access context entries in combinators in servant-server -- | 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. -- | Capturing dates and times in URLs and params with specified formats.
-- * Actual endpoints, distinguished by HTTP method -- * Actual endpoints, distinguished by HTTP method
@ -83,7 +83,7 @@ import Servant.API.ResponseHeaders (AddHeader (addHeader),
HList (..), Headers (..), HList (..), Headers (..),
getHeadersHList, getResponse) getHeadersHList, getResponse)
import Servant.API.Sub ((:>)) 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.Vault (Vault)
import Servant.API.Verbs (PostCreated, Delete, DeleteAccepted, import Servant.API.Verbs (PostCreated, Delete, DeleteAccepted,
DeleteNoContent, DeleteNoContent,

View file

@ -7,7 +7,7 @@
{-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE ScopedTypeVariables #-}
module Servant.API.Times module Servant.API.Time
( FTime(..) ( FTime(..)
, toFormatProxy , toFormatProxy
, getFormat , getFormat