Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Memory properties
Synopsis
- data Mutability
- data Heap
- data Pinning
- data Finalization
Documentation
data Mutability Source #
Is the memory mutable or not?
Instances
Eq Mutability Source # | |
Defined in Haskus.Memory.Property (==) :: Mutability -> Mutability -> Bool # (/=) :: Mutability -> Mutability -> Bool # | |
Show Mutability Source # | |
Defined in Haskus.Memory.Property showsPrec :: Int -> Mutability -> ShowS # show :: Mutability -> String # showList :: [Mutability] -> ShowS # |
Is the buffer pinned into memory?
data Finalization Source #
Is the memory automatically garbage collected?
Collected | Automatically collected by the garbage-collector |
Finalized | Finalizers are run just before the garbage collector collects the referencing entity (buffer, pointer...). The memory used by the entity may be collected too (Internal heap), explicitly freed by a finalizer or not freed at all. |
NotFinalized | The memory is not automatically freed and we can't attach finalizers to the buffer. |
Instances
Eq Finalization Source # | |
Defined in Haskus.Memory.Property (==) :: Finalization -> Finalization -> Bool # (/=) :: Finalization -> Finalization -> Bool # | |
Show Finalization Source # | |
Defined in Haskus.Memory.Property showsPrec :: Int -> Finalization -> ShowS # show :: Finalization -> String # showList :: [Finalization] -> ShowS # |