úÎ0Ý,ù@      !"#$%&'()*+,-./0123456789:;<=>?Safe@@None69;ÿ<This provides a consistent way to safely convert from JSVal. The semantics is that if the return value is a Just, then the JSVal is not a null value. Also, Nothing is also returned for values out of range. They are not silently truncated. (Except for Float where there may be loss of precision) during conversion.»The reason for this class is because GHCJS.Marshal.fromJSVal and GHCJS.Marshal.pFromJSVal are not safe to use as it assumes that the JSVal are of the correct type and not null. (https:/ github.comghcjs ghcjs-base}issues/87). The safe way to convert from JSVal is to use JavaScript.Cast or to use the 'Maybe a' instance of FromJSVal, ie *fromJSVal :: JSVal -> IO (Maybe (Maybe a))©, which is a bit more awkward to use, and requires IO. Also, Javascript.Cast doesn't have much instances, and it hardcodes the instance detection method to javascript  isinstance3 which is not sufficient for complex types (https:/ github.comghcjs ghcjs-base issues/86).ÏIt is actually safe to convert from JSVal without IO because every JSVal is a copy of a value or reference. The copy never change, so the conversion will always convert to the same result/object every time.ÂThis provides a consistent way to convert to JSVal, with different semantics for Char. In the Char's instance of ToJS, it converts to a string instead of integer - IMHO this is less surprising.ÿThe other reason for this class is while GHCJS base provide both IsJSVal and PToJSVal to convert to jsval, some types are instances of one or the other class. This means you can't use the "Maybe a" instance of PToJSVal if it contains IsISJVal but not pToJSVal.hThis is a pure conversion, so instances must be able to convert the same or equivalent JSVal each time.3This will only succeed on a single character string% Char instance converts to string4ABCDEFGH  !"#$%&'()*+,2ABCDEFGH  !"#$%&'()*+,None-hWrapper to have a JSVal that also have an IString instance This is helpful when using OverloadedStrings -./012345678-./01 -.8765432/01 -./012345678None:Injection attack! Use with care9:9:99:None:<\get a property of any JSVal. If a null or undefined is queried, the result will also be null=set a property of any JSValI(throws an exception if undefined or nullJ(throws an exception if undefined or nullKžzip list of string and JSVal to object, lists must have been completely forced first Using the idea from JavaScript.Array.Internal.fromList h$fromHsListJSVal;<=>?IJK;<=>?;<=>?;<=>?IJKNone-./01;<=>?L      !"#$%&'()*+,-./01234456789:;<=>?@ABCDEFGHIJKLMNOPQR0javascript-extras-0.3.2.0-LrdrMhA7gIp2DnzQlFTXiQJavaScript.Extras.NumberJavaScript.Extras.CastJavaScript.Extras.JSVarJavaScript.Extras.JSVar.UnsafeJavaScript.Extras.PropertyJavaScript.ExtrasmaxSafeIntegerFromJSfromJSToJStoJS$fFromJSJSString $fFromJS[] $fFromJSText$fFromJSWord32$fFromJSWord16 $fFromJSWord8 $fFromJSWord $fFromJSInt32 $fFromJSInt16 $fFromJSInt8 $fFromJSInt $fFromJSFloat$fFromJSDouble $fFromJSChar $fFromJSBool$fFromJSObject$fFromJSSomeJSArray $fFromJSJSVal $fToJSMaybe$fToJSJSString$fToJS[] $fToJSText $fToJSWord32 $fToJSWord16 $fToJSWord8 $fToJSWord $fToJSInt32 $fToJSInt16 $fToJSInt8 $fToJSInt $fToJSFloat $fToJSDouble $fToJSChar $fToJSBool $fToJSObject$fToJSSomeJSArray$fToJSNullable $fToJSExport$fToJSCallback $fToJSJSValJSVartoJS'fromJS' js_stringify $fNFDataJSVar$fIsStringJSVar $fFromJSJSVar $fToJSJSVar$fPToJSValJSVar$fIsJSValJSVar $fShowJSVarjs_eval $fReadJSVarProperty getProperty setPropertyfromProperties toPropertiesjs_maxSafeIntegerjs_withinIntBoundsjs_withinInt8Boundsjs_withinInt16Boundsjs_withinInt32Boundsjs_withinWordBoundsjs_withinWord8Boundsjs_withinWord16Boundsjs_withinWord32Boundsjs_unsafeGetPropertyjs_unsafeSetPropertyjs_toJSObjectPure