servant/servant/src/Servant/API/Vault.hs

22 lines
537 B
Haskell
Raw Normal View History

module Servant.API.Vault
( -- $vault
Vault
) where
2018-03-11 16:58:31 +01:00
import Data.Vault.Lazy
(Vault)
-- $vault
--
-- | Use 'Vault' in your API types to provide access to the 'Vault'
-- of the request, which is a location shared by middlewares and applications
2016-05-10 12:48:28 +02:00
-- to store arbitrary data. See <https://hackage.haskell.org/package/vault vault>
-- for more details on how to actually use the vault in your handlers
--
-- Example:
--
-- >>> type API = Vault :> Get '[JSON] String
-- $setup
-- >>> import Servant.API