/usr/share/doc/libghc-primitive-doc/html/Data-Primitive-MutVar.html is in libghc-primitive-doc 0.5.0.1-3.
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 6 7 8 9 10 11 12 | <!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.Primitive.MutVar</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Data-Primitive-MutVar.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Data-Primitive-MutVar.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">primitive-0.5.0.1: Primitive memory-related operations</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>non-portable</td></tr><tr><th>Maintainer</th><td>Roman Leshchinskiy <rl@cse.unsw.edu.au></td></tr><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Data.Primitive.MutVar</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Primitive boxed mutable variables
</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">data</span> <a href="#t:MutVar">MutVar</a> s a = <a href="#v:MutVar">MutVar</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.3.0.0/GHC-Prim.html#t:MutVar-35-">MutVar#</a> s a)</li><li class="src short"><a href="#v:newMutVar">newMutVar</a> :: <a href="Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m => a -> m (<a href="Data-Primitive-MutVar.html#t:MutVar">MutVar</a> (<a href="Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) a)</li><li class="src short"><a href="#v:readMutVar">readMutVar</a> :: <a href="Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m => <a href="Data-Primitive-MutVar.html#t:MutVar">MutVar</a> (<a href="Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) a -> m a</li><li class="src short"><a href="#v:writeMutVar">writeMutVar</a> :: <a href="Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m => <a href="Data-Primitive-MutVar.html#t:MutVar">MutVar</a> (<a href="Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) a -> a -> m ()</li><li class="src short"><a href="#v:atomicModifyMutVar">atomicModifyMutVar</a> :: <a href="Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m => <a href="Data-Primitive-MutVar.html#t:MutVar">MutVar</a> (<a href="Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) a -> (a -> (a, b)) -> m b</li><li class="src short"><a href="#v:modifyMutVar">modifyMutVar</a> :: <a href="Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m => <a href="Data-Primitive-MutVar.html#t:MutVar">MutVar</a> (<a href="Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) a -> (a -> a) -> m ()</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:MutVar" class="def">MutVar</a> s a <a href="src/Data-Primitive-MutVar.html#MutVar" class="link">Source</a></p><div class="doc"><p>A <code><a href="Data-Primitive-MutVar.html#t:MutVar">MutVar</a></code> behaves like a single-element mutable array associated
with a primitive state token.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:MutVar" class="def">MutVar</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.3.0.0/GHC-Prim.html#t:MutVar-35-">MutVar#</a> s a)</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:MutVar" class="caption collapser" onclick="toggleSection('i:MutVar')">Instances</p><div id="section.i:MutVar" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:Typeable2">Typeable2</a> <a href="Data-Primitive-MutVar.html#t:MutVar">MutVar</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> (<a href="Data-Primitive-MutVar.html#t:MutVar">MutVar</a> s a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:newMutVar" class="def">newMutVar</a> :: <a href="Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m => a -> m (<a href="Data-Primitive-MutVar.html#t:MutVar">MutVar</a> (<a href="Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) a)<a href="src/Data-Primitive-MutVar.html#newMutVar" class="link">Source</a></p><div class="doc"><p>Create a new <code><a href="Data-Primitive-MutVar.html#t:MutVar">MutVar</a></code> with the specified initial value
</p></div></div><div class="top"><p class="src"><a name="v:readMutVar" class="def">readMutVar</a> :: <a href="Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m => <a href="Data-Primitive-MutVar.html#t:MutVar">MutVar</a> (<a href="Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) a -> m a<a href="src/Data-Primitive-MutVar.html#readMutVar" class="link">Source</a></p><div class="doc"><p>Read the value of a <code><a href="Data-Primitive-MutVar.html#t:MutVar">MutVar</a></code>
</p></div></div><div class="top"><p class="src"><a name="v:writeMutVar" class="def">writeMutVar</a> :: <a href="Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m => <a href="Data-Primitive-MutVar.html#t:MutVar">MutVar</a> (<a href="Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) a -> a -> m ()<a href="src/Data-Primitive-MutVar.html#writeMutVar" class="link">Source</a></p><div class="doc"><p>Write a new value into a <code><a href="Data-Primitive-MutVar.html#t:MutVar">MutVar</a></code>
</p></div></div><div class="top"><p class="src"><a name="v:atomicModifyMutVar" class="def">atomicModifyMutVar</a> :: <a href="Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m => <a href="Data-Primitive-MutVar.html#t:MutVar">MutVar</a> (<a href="Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) a -> (a -> (a, b)) -> m b<a href="src/Data-Primitive-MutVar.html#atomicModifyMutVar" class="link">Source</a></p><div class="doc"><p>Atomically mutate the contents of a <code><a href="Data-Primitive-MutVar.html#t:MutVar">MutVar</a></code>
</p></div></div><div class="top"><p class="src"><a name="v:modifyMutVar" class="def">modifyMutVar</a> :: <a href="Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m => <a href="Data-Primitive-MutVar.html#t:MutVar">MutVar</a> (<a href="Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) a -> (a -> a) -> m ()<a href="src/Data-Primitive-MutVar.html#modifyMutVar" class="link">Source</a></p><div class="doc"><p>Mutate the contents of a <code><a href="Data-Primitive-MutVar.html#t:MutVar">MutVar</a></code>
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.13.2</p></div></body></html>
|