Safe Haskell | Trustworthy |
---|---|
Language | Haskell2010 |
A fast(est) mutable data
- type BoolSingleton = IOVector Bool
- newBool :: Bool -> IO BoolSingleton
- getBool :: BoolSingleton -> IO Bool
- setBool :: BoolSingleton -> Bool -> IO ()
- modifyBool :: BoolSingleton -> (Bool -> Bool) -> IO ()
- type IntSingleton = IOVector Int
- newInt :: Int -> IO IntSingleton
- getInt :: IntSingleton -> IO Int
- setInt :: IntSingleton -> Int -> IO ()
- modifyInt :: IntSingleton -> (Int -> Int) -> IO ()
- type DoubleSingleton = IOVector Double
- newDouble :: Double -> IO DoubleSingleton
- getDouble :: DoubleSingleton -> IO Double
- setDouble :: DoubleSingleton -> Double -> IO ()
- modifyDouble :: DoubleSingleton -> (Double -> Double) -> IO ()
Bool
type BoolSingleton = IOVector Bool Source #
mutable Bool
newBool :: Bool -> IO BoolSingleton Source #
returns a new BoolSingleton
modifyBool :: BoolSingleton -> (Bool -> Bool) -> IO () Source #
modifies the value
Int
type IntSingleton = IOVector Int Source #
mutable Int
newInt :: Int -> IO IntSingleton Source #
returns a new IntSingleton
Double
type DoubleSingleton = IOVector Double Source #
mutable Double
newDouble :: Double -> IO DoubleSingleton Source #
returns a new DoubleSingleton
modifyDouble :: DoubleSingleton -> (Double -> Double) -> IO () Source #
modifies the value