lvish-2.0: Parallel scheduler, LVar data structures, and infrastructure to build more.

Safe HaskellNone

Data.LVar.NatArray.Unsafe

Description

Unsafe operations on NatArray. NOT for end-user applications.

Synopsis

Documentation

data NatArray s a

An array of bit-fields with a monotonic OR operation. This can be used to model a set of Ints by setting the vector entries to zero or one, but it can also model other finite lattices for each index. newtype NatArray s a = NatArray (LVar s (M.IOVector a) (Int,a))

Constructors

Storable a => NatArray !(LVar s (IOVector a) (Int, a)) 

unsafePeek :: (Num a, Eq a) => NatArray s a -> Int -> Par e s (Maybe a)