GPipe-Engine-0.0.1: 3D rendering engine based on GPipe
Safe HaskellNone
LanguageHaskell2010

Graphics.GPipe.Engine.TimeIt

Documentation

timeIt :: (Info a, MonadIO m) => String -> m a -> m a Source #

timeItInPlace :: (Info a, MonadIO m) => String -> m a -> m a Source #

data Status Source #

Constructors

Fail 
Done 
Running 

Instances

Instances details
Show Status Source # 
Instance details

Defined in Graphics.GPipe.Engine.TimeIt

class Info a where Source #

Methods

getInfo :: a -> (a, (Status, String)) Source #

Instances

Instances details
Info [a] Source # 
Instance details

Defined in Graphics.GPipe.Engine.TimeIt

Methods

getInfo :: [a] -> ([a], (Status, String)) Source #

Info (Maybe a) Source # 
Instance details

Defined in Graphics.GPipe.Engine.TimeIt

Methods

getInfo :: Maybe a -> (Maybe a, (Status, String)) Source #

Info (a -> b) Source # 
Instance details

Defined in Graphics.GPipe.Engine.TimeIt

Methods

getInfo :: (a -> b) -> (a -> b, (Status, String)) Source #

Info b => Info (Either a b) Source # 
Instance details

Defined in Graphics.GPipe.Engine.TimeIt

Methods

getInfo :: Either a b -> (Either a b, (Status, String)) Source #

Info (Texture2D a b) Source # 
Instance details

Defined in Graphics.GPipe.Engine.TimeIt

Methods

getInfo :: Texture2D a b -> (Texture2D a b, (Status, String)) Source #

Info (Buffer os a) Source # 
Instance details

Defined in Graphics.GPipe.Engine.TimeIt

Methods

getInfo :: Buffer os a -> (Buffer os a, (Status, String)) Source #