ST +Data.Array

module Data.Array.ST
array Data.Array.ST
Mutable boxed and unboxed arrays in the ST monad.
data STArray s i e :: * -> * -> * -> *
array Data.Array.ST, array Data.Array.ST.Safe
Mutable, boxed, non-strict arrays in the ST monad. The type arguments are as follows: * s: the state variable argument for the ST type * i: the index type of the array (should be an instance of Ix) * e: the element type of the array.
package STMonadTrans
package
A monad transformer version of the ST monad Warning! This monad transformer should not be used with monads that can contain multiple answers, like the list monad. The reason is that the will be duplicated across the different answers and this cause Bad Things to happen (such as loss of referential transparency). Safe monads include the monads State, Reader, Writer, Maybe and combinations of their corresponding monad transformers. Version 0.3.1
data STUArray s i e
array Data.Array.ST, array Data.Array.ST.Safe
A mutable array with unboxed elements, that can be manipulated in the ST monad. The type arguments are as follows: * s: the state variable argument for the ST type * i: the index type of the array (should be an instance of Ix) * e: the element type of the array. Only certain element types are supported. An STUArray will generally be more efficient (in terms of both time and space) than the equivalent boxed version (STArray) with the same element type. However, STUArray is strict in its elements - so don't use STUArray if you require the non-strictness that STArray provides.
module Data.Array.Storable
array Data.Array.Storable
A storable array is an IO-mutable array which stores its contents in a contiguous memory block living in the C heap. Elements are stored according to the class Storable. You can obtain the pointer to the array contents to manipulate elements from languages like C. It is similar to IOUArray but slower. Its advantage is that it's compatible with C.
package stable-maps
package
Provides an unsafe API for inserting heterogeneous data in a collection keyed by StableNames and for later retrieving it. Version 0.0.4
package stable-memo
package
Whereas most memo combinators memoize based on equality, stable-memo does it based on whether the exact same argument has been passed to the function before (that is, is the same argument in memory). * stable-memo only evaluates keys to WHNF. * This can be more suitable for recursive functions over graphs with cycles. * stable-memo doesn't retain the keys it has seen so far, which allows them to be garbage collected if they will no longer be used. Finalizers are put in place to remove the corresponding entries from the memo table if this happens. * Data.StableMemo.Weak provides an alternative set of combinators that also avoid retaining the results of the function, only reusing results if they have not yet been garbage collected. * There is no type class constraint on the function's argument. stable-memo will not work for arguments which happen to have the same value but are not the same heap object. This rules out many candidates for memoization, such as the most common example, the naive Fibonacci implementation whose domain is machine Ints; it can still be made to work for some domains, though, such as the lazy naturals. > data Nat = Succ Nat | Zero > fib :: Nat -> Integer > fib = memo fib' > where fib' Zero                = 0 > fib' (Succ Zero)         = 1 > fib' (Succ n1@(Succ n2)) = fib n1 + fib n2 Below is an implementation of map that preserves sharing of the spine for cyclic lists. It should even be safe to use this on arbitrarily long, acyclic lists since as long as the garbage collector is chasing you, the size of the memo table should stay under control, too. > map :: (a -> b) -> [a] -> [b] > map f = go > where go = memo map' > map' []     = [] > map' (x:xs) = f x : go xs This library is largely based on the implementation of memo found in "Stretching the storage manager: weak pointers and stable names in Haskell", from Simon Peyton Jones, Simon Marlow, and Conal Elliott (http://community.haskell.org/~simonmar/papers/weak.pdf). Version 0.2.2
package standalone-haddock
package
package star-to-star
package
Fundamental * -> * types, operators, and covariant instances. Version 1.0
package star-to-star-contra
package
Contravariant instances for the fundamental * -> * types and operators. Version 1.0
package starling
package
A haskell memcached client. See http://memcached.org for more information. This implements the new binary protocol, so it only works with memcached version 1.3 and newer. Version 0.3.0
package starrover2
package
Space simulation game. Version 0.1.1
package state
package
Data.State Version 0.1
package state-plus
package
Implements MonadPlus with left catch (MonadOr) for StateT. Version 0.1
package state-record
package
This package provides a Template Haskell function which transforms a normal record declaration into one which supports many useful operations when used as the state in a State monad. Version 0.0.1
package statechart
package
TODO Version 0.1.0
package stateful-mtl
package
A MonadST type class, instances, and some helpful monad functions. Version 1.0.7
package stateref
package
A collection of type-classes generalizing the read/write/modify operations for stateful variables provided by things like IORef, TVar, &c. Note that The interface has changed a bit from the 0.2.* version.  "*Ref" functions are now called "*Reference" and new "*Ref" function exist with simpler signatures. The new Ref existential type provides a convenient monad-indexed reference type, and the HasRef class indicates monads for which there is a default reference type for every referent. Version 0.3
package statestack
package
Simple State-like monad transformer where states can be saved to and restored from an internal stack. Version 0.2
package statethread
package
The ST monad and STRefs in a portable form. This package implements state threads as wrapper around IO and IORefs. Your compiler must support rank-2-types, IORefs, unsafePerformIO and unsafeInterleaveIO. The package can be used as drop-in replacement for the st package. Version 0.1.1

Show more results