ghcjs-base-stub-0.2.0.0: Allow GHCJS projects to compile under GHC and develop using intero.

Safe HaskellNone
LanguageHaskell2010

JavaScript.Cast

Synopsis

Documentation

class Cast a where #

Minimal complete definition

unsafeWrap, instanceRef

Methods

unsafeWrap :: JSVal -> a #

instanceRef :: a -> JSVal #

cast :: forall a. Cast a => JSVal -> Maybe a #

unsafeCast :: Cast a => JSVal -> a #

Don't ever run this in GHC - guaranteed segfault