/usr/share/doc/libghc-vault-doc/html/Data-Vault-Lazy.html is in libghc-vault-doc 0.3.0.7-1build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Data.Vault.Lazy</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Data-Vault-Lazy.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Data-Vault-Lazy.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">vault-0.3.0.7: a persistent store for values of arbitrary types</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Data.Vault.Lazy</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Vault</a></li><li><a href="#g:2">Locker</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A persistent store for values of arbitrary types.</p><p>The <code><a href="Data-Vault-Lazy.html#t:Vault">Vault</a></code> type in this module is strict in the keys but lazy in the values.</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">type</span> <a href="#t:Vault">Vault</a> = <a href="Data-Vault-ST-Lazy.html#t:Vault">Vault</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-ST.html#t:RealWorld">RealWorld</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:Key">Key</a> = <a href="Data-Vault-ST-Lazy.html#t:Key">Key</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-ST.html#t:RealWorld">RealWorld</a></li><li class="src short"><a href="#v:empty">empty</a> :: <a href="Data-Vault-Lazy.html#t:Vault">Vault</a></li><li class="src short"><a href="#v:newKey">newKey</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="Data-Vault-Lazy.html#t:Key">Key</a> a)</li><li class="src short"><a href="#v:lookup">lookup</a> :: <a href="Data-Vault-Lazy.html#t:Key">Key</a> a -> <a href="Data-Vault-Lazy.html#t:Vault">Vault</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> a</li><li class="src short"><a href="#v:insert">insert</a> :: <a href="Data-Vault-Lazy.html#t:Key">Key</a> a -> a -> <a href="Data-Vault-Lazy.html#t:Vault">Vault</a> -> <a href="Data-Vault-Lazy.html#t:Vault">Vault</a></li><li class="src short"><a href="#v:adjust">adjust</a> :: (a -> a) -> <a href="Data-Vault-Lazy.html#t:Key">Key</a> a -> <a href="Data-Vault-Lazy.html#t:Vault">Vault</a> -> <a href="Data-Vault-Lazy.html#t:Vault">Vault</a></li><li class="src short"><a href="#v:delete">delete</a> :: <a href="Data-Vault-Lazy.html#t:Key">Key</a> a -> <a href="Data-Vault-Lazy.html#t:Vault">Vault</a> -> <a href="Data-Vault-Lazy.html#t:Vault">Vault</a></li><li class="src short"><a href="#v:union">union</a> :: <a href="Data-Vault-Lazy.html#t:Vault">Vault</a> -> <a href="Data-Vault-Lazy.html#t:Vault">Vault</a> -> <a href="Data-Vault-Lazy.html#t:Vault">Vault</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:Locker">Locker</a> = <a href="Data-Vault-ST-Lazy.html#t:Locker">Locker</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-ST.html#t:RealWorld">RealWorld</a></li><li class="src short"><a href="#v:lock">lock</a> :: <a href="Data-Vault-Lazy.html#t:Key">Key</a> a -> a -> <a href="Data-Vault-Lazy.html#t:Locker">Locker</a></li><li class="src short"><a href="#v:unlock">unlock</a> :: <a href="Data-Vault-Lazy.html#t:Key">Key</a> a -> <a href="Data-Vault-Lazy.html#t:Locker">Locker</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> a</li></ul></div><div id="interface"><h1 id="g:1">Vault</h1><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:Vault" class="def">Vault</a> = <a href="Data-Vault-ST-Lazy.html#t:Vault">Vault</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-ST.html#t:RealWorld">RealWorld</a> <a href="src/Data-Vault-Lazy.html#Vault" class="link">Source</a> <a href="#t:Vault" class="selflink">#</a></p><div class="doc"><p>A persistent store for values of arbitrary types.</p><p>This variant is the simplest and creates keys in the <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a></code> monad.
See the module <a href="Data-Vault-ST.html">Data.Vault.ST</a> if you want to use it with the <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-ST.html#t:ST">ST</a></code> monad instead.</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:Key" class="def">Key</a> = <a href="Data-Vault-ST-Lazy.html#t:Key">Key</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-ST.html#t:RealWorld">RealWorld</a> <a href="src/Data-Vault-Lazy.html#Key" class="link">Source</a> <a href="#t:Key" class="selflink">#</a></p><div class="doc"><p>Keys for the vault.</p></div></div><div class="top"><p class="src"><a id="v:empty" class="def">empty</a> :: <a href="Data-Vault-Lazy.html#t:Vault">Vault</a> <a href="src/Data-Vault-Lazy.html#empty" class="link">Source</a> <a href="#v:empty" class="selflink">#</a></p><div class="doc"><p>The empty vault.</p></div></div><div class="top"><p class="src"><a id="v:newKey" class="def">newKey</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="Data-Vault-Lazy.html#t:Key">Key</a> a) <a href="src/Data-Vault-Lazy.html#newKey" class="link">Source</a> <a href="#v:newKey" class="selflink">#</a></p><div class="doc"><p>Create a new key for use with a vault.</p></div></div><div class="top"><p class="src"><a id="v:lookup" class="def">lookup</a> :: <a href="Data-Vault-Lazy.html#t:Key">Key</a> a -> <a href="Data-Vault-Lazy.html#t:Vault">Vault</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> a <a href="src/Data-Vault-Lazy.html#lookup" class="link">Source</a> <a href="#v:lookup" class="selflink">#</a></p><div class="doc"><p>Lookup the value of a key in the vault.</p></div></div><div class="top"><p class="src"><a id="v:insert" class="def">insert</a> :: <a href="Data-Vault-Lazy.html#t:Key">Key</a> a -> a -> <a href="Data-Vault-Lazy.html#t:Vault">Vault</a> -> <a href="Data-Vault-Lazy.html#t:Vault">Vault</a> <a href="src/Data-Vault-Lazy.html#insert" class="link">Source</a> <a href="#v:insert" class="selflink">#</a></p><div class="doc"><p>Insert a value for a given key. Overwrites any previous value.</p></div></div><div class="top"><p class="src"><a id="v:adjust" class="def">adjust</a> :: (a -> a) -> <a href="Data-Vault-Lazy.html#t:Key">Key</a> a -> <a href="Data-Vault-Lazy.html#t:Vault">Vault</a> -> <a href="Data-Vault-Lazy.html#t:Vault">Vault</a> <a href="src/Data-Vault-Lazy.html#adjust" class="link">Source</a> <a href="#v:adjust" class="selflink">#</a></p><div class="doc"><p>Adjust the value for a given key if it's present in the vault.</p></div></div><div class="top"><p class="src"><a id="v:delete" class="def">delete</a> :: <a href="Data-Vault-Lazy.html#t:Key">Key</a> a -> <a href="Data-Vault-Lazy.html#t:Vault">Vault</a> -> <a href="Data-Vault-Lazy.html#t:Vault">Vault</a> <a href="src/Data-Vault-Lazy.html#delete" class="link">Source</a> <a href="#v:delete" class="selflink">#</a></p><div class="doc"><p>Delete a key from the vault.</p></div></div><div class="top"><p class="src"><a id="v:union" class="def">union</a> :: <a href="Data-Vault-Lazy.html#t:Vault">Vault</a> -> <a href="Data-Vault-Lazy.html#t:Vault">Vault</a> -> <a href="Data-Vault-Lazy.html#t:Vault">Vault</a> <a href="src/Data-Vault-Lazy.html#union" class="link">Source</a> <a href="#v:union" class="selflink">#</a></p><div class="doc"><p>Merge two vaults (left-biased).</p></div></div><h1 id="g:2">Locker</h1><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:Locker" class="def">Locker</a> = <a href="Data-Vault-ST-Lazy.html#t:Locker">Locker</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-ST.html#t:RealWorld">RealWorld</a> <a href="src/Data-Vault-Lazy.html#Locker" class="link">Source</a> <a href="#t:Locker" class="selflink">#</a></p><div class="doc"><p>A persistent store for a single value.</p></div></div><div class="top"><p class="src"><a id="v:lock" class="def">lock</a> :: <a href="Data-Vault-Lazy.html#t:Key">Key</a> a -> a -> <a href="Data-Vault-Lazy.html#t:Locker">Locker</a> <a href="src/Data-Vault-Lazy.html#lock" class="link">Source</a> <a href="#v:lock" class="selflink">#</a></p><div class="doc"><p>Put a single value into a <code><a href="Data-Vault-Lazy.html#t:Locker">Locker</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:unlock" class="def">unlock</a> :: <a href="Data-Vault-Lazy.html#t:Key">Key</a> a -> <a href="Data-Vault-Lazy.html#t:Locker">Locker</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> a <a href="src/Data-Vault-Lazy.html#unlock" class="link">Source</a> <a href="#v:unlock" class="selflink">#</a></p><div class="doc"><p>Retrieve the value from the <code><a href="Data-Vault-Lazy.html#t:Locker">Locker</a></code>.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>
|