summaryrefslogtreecommitdiff
path: root/src/UI.purs
diff options
context:
space:
mode:
Diffstat (limited to 'src/UI.purs')
-rw-r--r--src/UI.purs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/UI.purs b/src/UI.purs
index 49d797a..17d1ca1 100644
--- a/src/UI.purs
+++ b/src/UI.purs
@@ -11,3 +11,7 @@ cheatLog x = liftEffect $ _cheatLog x
foreign import _setInterval :: Number -> Effect Unit -> Effect Unit
setInterval :: forall m. MonadEffect m => Number -> Effect Unit -> m Unit
setInterval d f = liftEffect $ _setInterval d f
+
+foreign import _toJSON :: forall a. a -> String
+toJSON :: forall a. a -> String
+toJSON = _toJSON