Shpadoinkle-debug-0.0.0.1: Debugging tools for Shpadoinkle applications.

Safe HaskellNone
LanguageHaskell2010

Shpadoinkle.Debug

Synopsis

Documentation

class LogJS (c :: Type -> Constraint) where Source #

Methods

logJS :: c a => a -> JSM () Source #

Instances
LogJS Show Source # 
Instance details

Defined in Shpadoinkle.Debug

Methods

logJS :: Show a => a -> JSM () Source #

LogJS ToJSON Source # 
Instance details

Defined in Shpadoinkle.Debug

Methods

logJS :: ToJSON a => a -> JSM () Source #

LogJS ToJSVal Source # 
Instance details

Defined in Shpadoinkle.Debug

Methods

logJS :: ToJSVal a => a -> JSM () Source #

class LogJS c => Trapper c where Source #

Minimal complete definition

Nothing

Methods

trapper :: c a => JSContextRef -> a -> a Source #

Instances
Trapper Show Source # 
Instance details

Defined in Shpadoinkle.Debug

Methods

trapper :: Show a => JSContextRef -> a -> a Source #

Trapper ToJSON Source # 
Instance details

Defined in Shpadoinkle.Debug

Methods

trapper :: ToJSON a => JSContextRef -> a -> a Source #

Trapper ToJSVal Source # 
Instance details

Defined in Shpadoinkle.Debug

Methods

trapper :: ToJSVal a => JSContextRef -> a -> a Source #

askJSM :: MonadJSM m => m JSContextRef #

Gets the JavaScript context from the monad