uvmhs-0.0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

UVMHS.Core.Vector

Synopsis

Documentation

newtype 𝕍 a Source #

Constructors

𝕍 

Fields

Instances

Instances details
Functor 𝕍 Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

map :: (a -> b) -> 𝕍 a -> 𝕍 b Source #

FunctorM 𝕍 Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

mapM :: Monad m => (a -> m b) -> 𝕍 a -> m (𝕍 b) Source #

Lookup ℕ64 a (𝕍 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

(⋕?) :: 𝕍 a -> ℕ64 -> 𝑂 a Source #

Single a (𝕍 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

single :: a -> 𝕍 a Source #

ToIter a (𝕍 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

iter :: 𝕍 a -> 𝐼 a Source #

ToIterC a (𝕍 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

iterC :: 𝕍 a -> 𝐼C a Source #

Show a => Show (𝕍 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

showsPrec :: Int -> 𝕍 a -> ShowS #

show :: 𝕍 a -> String #

showList :: [𝕍 a] -> ShowS #

Eq a => Eq (𝕍 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

(==) :: 𝕍 a -> 𝕍 a -> Bool #

(/=) :: 𝕍 a -> 𝕍 a -> Bool #

Ord a => Ord (𝕍 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

compare :: 𝕍 a -> 𝕍 a -> Ordering #

(<) :: 𝕍 a -> 𝕍 a -> Bool #

(<=) :: 𝕍 a -> 𝕍 a -> Bool #

(>) :: 𝕍 a -> 𝕍 a -> Bool #

(>=) :: 𝕍 a -> 𝕍 a -> Bool #

max :: 𝕍 a -> 𝕍 a -> 𝕍 a #

min :: 𝕍 a -> 𝕍 a -> 𝕍 a #

CSized (𝕍 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

csize :: 𝕍 a -> ℕ64 Source #

Append (𝕍 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

(⧺) :: 𝕍 a -> 𝕍 a -> 𝕍 a Source #

Monoid (𝕍 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Null (𝕍 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

null :: 𝕍 a Source #

Pretty a => Pretty (𝕍 a) Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: 𝕍 a -> Doc Source #

newtype 𝕍Mut a Source #

Constructors

𝕍Mut 

Fields

newtype 𝕌 a Source #

Constructors

𝕌 

Fields

Instances

Instances details
Storable a => Lookup ℕ64 a (𝕌 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

(⋕?) :: 𝕌 a -> ℕ64 -> 𝑂 a Source #

Storable a => ToIter a (𝕌 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

iter :: 𝕌 a -> 𝐼 a Source #

Storable a => ToIterC a (𝕌 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

iterC :: 𝕌 a -> 𝐼C a Source #

(Storable a, Show a) => Show (𝕌 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

showsPrec :: Int -> 𝕌 a -> ShowS #

show :: 𝕌 a -> String #

showList :: [𝕌 a] -> ShowS #

(Storable a, Eq a) => Eq (𝕌 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

(==) :: 𝕌 a -> 𝕌 a -> Bool #

(/=) :: 𝕌 a -> 𝕌 a -> Bool #

(Storable a, Ord a) => Ord (𝕌 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

compare :: 𝕌 a -> 𝕌 a -> Ordering #

(<) :: 𝕌 a -> 𝕌 a -> Bool #

(<=) :: 𝕌 a -> 𝕌 a -> Bool #

(>) :: 𝕌 a -> 𝕌 a -> Bool #

(>=) :: 𝕌 a -> 𝕌 a -> Bool #

max :: 𝕌 a -> 𝕌 a -> 𝕌 a #

min :: 𝕌 a -> 𝕌 a -> 𝕌 a #

(Storable a, DivMod a) => DivMod (𝕌 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

(⌿) :: 𝕌 a -> 𝕌 a -> 𝕌 a Source #

(÷) :: 𝕌 a -> 𝕌 a -> 𝕌 a Source #

(Storable a, Divide a) => Divide (𝕌 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

(/) :: 𝕌 a -> 𝕌 a -> 𝕌 a Source #

(Storable a, Minus a) => Minus (𝕌 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

(-) :: 𝕌 a -> 𝕌 a -> 𝕌 a Source #

(Storable a, Plus a) => Plus (𝕌 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

(+) :: 𝕌 a -> 𝕌 a -> 𝕌 a Source #

(Storable a, Pon a) => Pon (𝕌 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

(^^) :: 𝕌 a -> -> 𝕌 a Source #

(Storable a, Pow a) => Pow (𝕌 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

(^) :: 𝕌 a -> 𝕌 a -> 𝕌 a Source #

(Storable a, Root a) => Root (𝕌 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

root :: 𝕌 a -> 𝕌 a Source #

(Storable a, Times a) => Times (𝕌 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

(×) :: 𝕌 a -> 𝕌 a -> 𝕌 a Source #

Storable a => CSized (𝕌 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

csize :: 𝕌 a -> ℕ64 Source #

(Storable a, Join a) => Join (𝕌 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

(⊔) :: 𝕌 a -> 𝕌 a -> 𝕌 a Source #

(Storable a, Meet a) => Meet (𝕌 a) Source # 
Instance details

Defined in UVMHS.Core.Vector

Methods

(⊓) :: 𝕌 a -> 𝕌 a -> 𝕌 a Source #

(Storable a, Pretty a) => Pretty (𝕌 a) Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: 𝕌 a -> Doc Source #

show𝕍 :: Show a => 𝕍 a -> 𝕊 Source #

idx𝕍 :: ℕ64 -> 𝕍 a -> 𝑂 a Source #

map𝕍 :: (a -> b) -> 𝕍 a -> 𝕍 b Source #

mapM𝕍 :: forall m a b. Monad m => (a -> m b) -> 𝕍 a -> m (𝕍 b) Source #

append𝕍 :: 𝕍 a -> 𝕍 a -> 𝕍 a Source #

vec :: ToIter a t => t -> 𝕍 a Source #

vecC :: ToIterC a t => t -> 𝕍 a Source #

vecF :: ℕ64 -> (ℕ64 -> a) -> 𝕍 a Source #

vecDΩ :: (ℕ64 a) -> 𝕍 a Source #

idx𝕍Ω :: ℕ64 -> 𝕍 a -> a Source #

vecIMut :: ToIter a t => t -> IO (𝕍Mut a) Source #

set𝕍Mut :: ℕ64 -> a -> 𝕍Mut a -> IO () Source #

eachI𝕍Mut :: (ℕ64 -> a -> IO ()) -> 𝕍Mut a -> IO () Source #

each𝕍Mut :: (a -> IO ()) -> 𝕍Mut a -> IO () Source #

show𝕌 :: (Storable a, Show a) => 𝕌 a -> 𝕊 Source #

idx𝕌 :: Storable a => ℕ64 -> 𝕌 a -> 𝑂 a Source #

zipWith𝕌 :: (Storable a, Storable b, Storable c) => (a -> b -> c) -> 𝕌 a -> 𝕌 b -> 𝕌 c Source #

map𝕌 :: (Storable a, Storable b) => (a -> b) -> 𝕌 a -> 𝕌 b Source #

uvec :: (Storable a, ToIter a t) => t -> 𝕌 a Source #

uvecC :: (Storable a, ToIterC a t) => t -> 𝕌 a Source #

uvecF :: Storable a => ℕ64 -> (ℕ64 -> a) -> 𝕌 a Source #

uvecDΩ :: Storable a => (ℕ64 a) -> 𝕌 a Source #

idx𝕌Ω :: Storable a => ℕ64 -> 𝕌 a -> a Source #

mapM𝕌 :: forall m a b. (Monad m, Storable a, Storable b) => (a -> m b) -> 𝕌 a -> m (𝕌 b) Source #

null𝕌 :: (Storable a, Null a) => ℕ64 -> 𝕌 a Source #

zipWithOn𝕌 :: (Storable a, Storable b, Storable c) => 𝕌 a -> 𝕌 b -> (a -> b -> c) -> 𝕌 c Source #

class Storable a where #

The member functions of this class facilitate writing values of primitive types to raw memory (which may have been allocated with the above mentioned routines) and reading values from blocks of raw memory. The class, furthermore, includes support for computing the storage requirements and alignment restrictions of storable types.

Memory addresses are represented as values of type Ptr a, for some a which is an instance of class Storable. The type argument to Ptr helps provide some valuable type safety in FFI code (you can't mix pointers of different types without an explicit cast), while helping the Haskell type system figure out which marshalling method is needed for a given pointer.

All marshalling between Haskell and a foreign language ultimately boils down to translating Haskell data structures into the binary representation of a corresponding data structure of the foreign language and vice versa. To code this marshalling in Haskell, it is necessary to manipulate primitive data types stored in unstructured memory blocks. The class Storable facilitates this manipulation on all types for which it is instantiated, which are the standard basic types of Haskell, the fixed size Int types (Int8, Int16, Int32, Int64), the fixed size Word types (Word8, Word16, Word32, Word64), StablePtr, all types from Foreign.C.Types, as well as Ptr.

Minimal complete definition

sizeOf, alignment, (peek | peekElemOff | peekByteOff), (poke | pokeElemOff | pokeByteOff)

Methods

sizeOf :: a -> Int #

Computes the storage requirements (in bytes) of the argument. The value of the argument is not used.

alignment :: a -> Int #

Computes the alignment constraint of the argument. An alignment constraint x is fulfilled by any address divisible by x. The alignment must be a power of two if this instance is to be used with alloca or allocaArray. The value of the argument is not used.

peekElemOff :: Ptr a -> Int -> IO a #

Read a value from a memory area regarded as an array of values of the same kind. The first argument specifies the start address of the array and the second the index into the array (the first element of the array has index 0). The following equality holds,

peekElemOff addr idx = IOExts.fixIO $ \result ->
  peek (addr `plusPtr` (idx * sizeOf result))

Note that this is only a specification, not necessarily the concrete implementation of the function.

pokeElemOff :: Ptr a -> Int -> a -> IO () #

Write a value to a memory area regarded as an array of values of the same kind. The following equality holds:

pokeElemOff addr idx x = 
  poke (addr `plusPtr` (idx * sizeOf x)) x

peekByteOff :: Ptr b -> Int -> IO a #

Read a value from a memory location given by a base address and offset. The following equality holds:

peekByteOff addr off = peek (addr `plusPtr` off)

pokeByteOff :: Ptr b -> Int -> a -> IO () #

Write a value to a memory location given by a base address and offset. The following equality holds:

pokeByteOff addr off x = poke (addr `plusPtr` off) x

peek :: Ptr a -> IO a #

Read a value from the given memory location.

Note that the peek and poke functions might require properly aligned addresses to function correctly. This is architecture dependent; thus, portable code should ensure that when peeking or poking values of some type a, the alignment constraint for a, as given by the function alignment is fulfilled.

poke :: Ptr a -> a -> IO () #

Write the given value to the given memory location. Alignment restrictions might apply; see peek.

Instances

Instances details
Storable CBool 
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CBool -> Int #

alignment :: CBool -> Int #

peekElemOff :: Ptr CBool -> Int -> IO CBool #

pokeElemOff :: Ptr CBool -> Int -> CBool -> IO () #

peekByteOff :: Ptr b -> Int -> IO CBool #

pokeByteOff :: Ptr b -> Int -> CBool -> IO () #

peek :: Ptr CBool -> IO CBool #

poke :: Ptr CBool -> CBool -> IO () #

Storable CChar 
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CChar -> Int #

alignment :: CChar -> Int #

peekElemOff :: Ptr CChar -> Int -> IO CChar #

pokeElemOff :: Ptr CChar -> Int -> CChar -> IO () #

peekByteOff :: Ptr b -> Int -> IO CChar #

pokeByteOff :: Ptr b -> Int -> CChar -> IO () #

peek :: Ptr CChar -> IO CChar #

poke :: Ptr CChar -> CChar -> IO () #

Storable CClock 
Instance details

Defined in Foreign.C.Types

Storable CDouble 
Instance details

Defined in Foreign.C.Types

Storable CFloat 
Instance details

Defined in Foreign.C.Types

Storable CInt 
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CInt -> Int #

alignment :: CInt -> Int #

peekElemOff :: Ptr CInt -> Int -> IO CInt #

pokeElemOff :: Ptr CInt -> Int -> CInt -> IO () #

peekByteOff :: Ptr b -> Int -> IO CInt #

pokeByteOff :: Ptr b -> Int -> CInt -> IO () #

peek :: Ptr CInt -> IO CInt #

poke :: Ptr CInt -> CInt -> IO () #

Storable CIntMax 
Instance details

Defined in Foreign.C.Types

Storable CIntPtr 
Instance details

Defined in Foreign.C.Types

Storable CLLong 
Instance details

Defined in Foreign.C.Types

Storable CLong 
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CLong -> Int #

alignment :: CLong -> Int #

peekElemOff :: Ptr CLong -> Int -> IO CLong #

pokeElemOff :: Ptr CLong -> Int -> CLong -> IO () #

peekByteOff :: Ptr b -> Int -> IO CLong #

pokeByteOff :: Ptr b -> Int -> CLong -> IO () #

peek :: Ptr CLong -> IO CLong #

poke :: Ptr CLong -> CLong -> IO () #

Storable CPtrdiff 
Instance details

Defined in Foreign.C.Types

Storable CSChar 
Instance details

Defined in Foreign.C.Types

Storable CSUSeconds 
Instance details

Defined in Foreign.C.Types

Storable CShort 
Instance details

Defined in Foreign.C.Types

Storable CSigAtomic 
Instance details

Defined in Foreign.C.Types

Storable CSize 
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CSize -> Int #

alignment :: CSize -> Int #

peekElemOff :: Ptr CSize -> Int -> IO CSize #

pokeElemOff :: Ptr CSize -> Int -> CSize -> IO () #

peekByteOff :: Ptr b -> Int -> IO CSize #

pokeByteOff :: Ptr b -> Int -> CSize -> IO () #

peek :: Ptr CSize -> IO CSize #

poke :: Ptr CSize -> CSize -> IO () #

Storable CTime 
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CTime -> Int #

alignment :: CTime -> Int #

peekElemOff :: Ptr CTime -> Int -> IO CTime #

pokeElemOff :: Ptr CTime -> Int -> CTime -> IO () #

peekByteOff :: Ptr b -> Int -> IO CTime #

pokeByteOff :: Ptr b -> Int -> CTime -> IO () #

peek :: Ptr CTime -> IO CTime #

poke :: Ptr CTime -> CTime -> IO () #

Storable CUChar 
Instance details

Defined in Foreign.C.Types

Storable CUInt 
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CUInt -> Int #

alignment :: CUInt -> Int #

peekElemOff :: Ptr CUInt -> Int -> IO CUInt #

pokeElemOff :: Ptr CUInt -> Int -> CUInt -> IO () #

peekByteOff :: Ptr b -> Int -> IO CUInt #

pokeByteOff :: Ptr b -> Int -> CUInt -> IO () #

peek :: Ptr CUInt -> IO CUInt #

poke :: Ptr CUInt -> CUInt -> IO () #

Storable CUIntMax 
Instance details

Defined in Foreign.C.Types

Storable CUIntPtr 
Instance details

Defined in Foreign.C.Types

Storable CULLong 
Instance details

Defined in Foreign.C.Types

Storable CULong 
Instance details

Defined in Foreign.C.Types

Storable CUSeconds 
Instance details

Defined in Foreign.C.Types

Storable CUShort 
Instance details

Defined in Foreign.C.Types

Storable CWchar 
Instance details

Defined in Foreign.C.Types

Storable Fingerprint

Since: base-4.4.0.0

Instance details

Defined in Foreign.Storable

Storable Int16

Since: base-2.1

Instance details

Defined in Foreign.Storable

Methods

sizeOf :: Int16 -> Int #

alignment :: Int16 -> Int #

peekElemOff :: Ptr Int16 -> Int -> IO Int16 #

pokeElemOff :: Ptr Int16 -> Int -> Int16 -> IO () #

peekByteOff :: Ptr b -> Int -> IO Int16 #

pokeByteOff :: Ptr b -> Int -> Int16 -> IO () #

peek :: Ptr Int16 -> IO Int16 #

poke :: Ptr Int16 -> Int16 -> IO () #

Storable Int32

Since: base-2.1

Instance details

Defined in Foreign.Storable

Methods

sizeOf :: Int32 -> Int #

alignment :: Int32 -> Int #

peekElemOff :: Ptr Int32 -> Int -> IO Int32 #

pokeElemOff :: Ptr Int32 -> Int -> Int32 -> IO () #

peekByteOff :: Ptr b -> Int -> IO Int32 #

pokeByteOff :: Ptr b -> Int -> Int32 -> IO () #

peek :: Ptr Int32 -> IO Int32 #

poke :: Ptr Int32 -> Int32 -> IO () #

Storable Int64

Since: base-2.1

Instance details

Defined in Foreign.Storable

Methods

sizeOf :: Int64 -> Int #

alignment :: Int64 -> Int #

peekElemOff :: Ptr Int64 -> Int -> IO Int64 #

pokeElemOff :: Ptr Int64 -> Int -> Int64 -> IO () #

peekByteOff :: Ptr b -> Int -> IO Int64 #

pokeByteOff :: Ptr b -> Int -> Int64 -> IO () #

peek :: Ptr Int64 -> IO Int64 #

poke :: Ptr Int64 -> Int64 -> IO () #

Storable Int8

Since: base-2.1

Instance details

Defined in Foreign.Storable

Methods

sizeOf :: Int8 -> Int #

alignment :: Int8 -> Int #

peekElemOff :: Ptr Int8 -> Int -> IO Int8 #

pokeElemOff :: Ptr Int8 -> Int -> Int8 -> IO () #

peekByteOff :: Ptr b -> Int -> IO Int8 #

pokeByteOff :: Ptr b -> Int -> Int8 -> IO () #

peek :: Ptr Int8 -> IO Int8 #

poke :: Ptr Int8 -> Int8 -> IO () #

Storable Word16

Since: base-2.1

Instance details

Defined in Foreign.Storable

Storable Word32

Since: base-2.1

Instance details

Defined in Foreign.Storable

Storable Word64

Since: base-2.1

Instance details

Defined in Foreign.Storable

Storable Word8

Since: base-2.1

Instance details

Defined in Foreign.Storable

Methods

sizeOf :: Word8 -> Int #

alignment :: Word8 -> Int #

peekElemOff :: Ptr Word8 -> Int -> IO Word8 #

pokeElemOff :: Ptr Word8 -> Int -> Word8 -> IO () #

peekByteOff :: Ptr b -> Int -> IO Word8 #

pokeByteOff :: Ptr b -> Int -> Word8 -> IO () #

peek :: Ptr Word8 -> IO Word8 #

poke :: Ptr Word8 -> Word8 -> IO () #

Storable ()

Since: base-4.9.0.0

Instance details

Defined in Foreign.Storable

Methods

sizeOf :: () -> Int #

alignment :: () -> Int #

peekElemOff :: Ptr () -> Int -> IO () #

pokeElemOff :: Ptr () -> Int -> () -> IO () #

peekByteOff :: Ptr b -> Int -> IO () #

pokeByteOff :: Ptr b -> Int -> () -> IO () #

peek :: Ptr () -> IO () #

poke :: Ptr () -> () -> IO () #

Storable Bool

Since: base-2.1

Instance details

Defined in Foreign.Storable

Methods

sizeOf :: Bool -> Int #

alignment :: Bool -> Int #

peekElemOff :: Ptr Bool -> Int -> IO Bool #

pokeElemOff :: Ptr Bool -> Int -> Bool -> IO () #

peekByteOff :: Ptr b -> Int -> IO Bool #

pokeByteOff :: Ptr b -> Int -> Bool -> IO () #

peek :: Ptr Bool -> IO Bool #

poke :: Ptr Bool -> Bool -> IO () #

Storable Char

Since: base-2.1

Instance details

Defined in Foreign.Storable

Methods

sizeOf :: Char -> Int #

alignment :: Char -> Int #

peekElemOff :: Ptr Char -> Int -> IO Char #

pokeElemOff :: Ptr Char -> Int -> Char -> IO () #

peekByteOff :: Ptr b -> Int -> IO Char #

pokeByteOff :: Ptr b -> Int -> Char -> IO () #

peek :: Ptr Char -> IO Char #

poke :: Ptr Char -> Char -> IO () #

Storable Double

Since: base-2.1

Instance details

Defined in Foreign.Storable

Storable Float

Since: base-2.1

Instance details

Defined in Foreign.Storable

Methods

sizeOf :: Float -> Int #

alignment :: Float -> Int #

peekElemOff :: Ptr Float -> Int -> IO Float #

pokeElemOff :: Ptr Float -> Int -> Float -> IO () #

peekByteOff :: Ptr b -> Int -> IO Float #

pokeByteOff :: Ptr b -> Int -> Float -> IO () #

peek :: Ptr Float -> IO Float #

poke :: Ptr Float -> Float -> IO () #

Storable Int

Since: base-2.1

Instance details

Defined in Foreign.Storable

Methods

sizeOf :: Int -> Int #

alignment :: Int -> Int #

peekElemOff :: Ptr Int -> Int -> IO Int #

pokeElemOff :: Ptr Int -> Int -> Int -> IO () #

peekByteOff :: Ptr b -> Int -> IO Int #

pokeByteOff :: Ptr b -> Int -> Int -> IO () #

peek :: Ptr Int -> IO Int #

poke :: Ptr Int -> Int -> IO () #

Storable Word

Since: base-2.1

Instance details

Defined in Foreign.Storable

Methods

sizeOf :: Word -> Int #

alignment :: Word -> Int #

peekElemOff :: Ptr Word -> Int -> IO Word #

pokeElemOff :: Ptr Word -> Int -> Word -> IO () #

peekByteOff :: Ptr b -> Int -> IO Word #

pokeByteOff :: Ptr b -> Int -> Word -> IO () #

peek :: Ptr Word -> IO Word #

poke :: Ptr Word -> Word -> IO () #

Storable a => Storable (Complex a)

Since: base-4.8.0.0

Instance details

Defined in Data.Complex

Methods

sizeOf :: Complex a -> Int #

alignment :: Complex a -> Int #

peekElemOff :: Ptr (Complex a) -> Int -> IO (Complex a) #

pokeElemOff :: Ptr (Complex a) -> Int -> Complex a -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Complex a) #

pokeByteOff :: Ptr b -> Int -> Complex a -> IO () #

peek :: Ptr (Complex a) -> IO (Complex a) #

poke :: Ptr (Complex a) -> Complex a -> IO () #

Storable a => Storable (Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Methods

sizeOf :: Identity a -> Int #

alignment :: Identity a -> Int #

peekElemOff :: Ptr (Identity a) -> Int -> IO (Identity a) #

pokeElemOff :: Ptr (Identity a) -> Int -> Identity a -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Identity a) #

pokeByteOff :: Ptr b -> Int -> Identity a -> IO () #

peek :: Ptr (Identity a) -> IO (Identity a) #

poke :: Ptr (Identity a) -> Identity a -> IO () #

Storable (ConstPtr a) 
Instance details

Defined in Foreign.Storable

Methods

sizeOf :: ConstPtr a -> Int #

alignment :: ConstPtr a -> Int #

peekElemOff :: Ptr (ConstPtr a) -> Int -> IO (ConstPtr a) #

pokeElemOff :: Ptr (ConstPtr a) -> Int -> ConstPtr a -> IO () #

peekByteOff :: Ptr b -> Int -> IO (ConstPtr a) #

pokeByteOff :: Ptr b -> Int -> ConstPtr a -> IO () #

peek :: Ptr (ConstPtr a) -> IO (ConstPtr a) #

poke :: Ptr (ConstPtr a) -> ConstPtr a -> IO () #

Storable (FunPtr a)

Since: base-2.1

Instance details

Defined in Foreign.Storable

Methods

sizeOf :: FunPtr a -> Int #

alignment :: FunPtr a -> Int #

peekElemOff :: Ptr (FunPtr a) -> Int -> IO (FunPtr a) #

pokeElemOff :: Ptr (FunPtr a) -> Int -> FunPtr a -> IO () #

peekByteOff :: Ptr b -> Int -> IO (FunPtr a) #

pokeByteOff :: Ptr b -> Int -> FunPtr a -> IO () #

peek :: Ptr (FunPtr a) -> IO (FunPtr a) #

poke :: Ptr (FunPtr a) -> FunPtr a -> IO () #

Storable (Ptr a)

Since: base-2.1

Instance details

Defined in Foreign.Storable

Methods

sizeOf :: Ptr a -> Int #

alignment :: Ptr a -> Int #

peekElemOff :: Ptr (Ptr a) -> Int -> IO (Ptr a) #

pokeElemOff :: Ptr (Ptr a) -> Int -> Ptr a -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Ptr a) #

pokeByteOff :: Ptr b -> Int -> Ptr a -> IO () #

peek :: Ptr (Ptr a) -> IO (Ptr a) #

poke :: Ptr (Ptr a) -> Ptr a -> IO () #

(Storable a, Integral a) => Storable (Ratio a)

Since: base-4.8.0.0

Instance details

Defined in Foreign.Storable

Methods

sizeOf :: Ratio a -> Int #

alignment :: Ratio a -> Int #

peekElemOff :: Ptr (Ratio a) -> Int -> IO (Ratio a) #

pokeElemOff :: Ptr (Ratio a) -> Int -> Ratio a -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Ratio a) #

pokeByteOff :: Ptr b -> Int -> Ratio a -> IO () #

peek :: Ptr (Ratio a) -> IO (Ratio a) #

poke :: Ptr (Ratio a) -> Ratio a -> IO () #

Storable (StablePtr a)

Since: base-2.1

Instance details

Defined in Foreign.Storable

Methods

sizeOf :: StablePtr a -> Int #

alignment :: StablePtr a -> Int #

peekElemOff :: Ptr (StablePtr a) -> Int -> IO (StablePtr a) #

pokeElemOff :: Ptr (StablePtr a) -> Int -> StablePtr a -> IO () #

peekByteOff :: Ptr b -> Int -> IO (StablePtr a) #

pokeByteOff :: Ptr b -> Int -> StablePtr a -> IO () #

peek :: Ptr (StablePtr a) -> IO (StablePtr a) #

poke :: Ptr (StablePtr a) -> StablePtr a -> IO () #

Storable g => Storable (StateGen g) 
Instance details

Defined in System.Random.Internal

Methods

sizeOf :: StateGen g -> Int #

alignment :: StateGen g -> Int #

peekElemOff :: Ptr (StateGen g) -> Int -> IO (StateGen g) #

pokeElemOff :: Ptr (StateGen g) -> Int -> StateGen g -> IO () #

peekByteOff :: Ptr b -> Int -> IO (StateGen g) #

pokeByteOff :: Ptr b -> Int -> StateGen g -> IO () #

peek :: Ptr (StateGen g) -> IO (StateGen g) #

poke :: Ptr (StateGen g) -> StateGen g -> IO () #

Storable a => Storable (Const a b)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Const

Methods

sizeOf :: Const a b -> Int #

alignment :: Const a b -> Int #

peekElemOff :: Ptr (Const a b) -> Int -> IO (Const a b) #

pokeElemOff :: Ptr (Const a b) -> Int -> Const a b -> IO () #

peekByteOff :: Ptr b0 -> Int -> IO (Const a b) #

pokeByteOff :: Ptr b0 -> Int -> Const a b -> IO () #

peek :: Ptr (Const a b) -> IO (Const a b) #

poke :: Ptr (Const a b) -> Const a b -> IO () #