on develop help sign in
Add DomRenderHook instance for UnrunnableT
commitc81533f0456c97935011d6701aec5f8bbbac53b5 authorKen Micklas <kmicklas@gmail.com> dateFri 26 Apr 2019, 13:08 (7 years ago) parent8496638
1 file changed+5−1
reflex-dom-core/src/Reflex/Dom/Prerender.hs+5−1
reflex-dom-core/src/Reflex/Dom/Prerender.hs+5−1
@@ -197,7 +197,11 @@ instance PrimMonad (UnrunnableT js t m) where
197197-- type RawDocument (UnrunnableT js t m) = DOM.Document
198198--instance HasJSContext (UnrunnableT js t m)
199199--instance MonadJSM (UnrunnableT js t m)
200−instance Prerender JS' t (UnrunnableT js t m) where
200+instance Reflex t => DomRenderHook t (UnrunnableT js t m) where
201+ withRenderHook _ _ = UnrunnableT $ \case
202+ requestDomAction _ = UnrunnableT $ \case
203+ requestDomAction_ _ = UnrunnableT $ \case
204+instance Reflex t => Prerender JS' t (UnrunnableT js t m) where
201205 type Client (UnrunnableT js t m) = UnrunnableT js t m
202206 prerender _ _ = UnrunnableT $ \case
203207