Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
Each piece of memory that is pushed onto the stack is cast to a GTrashStack*.
- newtype TrashStack = TrashStack (ForeignPtr TrashStack)
- newZeroTrashStack :: MonadIO m => m TrashStack
- noTrashStack :: Maybe TrashStack
- trashStackHeight :: MonadIO m => TrashStack -> m Word32
- trashStackPush :: MonadIO m => TrashStack -> Ptr () -> m ()
- trashStackReadNext :: TrashStack -> IO TrashStack
Exported types
newtype TrashStack Source
((~) * info (ResolveTrashStackMethod t TrashStack), MethodInfo * info TrashStack p) => IsLabel t (TrashStack -> p) Source | |
((~) * info (ResolveTrashStackMethod t TrashStack), MethodInfo * info TrashStack p) => IsLabelProxy t (TrashStack -> p) Source | |
newZeroTrashStack :: MonadIO m => m TrashStack Source
Construct a TrashStack
struct initialized to zero.
Methods
trashStackHeight
trashStackHeight :: MonadIO m => TrashStack -> m Word32 Source
trashStackPush
trashStackPush :: MonadIO m => TrashStack -> Ptr () -> m () Source