2015-06-23 10:34:20 +02:00
|
|
|
module Servant.API.Vault
|
|
|
|
( -- $vault
|
|
|
|
Vault
|
|
|
|
) where
|
|
|
|
|
2015-08-17 23:56:29 +02:00
|
|
|
import Data.Vault.Lazy (Vault)
|
2015-06-23 10:34:20 +02:00
|
|
|
|
|
|
|
-- $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
|
|
|
|
-- to store arbitrary data. See '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
|