OpenGL-2.8.0.0: A binding for the OpenGL graphics system

Portabilityportable
Stabilitystable
Maintainersven.panne@aedion.de
Safe HaskellSafe-Inferred

Graphics.Rendering.OpenGL.GL.IOState

Description

This is a purely internal module for an IO monad with a pointer as an additional state, basically a StateT (Ptr s) IO a.

Documentation

newtype IOState s a Source

Constructors

IOState 

Fields

runIOState :: Ptr s -> IO (a, Ptr s)
 

Instances

evalIOState :: IOState s a -> Ptr s -> IO aSource

nTimes :: Integral a => a -> IOState b c -> IOState b [c]Source