-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Debugging tools for Shpadoinkle applications. -- -- Shpadoinkle tooling is a work in progress. But some useful functions -- have already emerged. This repo centeralizes these functions, and will -- house future work on more robust tooling, such as time travel -- debugging. @package Shpadoinkle-debug @version 0.0.0.1 module Shpadoinkle.Debug class LogJS (c :: Type -> Constraint) logJS :: (LogJS c, c a) => a -> JSM () class LogJS c => Trapper c trapper :: (Trapper c, c a) => JSContextRef -> a -> a -- | Gets the JavaScript context from the monad askJSM :: MonadJSM m => m JSContextRef instance Shpadoinkle.Debug.Trapper Data.Aeson.Types.ToJSON.ToJSON instance Shpadoinkle.Debug.Trapper GHC.Show.Show instance Shpadoinkle.Debug.Trapper GHCJS.Marshal.Internal.ToJSVal instance Shpadoinkle.Debug.LogJS Data.Aeson.Types.ToJSON.ToJSON instance Shpadoinkle.Debug.LogJS GHC.Show.Show instance Shpadoinkle.Debug.LogJS GHCJS.Marshal.Internal.ToJSVal