Advertisement
Guest User

Untitled

a guest
Aug 10th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. instance FromJSVal Int where
  2.     fromJSValUnchecked = fromJSValUnchecked_pure
  3.     {-# INLINE fromJSValUnchecked #-}
  4.     fromJSVal = fromJSVal_pure
  5.  
  6. fromJSVal_pure :: PFromJSVal a => JSVal -> IO (Maybe a)
  7. fromJSVal_pure x = return (Just (pFromJSVal x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement