jsaddle-dom 0.4.1.0 → 0.5.0.0
raw patch · 515 files changed
+43584/−28675 lines, 515 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
This diff is very large; some files are shown as “too large to diff”. Download the raw patch for the complete diff.
Files
- jsaddle-dom.cabal +1/−1
- src/JSDOM/EventM.hs +4/−1
- src/JSDOM/Generated/ANGLEInstancedArrays.hs +16/−2
- src/JSDOM/Generated/AbstractView.hs +33/−3
- src/JSDOM/Generated/AbstractWorker.hs +15/−2
- src/JSDOM/Generated/AllAudioCapabilities.hs +25/−2
- src/JSDOM/Generated/AllVideoCapabilities.hs +55/−5
- src/JSDOM/Generated/AnalyserNode.hs +15/−2
- src/JSDOM/Generated/AnimationEvent.hs +16/−2
- src/JSDOM/Generated/ApplicationCache.hs +15/−1
- src/JSDOM/Generated/Attr.hs +42/−3
- src/JSDOM/Generated/AudioBuffer.hs +26/−3
- src/JSDOM/Generated/AudioBufferCallback.hs +14/−0
- src/JSDOM/Generated/AudioBufferSourceNode.hs +45/−5
- src/JSDOM/Generated/AudioContext.hs +300/−24
- src/JSDOM/Generated/AudioDestinationNode.hs +16/−2
- src/JSDOM/Generated/AudioListener.hs +16/−2
- src/JSDOM/Generated/AudioNode.hs +26/−3
- src/JSDOM/Generated/AudioParam.hs +15/−1
- src/JSDOM/Generated/AudioProcessingEvent.hs +34/−3
- src/JSDOM/Generated/AudioStreamTrack.hs +15/−2
- src/JSDOM/Generated/AudioTrack.hs +24/−2
- src/JSDOM/Generated/AudioTrackList.hs +36/−3
- src/JSDOM/Generated/AutocompleteErrorEvent.hs +15/−1
- src/JSDOM/Generated/BarProp.hs +15/−1
- src/JSDOM/Generated/BatteryManager.hs +15/−2
- src/JSDOM/Generated/BeforeLoadEvent.hs +15/−3
- src/JSDOM/Generated/BeforeUnloadEvent.hs +16/−2
- src/JSDOM/Generated/BiquadFilterNode.hs +50/−3
- src/JSDOM/Generated/Blob.hs +27/−2
- src/JSDOM/Generated/CSS.hs +15/−2
- src/JSDOM/Generated/CSSCharsetRule.hs +25/−2
- src/JSDOM/Generated/CSSFontFaceLoadEvent.hs +33/−2
- src/JSDOM/Generated/CSSFontFaceRule.hs +25/−2
- src/JSDOM/Generated/CSSImportRule.hs +43/−3
- src/JSDOM/Generated/CSSKeyframeRule.hs +25/−2
- src/JSDOM/Generated/CSSKeyframesRule.hs +53/−3
- src/JSDOM/Generated/CSSMediaRule.hs +33/−3
- src/JSDOM/Generated/CSSPageRule.hs +34/−3
- src/JSDOM/Generated/CSSPrimitiveValue.hs +42/−4
- src/JSDOM/Generated/CSSRule.hs +44/−4
- src/JSDOM/Generated/CSSRuleList.hs +24/−2
- src/JSDOM/Generated/CSSStyleDeclaration.hs +95/−8
- src/JSDOM/Generated/CSSStyleRule.hs +34/−3
- src/JSDOM/Generated/CSSStyleSheet.hs +42/−3
- src/JSDOM/Generated/CSSSupportsRule.hs +24/−2
- src/JSDOM/Generated/CSSValue.hs +25/−2
- src/JSDOM/Generated/CSSValueList.hs +26/−2
- src/JSDOM/Generated/CanvasGradient.hs +15/−3
- src/JSDOM/Generated/CanvasRenderingContext.hs +25/−2
- src/JSDOM/Generated/CanvasRenderingContext2D.hs +213/−29
- src/JSDOM/Generated/CapabilityRange.hs +16/−2
- src/JSDOM/Generated/CharacterData.hs +41/−4
- src/JSDOM/Generated/ChildNode.hs +15/−1
- src/JSDOM/Generated/ClientRect.hs +15/−1
- src/JSDOM/Generated/ClientRectList.hs +25/−2
- src/JSDOM/Generated/CloseEvent.hs +15/−2
- src/JSDOM/Generated/CommandLineAPIHost.hs +25/−2
- src/JSDOM/Generated/Comment.hs +15/−1
- src/JSDOM/Generated/CompositionEvent.hs +16/−2
- src/JSDOM/Generated/ConvolverNode.hs +24/−3
- src/JSDOM/Generated/Coordinates.hs +52/−4
- src/JSDOM/Generated/Counter.hs +15/−1
- src/JSDOM/Generated/Crypto.hs +34/−3
- src/JSDOM/Generated/CryptoKey.hs +24/−2
- src/JSDOM/Generated/CryptoKeyPair.hs +33/−3
- src/JSDOM/Generated/CustomEvent.hs +15/−2
- src/JSDOM/Generated/DOMError.hs +15/−2
- src/JSDOM/Generated/DOMImplementation.hs +68/−4
- src/JSDOM/Generated/DOMNamedFlowCollection.hs +35/−3
- src/JSDOM/Generated/DOMParser.hs +27/−1
- src/JSDOM/Generated/DOMSettableTokenList.hs +25/−3
- src/JSDOM/Generated/DOMStringList.hs +25/−2
- src/JSDOM/Generated/DOMTokenList.hs +28/−3
- src/JSDOM/Generated/DataCue.hs +25/−2
- src/JSDOM/Generated/DataTransfer.hs +42/−3
- src/JSDOM/Generated/DataTransferItem.hs +24/−2
- src/JSDOM/Generated/DataTransferItemList.hs +25/−3
- src/JSDOM/Generated/Database.hs +16/−2
- src/JSDOM/Generated/DatabaseCallback.hs +14/−0
- src/JSDOM/Generated/DedicatedWorkerGlobalScope.hs +16/−2
- src/JSDOM/Generated/DelayNode.hs +24/−2
- src/JSDOM/Generated/DeviceMotionEvent.hs +44/−4
- src/JSDOM/Generated/DeviceOrientationEvent.hs +15/−1
- src/JSDOM/Generated/DeviceProximityEvent.hs +16/−2
- src/JSDOM/Generated/Document.hs +790/−71
- src/JSDOM/Generated/DocumentFragment.hs +37/−3
- src/JSDOM/Generated/DocumentType.hs +63/−5
- src/JSDOM/Generated/DynamicsCompressorNode.hs +74/−4
- src/JSDOM/Generated/EXTBlendMinMax.hs +16/−2
- src/JSDOM/Generated/EXTTextureFilterAnisotropic.hs +15/−2
- src/JSDOM/Generated/EXTsRGB.hs +16/−2
- src/JSDOM/Generated/Element.hs +302/−30
- src/JSDOM/Generated/Entity.hs +45/−3
- src/JSDOM/Generated/Enums.hs +14/−0
- src/JSDOM/Generated/ErrorEvent.hs +16/−2
- src/JSDOM/Generated/Event.hs +53/−6
- src/JSDOM/Generated/EventListener.hs +15/−3
- src/JSDOM/Generated/EventSource.hs +15/−1
- src/JSDOM/Generated/EventTarget.hs +16/−2
- src/JSDOM/Generated/File.hs +24/−2
- src/JSDOM/Generated/FileError.hs +15/−2
- src/JSDOM/Generated/FileList.hs +23/−1
- src/JSDOM/Generated/FileReader.hs +25/−3
- src/JSDOM/Generated/FileReaderSync.hs +26/−3
- src/JSDOM/Generated/FocusEvent.hs +24/−2
- src/JSDOM/Generated/FontLoader.hs +16/−2
- src/JSDOM/Generated/FormData.hs +15/−2
- src/JSDOM/Generated/GainNode.hs +23/−1
- src/JSDOM/Generated/Gamepad.hs +15/−1
- src/JSDOM/Generated/GamepadButton.hs +15/−3
- src/JSDOM/Generated/GamepadEvent.hs +24/−2
- src/JSDOM/Generated/Geolocation.hs +15/−1
- src/JSDOM/Generated/Geoposition.hs +24/−2
- src/JSDOM/Generated/HTMLAllCollection.hs +44/−3
- src/JSDOM/Generated/HTMLAnchorElement.hs +103/−8
- src/JSDOM/Generated/HTMLAppletElement.hs +16/−2
- src/JSDOM/Generated/HTMLAreaElement.hs +24/−2
- src/JSDOM/Generated/HTMLBRElement.hs +15/−3
- src/JSDOM/Generated/HTMLBaseElement.hs +25/−2
- src/JSDOM/Generated/HTMLBaseFontElement.hs +15/−2
- src/JSDOM/Generated/HTMLBodyElement.hs +15/−1
- src/JSDOM/Generated/HTMLButtonElement.hs +73/−5
- src/JSDOM/Generated/HTMLCanvasElement.hs +16/−2
- src/JSDOM/Generated/HTMLCollection.hs +38/−4
- src/JSDOM/Generated/HTMLDListElement.hs +15/−1
- src/JSDOM/Generated/HTMLDataListElement.hs +25/−2
- src/JSDOM/Generated/HTMLDetailsElement.hs +15/−2
- src/JSDOM/Generated/HTMLDirectoryElement.hs +16/−2
- src/JSDOM/Generated/HTMLDivElement.hs +15/−3
- src/JSDOM/Generated/HTMLDocument.hs +120/−8
- src/JSDOM/Generated/HTMLElement.hs +78/−10
- src/JSDOM/Generated/HTMLEmbedElement.hs +26/−4
- src/JSDOM/Generated/HTMLFieldSetElement.hs +46/−4
- src/JSDOM/Generated/HTMLFontElement.hs +15/−1
- src/JSDOM/Generated/HTMLFormControlsCollection.hs +35/−3
- src/JSDOM/Generated/HTMLFormElement.hs +78/−11
- src/JSDOM/Generated/HTMLFrameElement.hs +56/−8
- src/JSDOM/Generated/HTMLFrameSetElement.hs +16/−2
- src/JSDOM/Generated/HTMLHRElement.hs +15/−2
- src/JSDOM/Generated/HTMLHeadElement.hs +15/−2
- src/JSDOM/Generated/HTMLHeadingElement.hs +15/−1
- src/JSDOM/Generated/HTMLHtmlElement.hs +16/−2
- src/JSDOM/Generated/HTMLIFrameElement.hs +47/−8
- src/JSDOM/Generated/HTMLImageElement.hs +16/−2
- src/JSDOM/Generated/HTMLInputElement.hs +131/−21
- src/JSDOM/Generated/HTMLKeygenElement.hs +44/−5
- src/JSDOM/Generated/HTMLLIElement.hs +16/−2
- src/JSDOM/Generated/HTMLLabelElement.hs +33/−3
- src/JSDOM/Generated/HTMLLegendElement.hs +25/−2
- src/JSDOM/Generated/HTMLLinkElement.hs +44/−4
- src/JSDOM/Generated/HTMLMapElement.hs +24/−2
- src/JSDOM/Generated/HTMLMarqueeElement.hs +16/−2
- src/JSDOM/Generated/HTMLMediaElement.hs +168/−27
- src/JSDOM/Generated/HTMLMenuElement.hs +15/−2
- src/JSDOM/Generated/HTMLMetaElement.hs +16/−2
- src/JSDOM/Generated/HTMLMeterElement.hs +23/−1
- src/JSDOM/Generated/HTMLModElement.hs +16/−2
- src/JSDOM/Generated/HTMLOListElement.hs +16/−2
- src/JSDOM/Generated/HTMLObjectElement.hs +58/−10
- src/JSDOM/Generated/HTMLOptGroupElement.hs +16/−2
- src/JSDOM/Generated/HTMLOptionElement.hs +28/−4
- src/JSDOM/Generated/HTMLOptionsCollection.hs +26/−3
- src/JSDOM/Generated/HTMLOutputElement.hs +74/−6
- src/JSDOM/Generated/HTMLParagraphElement.hs +16/−2
- src/JSDOM/Generated/HTMLParamElement.hs +16/−2
- src/JSDOM/Generated/HTMLPreElement.hs +16/−2
- src/JSDOM/Generated/HTMLProgressElement.hs +23/−1
- src/JSDOM/Generated/HTMLQuoteElement.hs +15/−2
- src/JSDOM/Generated/HTMLScriptElement.hs +27/−4
- src/JSDOM/Generated/HTMLSelectElement.hs +94/−10
- src/JSDOM/Generated/HTMLSourceElement.hs +15/−1
- src/JSDOM/Generated/HTMLStyleElement.hs +24/−2
- src/JSDOM/Generated/HTMLTableCaptionElement.hs +16/−2
- src/JSDOM/Generated/HTMLTableCellElement.hs +15/−2
- src/JSDOM/Generated/HTMLTableColElement.hs +15/−2
- src/JSDOM/Generated/HTMLTableElement.hs +112/−10
- src/JSDOM/Generated/HTMLTableRowElement.hs +37/−5
- src/JSDOM/Generated/HTMLTableSectionElement.hs +36/−4
- src/JSDOM/Generated/HTMLTemplateElement.hs +25/−2
- src/JSDOM/Generated/HTMLTextAreaElement.hs +80/−12
- src/JSDOM/Generated/HTMLTitleElement.hs +25/−2
- src/JSDOM/Generated/HTMLTrackElement.hs +23/−1
- src/JSDOM/Generated/HTMLUListElement.hs +16/−2
- src/JSDOM/Generated/HTMLVideoElement.hs +16/−2
- src/JSDOM/Generated/HashChangeEvent.hs +16/−2
- src/JSDOM/Generated/History.hs +23/−1
- src/JSDOM/Generated/IDBCursor.hs +46/−4
- src/JSDOM/Generated/IDBCursorWithValue.hs +15/−3
- src/JSDOM/Generated/IDBDatabase.hs +64/−6
- src/JSDOM/Generated/IDBFactory.hs +36/−3
- src/JSDOM/Generated/IDBIndex.hs +136/−10
- src/JSDOM/Generated/IDBKeyRange.hs +59/−4
- src/JSDOM/Generated/IDBObjectStore.hs +197/−12
- src/JSDOM/Generated/IDBOpenDBRequest.hs +15/−1
- src/JSDOM/Generated/IDBRequest.hs +52/−4
- src/JSDOM/Generated/IDBTransaction.hs +43/−3
- src/JSDOM/Generated/IDBVersionChangeEvent.hs +24/−2
- src/JSDOM/Generated/ImageData.hs +16/−2
- src/JSDOM/Generated/InspectorFrontendHost.hs +16/−2
- src/JSDOM/Generated/InternalSettings.hs +15/−1
- src/JSDOM/Generated/Internals.hs +316/−50
- src/JSDOM/Generated/KeyboardEvent.hs +15/−2
- src/JSDOM/Generated/Location.hs +24/−2
- src/JSDOM/Generated/MallocStatistics.hs +15/−1
- src/JSDOM/Generated/MediaController.hs +45/−6
- src/JSDOM/Generated/MediaControlsHost.hs +47/−7
- src/JSDOM/Generated/MediaElementAudioSourceNode.hs +25/−3
- src/JSDOM/Generated/MediaError.hs +15/−1
- src/JSDOM/Generated/MediaKeyError.hs +15/−2
- src/JSDOM/Generated/MediaKeyEvent.hs +43/−4
- src/JSDOM/Generated/MediaKeyMessageEvent.hs +24/−2
- src/JSDOM/Generated/MediaKeyNeededEvent.hs +24/−2
- src/JSDOM/Generated/MediaKeySession.hs +25/−3
- src/JSDOM/Generated/MediaKeys.hs +27/−2
- src/JSDOM/Generated/MediaList.hs +35/−3
- src/JSDOM/Generated/MediaQueryList.hs +16/−2
- src/JSDOM/Generated/MediaQueryListListener.hs +14/−0
- src/JSDOM/Generated/MediaSource.hs +45/−4
- src/JSDOM/Generated/MediaSourceStates.hs +70/−5
- src/JSDOM/Generated/MediaStream.hs +34/−3
- src/JSDOM/Generated/MediaStreamAudioDestinationNode.hs +25/−2
- src/JSDOM/Generated/MediaStreamAudioSourceNode.hs +25/−3
- src/JSDOM/Generated/MediaStreamEvent.hs +24/−2
- src/JSDOM/Generated/MediaStreamTrack.hs +60/−7
- src/JSDOM/Generated/MediaStreamTrackEvent.hs +25/−2
- src/JSDOM/Generated/MediaStreamTrackSourcesCallback.hs +14/−0
- src/JSDOM/Generated/MediaTrackConstraints.hs +25/−3
- src/JSDOM/Generated/MemoryInfo.hs +16/−2
- src/JSDOM/Generated/MessageChannel.hs +32/−2
- src/JSDOM/Generated/MessageEvent.hs +24/−2
- src/JSDOM/Generated/MessagePort.hs +16/−2
- src/JSDOM/Generated/MimeType.hs +24/−1
- src/JSDOM/Generated/MimeTypeArray.hs +33/−2
- src/JSDOM/Generated/MouseEvent.hs +55/−5
- src/JSDOM/Generated/MutationEvent.hs +25/−3
- src/JSDOM/Generated/MutationObserver.hs +15/−2
- src/JSDOM/Generated/MutationRecord.hs +90/−6
- src/JSDOM/Generated/NamedNodeMap.hs +91/−7
- src/JSDOM/Generated/Navigator.hs +73/−8
- src/JSDOM/Generated/NavigatorUserMediaError.hs +16/−2
- src/JSDOM/Generated/NavigatorUserMediaErrorCallback.hs +14/−0
- src/JSDOM/Generated/NavigatorUserMediaSuccessCallback.hs +14/−0
- src/JSDOM/Generated/Node.hs +249/−28
- src/JSDOM/Generated/NodeFilter.hs +15/−2
- src/JSDOM/Generated/NodeIterator.hs +61/−6
- src/JSDOM/Generated/NodeList.hs +24/−1
- src/JSDOM/Generated/Notification.hs +16/−2
- src/JSDOM/Generated/NotificationCenter.hs +28/−3
- src/JSDOM/Generated/NotificationPermissionCallback.hs +14/−0
- src/JSDOM/Generated/OESStandardDerivatives.hs +15/−2
- src/JSDOM/Generated/OESTextureHalfFloat.hs +16/−2
- src/JSDOM/Generated/OESVertexArrayObject.hs +27/−4
- src/JSDOM/Generated/OfflineAudioCompletionEvent.hs +25/−2
- src/JSDOM/Generated/OfflineAudioContext.hs +16/−2
- src/JSDOM/Generated/OscillatorNode.hs +33/−3
- src/JSDOM/Generated/OverflowEvent.hs +16/−2
- src/JSDOM/Generated/PageTransitionEvent.hs +15/−2
- src/JSDOM/Generated/PannerNode.hs +16/−2
- src/JSDOM/Generated/Path2D.hs +16/−2
- src/JSDOM/Generated/Performance.hs +71/−8
- src/JSDOM/Generated/PerformanceEntry.hs +16/−2
- src/JSDOM/Generated/PerformanceEntryList.hs +25/−2
- src/JSDOM/Generated/PerformanceNavigation.hs +16/−2
- src/JSDOM/Generated/PerformanceResourceTiming.hs +16/−2
- src/JSDOM/Generated/PerformanceTiming.hs +15/−1
- src/JSDOM/Generated/Plugin.hs +34/−3
- src/JSDOM/Generated/PluginArray.hs +34/−3
- src/JSDOM/Generated/PopStateEvent.hs +15/−2
- src/JSDOM/Generated/PositionCallback.hs +14/−0
- src/JSDOM/Generated/PositionError.hs +16/−2
- src/JSDOM/Generated/PositionErrorCallback.hs +14/−0
- src/JSDOM/Generated/ProcessingInstruction.hs +33/−2
- src/JSDOM/Generated/ProgressEvent.hs +16/−3
- src/JSDOM/Generated/QuickTimePluginReplacement.hs +16/−2
- src/JSDOM/Generated/RGBColor.hs +41/−2
- src/JSDOM/Generated/RTCConfiguration.hs +15/−1
- src/JSDOM/Generated/RTCDTMFSender.hs +25/−3
- src/JSDOM/Generated/RTCDTMFToneChangeEvent.hs +15/−2
- src/JSDOM/Generated/RTCDataChannel.hs +15/−1
- src/JSDOM/Generated/RTCDataChannelEvent.hs +25/−2
- src/JSDOM/Generated/RTCIceCandidate.hs +15/−1
- src/JSDOM/Generated/RTCIceCandidateEvent.hs +25/−2
- src/JSDOM/Generated/RTCIceServer.hs +16/−2
- src/JSDOM/Generated/RTCPeerConnection.hs +81/−7
- src/JSDOM/Generated/RTCPeerConnectionErrorCallback.hs +14/−0
- src/JSDOM/Generated/RTCSessionDescription.hs +15/−2
- src/JSDOM/Generated/RTCSessionDescriptionCallback.hs +14/−0
- src/JSDOM/Generated/RTCStatsCallback.hs +14/−0
- src/JSDOM/Generated/RTCStatsReport.hs +42/−4
- src/JSDOM/Generated/RTCStatsResponse.hs +25/−2
- src/JSDOM/Generated/RadioNodeList.hs +24/−2
- src/JSDOM/Generated/Range.hs +107/−16
- src/JSDOM/Generated/ReadableStream.hs +73/−5
- src/JSDOM/Generated/Rect.hs +49/−3
- src/JSDOM/Generated/RequestAnimationFrameCallback.hs +14/−0
- src/JSDOM/Generated/SQLError.hs +15/−1
- src/JSDOM/Generated/SQLResultSet.hs +24/−2
- src/JSDOM/Generated/SQLResultSetRowList.hs +16/−2
- src/JSDOM/Generated/SQLStatementCallback.hs +14/−0
- src/JSDOM/Generated/SQLStatementErrorCallback.hs +14/−0
- src/JSDOM/Generated/SQLTransaction.hs +15/−3
- src/JSDOM/Generated/SQLTransactionCallback.hs +14/−0
- src/JSDOM/Generated/SQLTransactionErrorCallback.hs +14/−0
- src/JSDOM/Generated/SVGAElement.hs +23/−1
- src/JSDOM/Generated/SVGAltGlyphElement.hs +15/−2
- src/JSDOM/Generated/SVGAngle.hs +25/−2
- src/JSDOM/Generated/SVGAnimatedAngle.hs +33/−2
- src/JSDOM/Generated/SVGAnimatedBoolean.hs +16/−2
- src/JSDOM/Generated/SVGAnimatedEnumeration.hs +16/−2
- src/JSDOM/Generated/SVGAnimatedInteger.hs +16/−2
- src/JSDOM/Generated/SVGAnimatedLength.hs +33/−2
- src/JSDOM/Generated/SVGAnimatedLengthList.hs +34/−2
- src/JSDOM/Generated/SVGAnimatedNumber.hs +16/−2
- src/JSDOM/Generated/SVGAnimatedNumberList.hs +34/−2
- src/JSDOM/Generated/SVGAnimatedPreserveAspectRatio.hs +35/−3
- src/JSDOM/Generated/SVGAnimatedRect.hs +33/−2
- src/JSDOM/Generated/SVGAnimatedString.hs +16/−2
- src/JSDOM/Generated/SVGAnimatedTransformList.hs +35/−3
- src/JSDOM/Generated/SVGAnimationElement.hs +26/−2
- src/JSDOM/Generated/SVGCircleElement.hs +44/−2
- src/JSDOM/Generated/SVGClipPathElement.hs +26/−2
- src/JSDOM/Generated/SVGColor.hs +24/−2
- src/JSDOM/Generated/SVGComponentTransferFunctionElement.hs +100/−7
- src/JSDOM/Generated/SVGCursorElement.hs +34/−2
- src/JSDOM/Generated/SVGDocument.hs +34/−3
- src/JSDOM/Generated/SVGElement.hs +79/−6
- src/JSDOM/Generated/SVGEllipseElement.hs +54/−3
- src/JSDOM/Generated/SVGExternalResourcesRequired.hs +25/−2
- src/JSDOM/Generated/SVGFEBlendElement.hs +44/−3
- src/JSDOM/Generated/SVGFEColorMatrixElement.hs +44/−3
- src/JSDOM/Generated/SVGFEComponentTransferElement.hs +25/−2
- src/JSDOM/Generated/SVGFECompositeElement.hs +83/−5
- src/JSDOM/Generated/SVGFEConvolveMatrixElement.hs +134/−8
- src/JSDOM/Generated/SVGFEDiffuseLightingElement.hs +65/−5
- src/JSDOM/Generated/SVGFEDisplacementMapElement.hs +64/−5
- src/JSDOM/Generated/SVGFEDistantLightElement.hs +35/−3
- src/JSDOM/Generated/SVGFEDropShadowElement.hs +65/−5
- src/JSDOM/Generated/SVGFEGaussianBlurElement.hs +56/−5
- src/JSDOM/Generated/SVGFEImageElement.hs +26/−2
- src/JSDOM/Generated/SVGFEMergeNodeElement.hs +25/−2
- src/JSDOM/Generated/SVGFEMorphologyElement.hs +56/−4
- src/JSDOM/Generated/SVGFEOffsetElement.hs +44/−3
- src/JSDOM/Generated/SVGFEPointLightElement.hs +43/−2
- src/JSDOM/Generated/SVGFESpecularLightingElement.hs +55/−4
- src/JSDOM/Generated/SVGFESpotLightElement.hs +94/−6
- src/JSDOM/Generated/SVGFETileElement.hs +24/−1
- src/JSDOM/Generated/SVGFETurbulenceElement.hs +75/−5
- src/JSDOM/Generated/SVGFilterElement.hs +95/−6
- src/JSDOM/Generated/SVGFilterPrimitiveStandardAttributes.hs +63/−4
- src/JSDOM/Generated/SVGFitToViewBox.hs +35/−3
- src/JSDOM/Generated/SVGForeignObjectElement.hs +53/−3
- src/JSDOM/Generated/SVGGlyphRefElement.hs +16/−2
- src/JSDOM/Generated/SVGGradientElement.hs +48/−4
- src/JSDOM/Generated/SVGGraphicsElement.hs +94/−8
- src/JSDOM/Generated/SVGImageElement.hs +64/−4
- src/JSDOM/Generated/SVGLength.hs +25/−2
- src/JSDOM/Generated/SVGLengthList.hs +76/−6
- src/JSDOM/Generated/SVGLineElement.hs +50/−3
- src/JSDOM/Generated/SVGLinearGradientElement.hs +54/−3
- src/JSDOM/Generated/SVGMarkerElement.hs +85/−6
- src/JSDOM/Generated/SVGMaskElement.hs +70/−5
- src/JSDOM/Generated/SVGMatrix.hs +121/−9
- src/JSDOM/Generated/SVGNumber.hs +15/−2
- src/JSDOM/Generated/SVGNumberList.hs +76/−6
- src/JSDOM/Generated/SVGPaint.hs +16/−2
- src/JSDOM/Generated/SVGPathElement.hs +339/−14
- src/JSDOM/Generated/SVGPathSeg.hs +16/−2
- src/JSDOM/Generated/SVGPathSegArcAbs.hs +15/−2
- src/JSDOM/Generated/SVGPathSegArcRel.hs +15/−2
- src/JSDOM/Generated/SVGPathSegCurvetoCubicAbs.hs +16/−2
- src/JSDOM/Generated/SVGPathSegCurvetoCubicRel.hs +16/−2
- src/JSDOM/Generated/SVGPathSegCurvetoCubicSmoothAbs.hs +15/−2
- src/JSDOM/Generated/SVGPathSegCurvetoCubicSmoothRel.hs +15/−2
- src/JSDOM/Generated/SVGPathSegCurvetoQuadraticAbs.hs +15/−1
- src/JSDOM/Generated/SVGPathSegCurvetoQuadraticRel.hs +15/−1
- src/JSDOM/Generated/SVGPathSegCurvetoQuadraticSmoothAbs.hs +15/−2
- src/JSDOM/Generated/SVGPathSegCurvetoQuadraticSmoothRel.hs +15/−2
- src/JSDOM/Generated/SVGPathSegLinetoAbs.hs +16/−2
- src/JSDOM/Generated/SVGPathSegLinetoHorizontalAbs.hs +15/−2
- src/JSDOM/Generated/SVGPathSegLinetoHorizontalRel.hs +15/−2
- src/JSDOM/Generated/SVGPathSegLinetoRel.hs +16/−2
- src/JSDOM/Generated/SVGPathSegLinetoVerticalAbs.hs +15/−2
- src/JSDOM/Generated/SVGPathSegLinetoVerticalRel.hs +15/−2
- src/JSDOM/Generated/SVGPathSegList.hs +78/−6
- src/JSDOM/Generated/SVGPathSegMovetoAbs.hs +16/−2
- src/JSDOM/Generated/SVGPathSegMovetoRel.hs +16/−2
- src/JSDOM/Generated/SVGPatternElement.hs +83/−4
- src/JSDOM/Generated/SVGPoint.hs +26/−2
- src/JSDOM/Generated/SVGPointList.hs +76/−6
- src/JSDOM/Generated/SVGPolygonElement.hs +33/−3
- src/JSDOM/Generated/SVGPolylineElement.hs +33/−3
- src/JSDOM/Generated/SVGPreserveAspectRatio.hs +16/−2
- src/JSDOM/Generated/SVGRadialGradientElement.hs +73/−4
- src/JSDOM/Generated/SVGRect.hs +15/−1
- src/JSDOM/Generated/SVGRectElement.hs +67/−4
- src/JSDOM/Generated/SVGRenderingIntent.hs +16/−2
- src/JSDOM/Generated/SVGSVGElement.hs +194/−18
- src/JSDOM/Generated/SVGScriptElement.hs +25/−2
- src/JSDOM/Generated/SVGStopElement.hs +24/−2
- src/JSDOM/Generated/SVGStringList.hs too large to diff
- src/JSDOM/Generated/SVGStyleElement.hs too large to diff
- src/JSDOM/Generated/SVGTests.hs too large to diff
- src/JSDOM/Generated/SVGTextContentElement.hs too large to diff
- src/JSDOM/Generated/SVGTextPathElement.hs too large to diff
- src/JSDOM/Generated/SVGTextPositioningElement.hs too large to diff
- src/JSDOM/Generated/SVGTransform.hs too large to diff
- src/JSDOM/Generated/SVGTransformList.hs too large to diff
- src/JSDOM/Generated/SVGURIReference.hs too large to diff
- src/JSDOM/Generated/SVGUnitTypes.hs too large to diff
- src/JSDOM/Generated/SVGUseElement.hs too large to diff
- src/JSDOM/Generated/SVGViewElement.hs too large to diff
- src/JSDOM/Generated/SVGViewSpec.hs too large to diff
- src/JSDOM/Generated/SVGZoomAndPan.hs too large to diff
- src/JSDOM/Generated/SVGZoomEvent.hs too large to diff
- src/JSDOM/Generated/Screen.hs too large to diff
- src/JSDOM/Generated/ScriptProcessorNode.hs too large to diff
- src/JSDOM/Generated/ScriptProfile.hs too large to diff
- src/JSDOM/Generated/ScriptProfileNode.hs too large to diff
- src/JSDOM/Generated/SecurityPolicy.hs too large to diff
- src/JSDOM/Generated/SecurityPolicyViolationEvent.hs too large to diff
- src/JSDOM/Generated/Selection.hs too large to diff
- src/JSDOM/Generated/SourceBuffer.hs too large to diff
- src/JSDOM/Generated/SourceBufferList.hs too large to diff
- src/JSDOM/Generated/SourceInfo.hs too large to diff
- src/JSDOM/Generated/SpeechSynthesis.hs too large to diff
- src/JSDOM/Generated/SpeechSynthesisEvent.hs too large to diff
- src/JSDOM/Generated/SpeechSynthesisUtterance.hs too large to diff
- src/JSDOM/Generated/SpeechSynthesisVoice.hs too large to diff
- src/JSDOM/Generated/Storage.hs too large to diff
- src/JSDOM/Generated/StorageErrorCallback.hs too large to diff
- src/JSDOM/Generated/StorageEvent.hs too large to diff
- src/JSDOM/Generated/StorageInfo.hs too large to diff
- src/JSDOM/Generated/StorageQuota.hs too large to diff
- src/JSDOM/Generated/StorageQuotaCallback.hs too large to diff
- src/JSDOM/Generated/StorageUsageCallback.hs too large to diff
- src/JSDOM/Generated/StringCallback.hs too large to diff
- src/JSDOM/Generated/StyleMedia.hs too large to diff
- src/JSDOM/Generated/StyleSheet.hs too large to diff
- src/JSDOM/Generated/StyleSheetList.hs too large to diff
- src/JSDOM/Generated/SubtleCrypto.hs too large to diff
- src/JSDOM/Generated/Text.hs too large to diff
- src/JSDOM/Generated/TextEvent.hs too large to diff
- src/JSDOM/Generated/TextMetrics.hs too large to diff
- src/JSDOM/Generated/TextTrack.hs too large to diff
- src/JSDOM/Generated/TextTrackCue.hs too large to diff
- src/JSDOM/Generated/TextTrackCueList.hs too large to diff
- src/JSDOM/Generated/TextTrackList.hs too large to diff
- src/JSDOM/Generated/TimeRanges.hs too large to diff
- src/JSDOM/Generated/Touch.hs too large to diff
- src/JSDOM/Generated/TouchEvent.hs too large to diff
- src/JSDOM/Generated/TouchList.hs too large to diff
- src/JSDOM/Generated/TrackEvent.hs too large to diff
- src/JSDOM/Generated/TransitionEvent.hs too large to diff
- src/JSDOM/Generated/TreeWalker.hs too large to diff
- src/JSDOM/Generated/TypeConversions.hs too large to diff
- src/JSDOM/Generated/UIEvent.hs too large to diff
- src/JSDOM/Generated/UIRequestEvent.hs too large to diff
- src/JSDOM/Generated/URL.hs too large to diff
- src/JSDOM/Generated/URLUtils.hs too large to diff
- src/JSDOM/Generated/UserMessageHandler.hs too large to diff
- src/JSDOM/Generated/VTTCue.hs too large to diff
- src/JSDOM/Generated/VTTRegion.hs too large to diff
- src/JSDOM/Generated/VTTRegionList.hs too large to diff
- src/JSDOM/Generated/ValidityState.hs too large to diff
- src/JSDOM/Generated/VideoPlaybackQuality.hs too large to diff
- src/JSDOM/Generated/VideoStreamTrack.hs too large to diff
- src/JSDOM/Generated/VideoTrack.hs too large to diff
- src/JSDOM/Generated/VideoTrackList.hs too large to diff
- src/JSDOM/Generated/VoidCallback.hs too large to diff
- src/JSDOM/Generated/WaveShaperNode.hs too large to diff
- src/JSDOM/Generated/WebGL2RenderingContext.hs too large to diff
- src/JSDOM/Generated/WebGLActiveInfo.hs too large to diff
- src/JSDOM/Generated/WebGLCompressedTextureATC.hs too large to diff
- src/JSDOM/Generated/WebGLCompressedTexturePVRTC.hs too large to diff
- src/JSDOM/Generated/WebGLCompressedTextureS3TC.hs too large to diff
- src/JSDOM/Generated/WebGLContextAttributes.hs too large to diff
- src/JSDOM/Generated/WebGLContextEvent.hs too large to diff
- src/JSDOM/Generated/WebGLDebugRendererInfo.hs too large to diff
- src/JSDOM/Generated/WebGLDebugShaders.hs too large to diff
- src/JSDOM/Generated/WebGLDepthTexture.hs too large to diff
- src/JSDOM/Generated/WebGLDrawBuffers.hs too large to diff
- src/JSDOM/Generated/WebGLLoseContext.hs too large to diff
- src/JSDOM/Generated/WebGLRenderingContextBase.hs too large to diff
- src/JSDOM/Generated/WebGLShaderPrecisionFormat.hs too large to diff
- src/JSDOM/Generated/WebKitAnimationEvent.hs too large to diff
- src/JSDOM/Generated/WebKitCSSFilterValue.hs too large to diff
- src/JSDOM/Generated/WebKitCSSMatrix.hs too large to diff
- src/JSDOM/Generated/WebKitCSSRegionRule.hs too large to diff
- src/JSDOM/Generated/WebKitCSSTransformValue.hs too large to diff
- src/JSDOM/Generated/WebKitCSSViewportRule.hs too large to diff
- src/JSDOM/Generated/WebKitNamedFlow.hs too large to diff
- src/JSDOM/Generated/WebKitNamespace.hs too large to diff
- src/JSDOM/Generated/WebKitPlaybackTargetAvailabilityEvent.hs too large to diff
- src/JSDOM/Generated/WebKitPoint.hs too large to diff
- src/JSDOM/Generated/WebKitTransitionEvent.hs too large to diff
- src/JSDOM/Generated/WebSocket.hs too large to diff
- src/JSDOM/Generated/WheelEvent.hs too large to diff
- src/JSDOM/Generated/Window.hs too large to diff
- src/JSDOM/Generated/WindowBase64.hs too large to diff
- src/JSDOM/Generated/WindowTimers.hs too large to diff
- src/JSDOM/Generated/Worker.hs too large to diff
- src/JSDOM/Generated/WorkerGlobalScope.hs too large to diff
- src/JSDOM/Generated/WorkerLocation.hs too large to diff
- src/JSDOM/Generated/WorkerNavigator.hs too large to diff
- src/JSDOM/Generated/XMLHttpRequest.hs too large to diff
- src/JSDOM/Generated/XMLHttpRequestProgressEvent.hs too large to diff
- src/JSDOM/Generated/XMLHttpRequestUpload.hs too large to diff
- src/JSDOM/Generated/XMLSerializer.hs too large to diff
- src/JSDOM/Generated/XPathEvaluator.hs too large to diff
- src/JSDOM/Generated/XPathExpression.hs too large to diff
- src/JSDOM/Generated/XPathNSResolver.hs too large to diff
- src/JSDOM/Generated/XPathResult.hs too large to diff
- src/JSDOM/Generated/XSLTProcessor.hs too large to diff
- src/JSDOM/Types.hs too large to diff
@@ -1,5 +1,5 @@ name: jsaddle-dom-version: 0.4.1.0+version: 0.5.0.0 cabal-version: >=1.22 build-type: Simple license: MIT
@@ -66,6 +66,7 @@ ) where import Control.Applicative ((<$>))+import Control.Monad (join) import Control.Monad.Trans.Class (MonadTrans(..)) import Control.Monad.Trans.Reader (ReaderT, ask, runReaderT) import JSDOM.Types@@ -76,6 +77,8 @@ import JSDOM.EventTargetClosures import Data.Word (Word) import Data.Foldable (forM_)+import Data.Traversable (mapM)+import Data.Coerce (coerce) type EventM t e = ReaderT e DOM @@ -126,7 +129,7 @@ eventTarget = event >>= (lift . Event.getTarget) target :: (IsEvent e, IsGObject t) => EventM t e (Maybe t)-target = fmap (unsafeCastGObject . toGObject) <$> eventTarget+target = eventTarget >>= mapM (liftJSM . fromJSValUnchecked . coerce) eventCurrentTarget :: IsEvent e => EventM t e (Maybe EventTarget) eventCurrentTarget = event >>= (lift . Event.getCurrentTarget)
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.ANGLEInstancedArrays (drawArraysInstancedANGLE, drawElementsInstancedANGLE, vertexAttribDivisorANGLE,- pattern VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE, ANGLEInstancedArrays,- castToANGLEInstancedArrays, gTypeANGLEInstancedArrays)+ pattern VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE,+ ANGLEInstancedArrays(..), gTypeANGLEInstancedArrays) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/ANGLEInstancedArrays.drawArraysInstancedANGLE Mozilla ANGLEInstancedArrays.drawArraysInstancedANGLE documentation> drawArraysInstancedANGLE ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.AbstractView- (getDocument, getDocumentUnchecked, getStyleMedia,- getStyleMediaUnchecked, AbstractView, castToAbstractView,- gTypeAbstractView)+ (getDocument, getDocumentUnsafe, getDocumentUnchecked,+ getStyleMedia, getStyleMediaUnsafe, getStyleMediaUnchecked,+ AbstractView(..), gTypeAbstractView) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,12 +20,30 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/AbstractView.document Mozilla AbstractView.document documentation> getDocument :: (MonadDOM m) => AbstractView -> m (Maybe Document) getDocument self = liftDOM ((self ^. js "document") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AbstractView.document Mozilla AbstractView.document documentation> +getDocumentUnsafe ::+ (MonadDOM m, HasCallStack) => AbstractView -> m Document+getDocumentUnsafe self+ = liftDOM+ (((self ^. js "document") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AbstractView.document Mozilla AbstractView.document documentation> getDocumentUnchecked :: (MonadDOM m) => AbstractView -> m Document getDocumentUnchecked self = liftDOM ((self ^. js "document") >>= fromJSValUnchecked)@@ -31,6 +53,14 @@ (MonadDOM m) => AbstractView -> m (Maybe StyleMedia) getStyleMedia self = liftDOM ((self ^. js "styleMedia") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AbstractView.styleMedia Mozilla AbstractView.styleMedia documentation> +getStyleMediaUnsafe ::+ (MonadDOM m, HasCallStack) => AbstractView -> m StyleMedia+getStyleMediaUnsafe self+ = liftDOM+ (((self ^. js "styleMedia") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AbstractView.styleMedia Mozilla AbstractView.styleMedia documentation> getStyleMediaUnchecked ::
@@ -1,9 +1,12 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.AbstractWorker- (error, AbstractWorker, castToAbstractWorker, gTypeAbstractWorker)- where+ (error, AbstractWorker(..), gTypeAbstractWorker) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -14,6 +17,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/AbstractWorker.onerror Mozilla AbstractWorker.onerror documentation> error :: EventName AbstractWorker UIEvent
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.AllAudioCapabilities- (getSourceId, getVolume, getVolumeUnchecked, AllAudioCapabilities,- castToAllAudioCapabilities, gTypeAllAudioCapabilities)+ (getSourceId, getVolume, getVolumeUnsafe, getVolumeUnchecked,+ AllAudioCapabilities(..), gTypeAllAudioCapabilities) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/AllAudioCapabilities.sourceId Mozilla AllAudioCapabilities.sourceId documentation> getSourceId ::@@ -27,6 +41,15 @@ getVolume :: (MonadDOM m) => AllAudioCapabilities -> m (Maybe CapabilityRange) getVolume self = liftDOM ((self ^. js "volume") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AllAudioCapabilities.volume Mozilla AllAudioCapabilities.volume documentation> +getVolumeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ AllAudioCapabilities -> m CapabilityRange+getVolumeUnsafe self+ = liftDOM+ (((self ^. js "volume") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AllAudioCapabilities.volume Mozilla AllAudioCapabilities.volume documentation> getVolumeUnchecked ::
@@ -1,13 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.AllVideoCapabilities- (getSourceType, getSourceId, getWidth, getWidthUnchecked,- getHeight, getHeightUnchecked, getFrameRate, getFrameRateUnchecked,- getAspectRatio, getAspectRatioUnchecked, getFacingMode,- AllVideoCapabilities, castToAllVideoCapabilities,- gTypeAllVideoCapabilities)+ (getSourceType, getSourceId, getWidth, getWidthUnsafe,+ getWidthUnchecked, getHeight, getHeightUnsafe, getHeightUnchecked,+ getFrameRate, getFrameRateUnsafe, getFrameRateUnchecked,+ getAspectRatio, getAspectRatioUnsafe, getAspectRatioUnchecked,+ getFacingMode, AllVideoCapabilities(..), gTypeAllVideoCapabilities) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/AllVideoCapabilities.sourceType Mozilla AllVideoCapabilities.sourceType documentation> getSourceType ::@@ -39,6 +53,15 @@ getWidth self = liftDOM ((self ^. js "width") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AllVideoCapabilities.width Mozilla AllVideoCapabilities.width documentation> +getWidthUnsafe ::+ (MonadDOM m, HasCallStack) =>+ AllVideoCapabilities -> m CapabilityRange+getWidthUnsafe self+ = liftDOM+ (((self ^. js "width") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AllVideoCapabilities.width Mozilla AllVideoCapabilities.width documentation> getWidthUnchecked :: (MonadDOM m) => AllVideoCapabilities -> m CapabilityRange getWidthUnchecked self@@ -50,6 +73,15 @@ getHeight self = liftDOM ((self ^. js "height") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AllVideoCapabilities.height Mozilla AllVideoCapabilities.height documentation> +getHeightUnsafe ::+ (MonadDOM m, HasCallStack) =>+ AllVideoCapabilities -> m CapabilityRange+getHeightUnsafe self+ = liftDOM+ (((self ^. js "height") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AllVideoCapabilities.height Mozilla AllVideoCapabilities.height documentation> getHeightUnchecked :: (MonadDOM m) => AllVideoCapabilities -> m CapabilityRange getHeightUnchecked self@@ -62,6 +94,15 @@ = liftDOM ((self ^. js "frameRate") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AllVideoCapabilities.frameRate Mozilla AllVideoCapabilities.frameRate documentation> +getFrameRateUnsafe ::+ (MonadDOM m, HasCallStack) =>+ AllVideoCapabilities -> m CapabilityRange+getFrameRateUnsafe self+ = liftDOM+ (((self ^. js "frameRate") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AllVideoCapabilities.frameRate Mozilla AllVideoCapabilities.frameRate documentation> getFrameRateUnchecked :: (MonadDOM m) => AllVideoCapabilities -> m CapabilityRange getFrameRateUnchecked self@@ -72,6 +113,15 @@ (MonadDOM m) => AllVideoCapabilities -> m (Maybe CapabilityRange) getAspectRatio self = liftDOM ((self ^. js "aspectRatio") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AllVideoCapabilities.aspectRatio Mozilla AllVideoCapabilities.aspectRatio documentation> +getAspectRatioUnsafe ::+ (MonadDOM m, HasCallStack) =>+ AllVideoCapabilities -> m CapabilityRange+getAspectRatioUnsafe self+ = liftDOM+ (((self ^. js "aspectRatio") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AllVideoCapabilities.aspectRatio Mozilla AllVideoCapabilities.aspectRatio documentation> getAspectRatioUnchecked ::
@@ -1,14 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.AnalyserNode (getFloatFrequencyData, getByteFrequencyData, getByteTimeDomainData, setFftSize, getFftSize, getFrequencyBinCount, setMinDecibels, getMinDecibels, setMaxDecibels, getMaxDecibels, setSmoothingTimeConstant,- getSmoothingTimeConstant, AnalyserNode, castToAnalyserNode,- gTypeAnalyserNode)+ getSmoothingTimeConstant, AnalyserNode(..), gTypeAnalyserNode) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode.getFloatFrequencyData Mozilla AnalyserNode.getFloatFrequencyData documentation> getFloatFrequencyData ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.AnimationEvent- (getAnimationName, getElapsedTime, AnimationEvent,- castToAnimationEvent, gTypeAnimationEvent)+ (getAnimationName, getElapsedTime, AnimationEvent(..),+ gTypeAnimationEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent.animationName Mozilla AnimationEvent.animationName documentation> getAnimationName ::
@@ -1,13 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.ApplicationCache (update, swapCache, abort, pattern UNCACHED, pattern IDLE, pattern CHECKING, pattern DOWNLOADING, pattern UPDATEREADY, pattern OBSOLETE, getStatus, checking, error, noUpdate, downloading, progress, updateReady, cached, obsolete,- ApplicationCache, castToApplicationCache, gTypeApplicationCache)+ ApplicationCache(..), gTypeApplicationCache) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/ApplicationCache.update Mozilla ApplicationCache.update documentation> update :: (MonadDOM m) => ApplicationCache -> m ()
@@ -1,11 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Attr- (getName, getNameUnchecked, getSpecified, setValue, getValue,- getValueUnchecked, getOwnerElement, getOwnerElementUnchecked,- getIsId, Attr, castToAttr, gTypeAttr)+ (getName, getNameUnsafe, getNameUnchecked, getSpecified, setValue,+ getValue, getValueUnsafe, getValueUnchecked, getOwnerElement,+ getOwnerElementUnsafe, getOwnerElementUnchecked, getIsId, Attr(..),+ gTypeAttr) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Attr.name Mozilla Attr.name documentation> getName ::@@ -23,6 +38,14 @@ getName self = liftDOM ((self ^. js "name") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Attr.name Mozilla Attr.name documentation> +getNameUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) => Attr -> m result+getNameUnsafe self+ = liftDOM+ (((self ^. js "name") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Attr.name Mozilla Attr.name documentation> getNameUnchecked :: (MonadDOM m, FromJSString result) => Attr -> m result getNameUnchecked self@@ -45,6 +68,14 @@ = liftDOM ((self ^. js "value") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Attr.value Mozilla Attr.value documentation> +getValueUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) => Attr -> m result+getValueUnsafe self+ = liftDOM+ (((self ^. js "value") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Attr.value Mozilla Attr.value documentation> getValueUnchecked :: (MonadDOM m, FromJSString result) => Attr -> m result getValueUnchecked self@@ -54,6 +85,14 @@ getOwnerElement :: (MonadDOM m) => Attr -> m (Maybe Element) getOwnerElement self = liftDOM ((self ^. js "ownerElement") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Attr.ownerElement Mozilla Attr.ownerElement documentation> +getOwnerElementUnsafe ::+ (MonadDOM m, HasCallStack) => Attr -> m Element+getOwnerElementUnsafe self+ = liftDOM+ (((self ^. js "ownerElement") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Attr.ownerElement Mozilla Attr.ownerElement documentation> getOwnerElementUnchecked :: (MonadDOM m) => Attr -> m Element
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.AudioBuffer- (getChannelData, getChannelData_, getChannelDataUnchecked,- getLength, getDuration, getSampleRate, setGain, getGain,- getNumberOfChannels, AudioBuffer, castToAudioBuffer,+ (getChannelData, getChannelData_, getChannelDataUnsafe,+ getChannelDataUnchecked, getLength, getDuration, getSampleRate,+ setGain, getGain, getNumberOfChannels, AudioBuffer(..), gTypeAudioBuffer) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer.getChannelData Mozilla AudioBuffer.getChannelData documentation> getChannelData ::@@ -31,6 +45,15 @@ getChannelData_ self channelIndex = liftDOM (void (self ^. jsf "getChannelData" [toJSVal channelIndex]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer.getChannelData Mozilla AudioBuffer.getChannelData documentation> +getChannelDataUnsafe ::+ (MonadDOM m, HasCallStack) => AudioBuffer -> Word -> m Float32Array+getChannelDataUnsafe self channelIndex+ = liftDOM+ (((self ^. jsf "getChannelData" [toJSVal channelIndex]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer.getChannelData Mozilla AudioBuffer.getChannelData documentation> getChannelDataUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.AudioBufferCallback (newAudioBufferCallback, newAudioBufferCallbackSync, newAudioBufferCallbackAsync, AudioBufferCallback) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferCallback Mozilla AudioBufferCallback documentation> newAudioBufferCallback ::
@@ -1,16 +1,21 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.AudioBufferSourceNode (start, stop, noteOn, noteGrainOn, noteOff, pattern UNSCHEDULED_STATE, pattern SCHEDULED_STATE, pattern PLAYING_STATE, pattern FINISHED_STATE, setBuffer,- getBuffer, getBufferUnchecked, getPlaybackState, getGain,- getGainUnchecked, getPlaybackRate, getPlaybackRateUnchecked,- setLoop, getLoop, setLoopStart, getLoopStart, setLoopEnd,- getLoopEnd, setLooping, getLooping, ended, AudioBufferSourceNode,- castToAudioBufferSourceNode, gTypeAudioBufferSourceNode)+ getBuffer, getBufferUnsafe, getBufferUnchecked, getPlaybackState,+ getGain, getGainUnsafe, getGainUnchecked, getPlaybackRate,+ getPlaybackRateUnsafe, getPlaybackRateUnchecked, setLoop, getLoop,+ setLoopStart, getLoopStart, setLoopEnd, getLoopEnd, setLooping,+ getLooping, ended, AudioBufferSourceNode(..),+ gTypeAudioBufferSourceNode) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -21,6 +26,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode.start Mozilla AudioBufferSourceNode.start documentation> start ::@@ -71,6 +86,15 @@ getBuffer self = liftDOM ((self ^. js "buffer") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode.buffer Mozilla AudioBufferSourceNode.buffer documentation> +getBufferUnsafe ::+ (MonadDOM m, HasCallStack) =>+ AudioBufferSourceNode -> m AudioBuffer+getBufferUnsafe self+ = liftDOM+ (((self ^. js "buffer") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode.buffer Mozilla AudioBufferSourceNode.buffer documentation> getBufferUnchecked :: (MonadDOM m) => AudioBufferSourceNode -> m AudioBuffer getBufferUnchecked self@@ -88,6 +112,14 @@ getGain self = liftDOM ((self ^. js "gain") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode.gain Mozilla AudioBufferSourceNode.gain documentation> +getGainUnsafe ::+ (MonadDOM m, HasCallStack) => AudioBufferSourceNode -> m AudioParam+getGainUnsafe self+ = liftDOM+ (((self ^. js "gain") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode.gain Mozilla AudioBufferSourceNode.gain documentation> getGainUnchecked :: (MonadDOM m) => AudioBufferSourceNode -> m AudioParam getGainUnchecked self@@ -98,6 +130,14 @@ (MonadDOM m) => AudioBufferSourceNode -> m (Maybe AudioParam) getPlaybackRate self = liftDOM ((self ^. js "playbackRate") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode.playbackRate Mozilla AudioBufferSourceNode.playbackRate documentation> +getPlaybackRateUnsafe ::+ (MonadDOM m, HasCallStack) => AudioBufferSourceNode -> m AudioParam+getPlaybackRateUnsafe self+ = liftDOM+ (((self ^. js "playbackRate") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode.playbackRate Mozilla AudioBufferSourceNode.playbackRate documentation> getPlaybackRateUnchecked ::
@@ -1,41 +1,54 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.AudioContext- (newAudioContext, createBuffer, createBuffer_,+ (newAudioContext, createBuffer, createBuffer_, createBufferUnsafe, createBufferUnchecked, createBufferFromArrayBuffer,- createBufferFromArrayBuffer_, createBufferFromArrayBufferUnchecked,- decodeAudioData, createBufferSource, createBufferSource_,+ createBufferFromArrayBuffer_, createBufferFromArrayBufferUnsafe,+ createBufferFromArrayBufferUnchecked, decodeAudioData,+ createBufferSource, createBufferSource_, createBufferSourceUnsafe, createBufferSourceUnchecked, createMediaElementSource,- createMediaElementSource_, createMediaElementSourceUnchecked,- createMediaStreamSource, createMediaStreamSource_,+ createMediaElementSource_, createMediaElementSourceUnsafe,+ createMediaElementSourceUnchecked, createMediaStreamSource,+ createMediaStreamSource_, createMediaStreamSourceUnsafe, createMediaStreamSourceUnchecked, createMediaStreamDestination,- createMediaStreamDestination_,+ createMediaStreamDestination_, createMediaStreamDestinationUnsafe, createMediaStreamDestinationUnchecked, createGain, createGain_,- createGainUnchecked, createDelay, createDelay_,- createDelayUnchecked, createBiquadFilter, createBiquadFilter_,+ createGainUnsafe, createGainUnchecked, createDelay, createDelay_,+ createDelayUnsafe, createDelayUnchecked, createBiquadFilter,+ createBiquadFilter_, createBiquadFilterUnsafe, createBiquadFilterUnchecked, createWaveShaper, createWaveShaper_,- createWaveShaperUnchecked, createPanner, createPanner_,- createPannerUnchecked, createConvolver, createConvolver_,+ createWaveShaperUnsafe, createWaveShaperUnchecked, createPanner,+ createPanner_, createPannerUnsafe, createPannerUnchecked,+ createConvolver, createConvolver_, createConvolverUnsafe, createConvolverUnchecked, createDynamicsCompressor,- createDynamicsCompressor_, createDynamicsCompressorUnchecked,- createAnalyser, createAnalyser_, createAnalyserUnchecked,+ createDynamicsCompressor_, createDynamicsCompressorUnsafe,+ createDynamicsCompressorUnchecked, createAnalyser, createAnalyser_,+ createAnalyserUnsafe, createAnalyserUnchecked, createScriptProcessor, createScriptProcessor_,- createScriptProcessorUnchecked, createOscillator,- createOscillator_, createOscillatorUnchecked, createPeriodicWave,- createPeriodicWave_, createPeriodicWaveUnchecked,+ createScriptProcessorUnsafe, createScriptProcessorUnchecked,+ createOscillator, createOscillator_, createOscillatorUnsafe,+ createOscillatorUnchecked, createPeriodicWave, createPeriodicWave_,+ createPeriodicWaveUnsafe, createPeriodicWaveUnchecked, createChannelSplitter, createChannelSplitter_,- createChannelSplitterUnchecked, createChannelMerger,- createChannelMerger_, createChannelMergerUnchecked, startRendering,- createGainNode, createGainNode_, createGainNodeUnchecked,- createDelayNode, createDelayNode_, createDelayNodeUnchecked,+ createChannelSplitterUnsafe, createChannelSplitterUnchecked,+ createChannelMerger, createChannelMerger_,+ createChannelMergerUnsafe, createChannelMergerUnchecked,+ startRendering, createGainNode, createGainNode_,+ createGainNodeUnsafe, createGainNodeUnchecked, createDelayNode,+ createDelayNode_, createDelayNodeUnsafe, createDelayNodeUnchecked, createJavaScriptNode, createJavaScriptNode_,- createJavaScriptNodeUnchecked, getDestination,- getDestinationUnchecked, getCurrentTime, getSampleRate,- getListener, getListenerUnchecked, getActiveSourceCount, complete,- AudioContext, castToAudioContext, gTypeAudioContext,- IsAudioContext, toAudioContext)+ createJavaScriptNodeUnsafe, createJavaScriptNodeUnchecked,+ getDestination, getDestinationUnsafe, getDestinationUnchecked,+ getCurrentTime, getSampleRate, getListener, getListenerUnsafe,+ getListenerUnchecked, getActiveSourceCount, complete,+ AudioContext(..), gTypeAudioContext, IsAudioContext,+ toAudioContext) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -46,6 +59,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext Mozilla AudioContext documentation> newAudioContext :: (MonadDOM m) => m AudioContext@@ -75,6 +98,18 @@ toJSVal sampleRate])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createBuffer Mozilla AudioContext.createBuffer documentation> +createBufferUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> Word -> Word -> Float -> m AudioBuffer+createBufferUnsafe self numberOfChannels numberOfFrames sampleRate+ = liftDOM+ ((((toAudioContext self) ^. jsf "createBuffer"+ [toJSVal numberOfChannels, toJSVal numberOfFrames,+ toJSVal sampleRate])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createBuffer Mozilla AudioContext.createBuffer documentation> createBufferUnchecked :: (MonadDOM m, IsAudioContext self) => self -> Word -> Word -> Float -> m AudioBuffer@@ -107,6 +142,18 @@ [toJSVal buffer, toJSVal mixToMono])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createBuffer Mozilla AudioContext.createBuffer documentation> +createBufferFromArrayBufferUnsafe ::+ (MonadDOM m, IsAudioContext self, IsArrayBuffer buffer,+ HasCallStack) =>+ self -> Maybe buffer -> Bool -> m AudioBuffer+createBufferFromArrayBufferUnsafe self buffer mixToMono+ = liftDOM+ ((((toAudioContext self) ^. jsf "createBuffer"+ [toJSVal buffer, toJSVal mixToMono])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createBuffer Mozilla AudioContext.createBuffer documentation> createBufferFromArrayBufferUnchecked :: (MonadDOM m, IsAudioContext self, IsArrayBuffer buffer) => self -> Maybe buffer -> Bool -> m AudioBuffer@@ -146,6 +193,16 @@ (void ((toAudioContext self) ^. jsf "createBufferSource" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createBufferSource Mozilla AudioContext.createBufferSource documentation> +createBufferSourceUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> m AudioBufferSourceNode+createBufferSourceUnsafe self+ = liftDOM+ ((((toAudioContext self) ^. jsf "createBufferSource" ()) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createBufferSource Mozilla AudioContext.createBufferSource documentation> createBufferSourceUnchecked :: (MonadDOM m, IsAudioContext self) => self -> m AudioBufferSourceNode@@ -177,6 +234,18 @@ [toJSVal mediaElement])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createMediaElementSource Mozilla AudioContext.createMediaElementSource documentation> +createMediaElementSourceUnsafe ::+ (MonadDOM m, IsAudioContext self, IsHTMLMediaElement mediaElement,+ HasCallStack) =>+ self -> Maybe mediaElement -> m MediaElementAudioSourceNode+createMediaElementSourceUnsafe self mediaElement+ = liftDOM+ ((((toAudioContext self) ^. jsf "createMediaElementSource"+ [toJSVal mediaElement])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createMediaElementSource Mozilla AudioContext.createMediaElementSource documentation> createMediaElementSourceUnchecked :: (MonadDOM m, IsAudioContext self, IsHTMLMediaElement mediaElement) =>@@ -208,6 +277,17 @@ [toJSVal mediaStream])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createMediaStreamSource Mozilla AudioContext.createMediaStreamSource documentation> +createMediaStreamSourceUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> Maybe MediaStream -> m MediaStreamAudioSourceNode+createMediaStreamSourceUnsafe self mediaStream+ = liftDOM+ ((((toAudioContext self) ^. jsf "createMediaStreamSource"+ [toJSVal mediaStream])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createMediaStreamSource Mozilla AudioContext.createMediaStreamSource documentation> createMediaStreamSourceUnchecked :: (MonadDOM m, IsAudioContext self) => self -> Maybe MediaStream -> m MediaStreamAudioSourceNode@@ -235,6 +315,16 @@ ((toAudioContext self) ^. jsf "createMediaStreamDestination" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createMediaStreamDestination Mozilla AudioContext.createMediaStreamDestination documentation> +createMediaStreamDestinationUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> m MediaStreamAudioDestinationNode+createMediaStreamDestinationUnsafe self+ = liftDOM+ ((((toAudioContext self) ^. jsf "createMediaStreamDestination" ())+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createMediaStreamDestination Mozilla AudioContext.createMediaStreamDestination documentation> createMediaStreamDestinationUnchecked :: (MonadDOM m, IsAudioContext self) => self -> m MediaStreamAudioDestinationNode@@ -256,6 +346,15 @@ = liftDOM (void ((toAudioContext self) ^. jsf "createGain" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createGain Mozilla AudioContext.createGain documentation> +createGainUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> m GainNode+createGainUnsafe self+ = liftDOM+ ((((toAudioContext self) ^. jsf "createGain" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createGain Mozilla AudioContext.createGain documentation> createGainUnchecked :: (MonadDOM m, IsAudioContext self) => self -> m GainNode createGainUnchecked self@@ -283,6 +382,17 @@ [toJSVal maxDelayTime])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createDelay Mozilla AudioContext.createDelay documentation> +createDelayUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> Double -> m DelayNode+createDelayUnsafe self maxDelayTime+ = liftDOM+ ((((toAudioContext self) ^. jsf "createDelay"+ [toJSVal maxDelayTime])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createDelay Mozilla AudioContext.createDelay documentation> createDelayUnchecked :: (MonadDOM m, IsAudioContext self) => self -> Double -> m DelayNode createDelayUnchecked self maxDelayTime@@ -308,6 +418,16 @@ (void ((toAudioContext self) ^. jsf "createBiquadFilter" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createBiquadFilter Mozilla AudioContext.createBiquadFilter documentation> +createBiquadFilterUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> m BiquadFilterNode+createBiquadFilterUnsafe self+ = liftDOM+ ((((toAudioContext self) ^. jsf "createBiquadFilter" ()) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createBiquadFilter Mozilla AudioContext.createBiquadFilter documentation> createBiquadFilterUnchecked :: (MonadDOM m, IsAudioContext self) => self -> m BiquadFilterNode createBiquadFilterUnchecked self@@ -332,6 +452,16 @@ (void ((toAudioContext self) ^. jsf "createWaveShaper" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createWaveShaper Mozilla AudioContext.createWaveShaper documentation> +createWaveShaperUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> m WaveShaperNode+createWaveShaperUnsafe self+ = liftDOM+ ((((toAudioContext self) ^. jsf "createWaveShaper" ()) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createWaveShaper Mozilla AudioContext.createWaveShaper documentation> createWaveShaperUnchecked :: (MonadDOM m, IsAudioContext self) => self -> m WaveShaperNode createWaveShaperUnchecked self@@ -352,6 +482,15 @@ = liftDOM (void ((toAudioContext self) ^. jsf "createPanner" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createPanner Mozilla AudioContext.createPanner documentation> +createPannerUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> m PannerNode+createPannerUnsafe self+ = liftDOM+ ((((toAudioContext self) ^. jsf "createPanner" ()) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createPanner Mozilla AudioContext.createPanner documentation> createPannerUnchecked :: (MonadDOM m, IsAudioContext self) => self -> m PannerNode createPannerUnchecked self@@ -375,6 +514,16 @@ (void ((toAudioContext self) ^. jsf "createConvolver" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createConvolver Mozilla AudioContext.createConvolver documentation> +createConvolverUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> m ConvolverNode+createConvolverUnsafe self+ = liftDOM+ ((((toAudioContext self) ^. jsf "createConvolver" ()) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createConvolver Mozilla AudioContext.createConvolver documentation> createConvolverUnchecked :: (MonadDOM m, IsAudioContext self) => self -> m ConvolverNode createConvolverUnchecked self@@ -399,6 +548,16 @@ (void ((toAudioContext self) ^. jsf "createDynamicsCompressor" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createDynamicsCompressor Mozilla AudioContext.createDynamicsCompressor documentation> +createDynamicsCompressorUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> m DynamicsCompressorNode+createDynamicsCompressorUnsafe self+ = liftDOM+ ((((toAudioContext self) ^. jsf "createDynamicsCompressor" ()) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createDynamicsCompressor Mozilla AudioContext.createDynamicsCompressor documentation> createDynamicsCompressorUnchecked :: (MonadDOM m, IsAudioContext self) => self -> m DynamicsCompressorNode@@ -421,6 +580,15 @@ = liftDOM (void ((toAudioContext self) ^. jsf "createAnalyser" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createAnalyser Mozilla AudioContext.createAnalyser documentation> +createAnalyserUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> m AnalyserNode+createAnalyserUnsafe self+ = liftDOM+ ((((toAudioContext self) ^. jsf "createAnalyser" ()) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createAnalyser Mozilla AudioContext.createAnalyser documentation> createAnalyserUnchecked :: (MonadDOM m, IsAudioContext self) => self -> m AnalyserNode createAnalyserUnchecked self@@ -453,6 +621,19 @@ toJSVal numberOfOutputChannels])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createScriptProcessor Mozilla AudioContext.createScriptProcessor documentation> +createScriptProcessorUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> Word -> Word -> Word -> m ScriptProcessorNode+createScriptProcessorUnsafe self bufferSize numberOfInputChannels+ numberOfOutputChannels+ = liftDOM+ ((((toAudioContext self) ^. jsf "createScriptProcessor"+ [toJSVal bufferSize, toJSVal numberOfInputChannels,+ toJSVal numberOfOutputChannels])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createScriptProcessor Mozilla AudioContext.createScriptProcessor documentation> createScriptProcessorUnchecked :: (MonadDOM m, IsAudioContext self) => self -> Word -> Word -> Word -> m ScriptProcessorNode@@ -481,6 +662,16 @@ (void ((toAudioContext self) ^. jsf "createOscillator" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createOscillator Mozilla AudioContext.createOscillator documentation> +createOscillatorUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> m OscillatorNode+createOscillatorUnsafe self+ = liftDOM+ ((((toAudioContext self) ^. jsf "createOscillator" ()) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createOscillator Mozilla AudioContext.createOscillator documentation> createOscillatorUnchecked :: (MonadDOM m, IsAudioContext self) => self -> m OscillatorNode createOscillatorUnchecked self@@ -511,6 +702,18 @@ [toJSVal real, toJSVal imag])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createPeriodicWave Mozilla AudioContext.createPeriodicWave documentation> +createPeriodicWaveUnsafe ::+ (MonadDOM m, IsAudioContext self, IsFloat32Array real,+ IsFloat32Array imag, HasCallStack) =>+ self -> Maybe real -> Maybe imag -> m PeriodicWave+createPeriodicWaveUnsafe self real imag+ = liftDOM+ ((((toAudioContext self) ^. jsf "createPeriodicWave"+ [toJSVal real, toJSVal imag])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createPeriodicWave Mozilla AudioContext.createPeriodicWave documentation> createPeriodicWaveUnchecked :: (MonadDOM m, IsAudioContext self, IsFloat32Array real, IsFloat32Array imag) =>@@ -541,6 +744,17 @@ [toJSVal numberOfOutputs])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createChannelSplitter Mozilla AudioContext.createChannelSplitter documentation> +createChannelSplitterUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> Word -> m ChannelSplitterNode+createChannelSplitterUnsafe self numberOfOutputs+ = liftDOM+ ((((toAudioContext self) ^. jsf "createChannelSplitter"+ [toJSVal numberOfOutputs])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createChannelSplitter Mozilla AudioContext.createChannelSplitter documentation> createChannelSplitterUnchecked :: (MonadDOM m, IsAudioContext self) => self -> Word -> m ChannelSplitterNode@@ -570,6 +784,17 @@ [toJSVal numberOfInputs])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createChannelMerger Mozilla AudioContext.createChannelMerger documentation> +createChannelMergerUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> Word -> m ChannelMergerNode+createChannelMergerUnsafe self numberOfInputs+ = liftDOM+ ((((toAudioContext self) ^. jsf "createChannelMerger"+ [toJSVal numberOfInputs])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createChannelMerger Mozilla AudioContext.createChannelMerger documentation> createChannelMergerUnchecked :: (MonadDOM m, IsAudioContext self) => self -> Word -> m ChannelMergerNode@@ -598,6 +823,15 @@ = liftDOM (void ((toAudioContext self) ^. jsf "createGainNode" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createGainNode Mozilla AudioContext.createGainNode documentation> +createGainNodeUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> m GainNode+createGainNodeUnsafe self+ = liftDOM+ ((((toAudioContext self) ^. jsf "createGainNode" ()) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createGainNode Mozilla AudioContext.createGainNode documentation> createGainNodeUnchecked :: (MonadDOM m, IsAudioContext self) => self -> m GainNode createGainNodeUnchecked self@@ -625,6 +859,17 @@ [toJSVal maxDelayTime])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createDelayNode Mozilla AudioContext.createDelayNode documentation> +createDelayNodeUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> Double -> m DelayNode+createDelayNodeUnsafe self maxDelayTime+ = liftDOM+ ((((toAudioContext self) ^. jsf "createDelayNode"+ [toJSVal maxDelayTime])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createDelayNode Mozilla AudioContext.createDelayNode documentation> createDelayNodeUnchecked :: (MonadDOM m, IsAudioContext self) => self -> Double -> m DelayNode createDelayNodeUnchecked self maxDelayTime@@ -658,6 +903,19 @@ toJSVal numberOfOutputChannels])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createJavaScriptNode Mozilla AudioContext.createJavaScriptNode documentation> +createJavaScriptNodeUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> Word -> Word -> Word -> m ScriptProcessorNode+createJavaScriptNodeUnsafe self bufferSize numberOfInputChannels+ numberOfOutputChannels+ = liftDOM+ ((((toAudioContext self) ^. jsf "createJavaScriptNode"+ [toJSVal bufferSize, toJSVal numberOfInputChannels,+ toJSVal numberOfOutputChannels])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.createJavaScriptNode Mozilla AudioContext.createJavaScriptNode documentation> createJavaScriptNodeUnchecked :: (MonadDOM m, IsAudioContext self) => self -> Word -> Word -> Word -> m ScriptProcessorNode@@ -678,6 +936,15 @@ (((toAudioContext self) ^. js "destination") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.destination Mozilla AudioContext.destination documentation> +getDestinationUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> m AudioDestinationNode+getDestinationUnsafe self+ = liftDOM+ ((((toAudioContext self) ^. js "destination") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.destination Mozilla AudioContext.destination documentation> getDestinationUnchecked :: (MonadDOM m, IsAudioContext self) => self -> m AudioDestinationNode getDestinationUnchecked self@@ -706,6 +973,15 @@ self -> m (Maybe AudioListener) getListener self = liftDOM (((toAudioContext self) ^. js "listener") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.listener Mozilla AudioContext.listener documentation> +getListenerUnsafe ::+ (MonadDOM m, IsAudioContext self, HasCallStack) =>+ self -> m AudioListener+getListenerUnsafe self+ = liftDOM+ ((((toAudioContext self) ^. js "listener") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext.listener Mozilla AudioContext.listener documentation> getListenerUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.AudioDestinationNode- (getMaxChannelCount, AudioDestinationNode,- castToAudioDestinationNode, gTypeAudioDestinationNode)+ (getMaxChannelCount, AudioDestinationNode(..),+ gTypeAudioDestinationNode) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioDestinationNode.maxChannelCount Mozilla AudioDestinationNode.maxChannelCount documentation> getMaxChannelCount ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.AudioListener (setPosition, setOrientation, setVelocity, setDopplerFactor,- getDopplerFactor, setSpeedOfSound, getSpeedOfSound, AudioListener,- castToAudioListener, gTypeAudioListener)+ getDopplerFactor, setSpeedOfSound, getSpeedOfSound,+ AudioListener(..), gTypeAudioListener) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioListener.setPosition Mozilla AudioListener.setPosition documentation> setPosition ::
@@ -1,14 +1,18 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.AudioNode- (connect, connectParam, disconnect, getContext,+ (connect, connectParam, disconnect, getContext, getContextUnsafe, getContextUnchecked, getNumberOfInputs, getNumberOfOutputs, setChannelCount, getChannelCount, setChannelCountMode, getChannelCountMode, setChannelInterpretation,- getChannelInterpretation, AudioNode, castToAudioNode,- gTypeAudioNode, IsAudioNode, toAudioNode)+ getChannelInterpretation, AudioNode(..), gTypeAudioNode,+ IsAudioNode, toAudioNode) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +23,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioNode.connect Mozilla AudioNode.connect documentation> connect ::@@ -52,6 +66,15 @@ (MonadDOM m, IsAudioNode self) => self -> m (Maybe AudioContext) getContext self = liftDOM (((toAudioNode self) ^. js "context") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioNode.context Mozilla AudioNode.context documentation> +getContextUnsafe ::+ (MonadDOM m, IsAudioNode self, HasCallStack) =>+ self -> m AudioContext+getContextUnsafe self+ = liftDOM+ ((((toAudioNode self) ^. js "context") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioNode.context Mozilla AudioNode.context documentation> getContextUnchecked ::
@@ -1,13 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.AudioParam (setValueAtTime, linearRampToValueAtTime, exponentialRampToValueAtTime, setTargetAtTime, setValueCurveAtTime, cancelScheduledValues, setTargetValueAtTime, setValue, getValue, getMinValue, getMaxValue, getDefaultValue, getName, getUnits,- AudioParam, castToAudioParam, gTypeAudioParam)+ AudioParam(..), gTypeAudioParam) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioParam.setValueAtTime Mozilla AudioParam.setValueAtTime documentation> setValueAtTime ::
@@ -1,11 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.AudioProcessingEvent- (getPlaybackTime, getInputBuffer, getInputBufferUnchecked,- getOutputBuffer, getOutputBufferUnchecked, AudioProcessingEvent,- castToAudioProcessingEvent, gTypeAudioProcessingEvent)+ (getPlaybackTime, getInputBuffer, getInputBufferUnsafe,+ getInputBufferUnchecked, getOutputBuffer, getOutputBufferUnsafe,+ getOutputBufferUnchecked, AudioProcessingEvent(..),+ gTypeAudioProcessingEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent.playbackTime Mozilla AudioProcessingEvent.playbackTime documentation> getPlaybackTime :: (MonadDOM m) => AudioProcessingEvent -> m Double@@ -29,6 +44,14 @@ = liftDOM ((self ^. js "inputBuffer") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent.inputBuffer Mozilla AudioProcessingEvent.inputBuffer documentation> +getInputBufferUnsafe ::+ (MonadDOM m, HasCallStack) => AudioProcessingEvent -> m AudioBuffer+getInputBufferUnsafe self+ = liftDOM+ (((self ^. js "inputBuffer") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent.inputBuffer Mozilla AudioProcessingEvent.inputBuffer documentation> getInputBufferUnchecked :: (MonadDOM m) => AudioProcessingEvent -> m AudioBuffer getInputBufferUnchecked self@@ -39,6 +62,14 @@ (MonadDOM m) => AudioProcessingEvent -> m (Maybe AudioBuffer) getOutputBuffer self = liftDOM ((self ^. js "outputBuffer") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent.outputBuffer Mozilla AudioProcessingEvent.outputBuffer documentation> +getOutputBufferUnsafe ::+ (MonadDOM m, HasCallStack) => AudioProcessingEvent -> m AudioBuffer+getOutputBufferUnsafe self+ = liftDOM+ (((self ^. js "outputBuffer") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent.outputBuffer Mozilla AudioProcessingEvent.outputBuffer documentation> getOutputBufferUnchecked ::
@@ -1,10 +1,13 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.AudioStreamTrack- (newAudioStreamTrack, AudioStreamTrack, castToAudioStreamTrack,- gTypeAudioStreamTrack)+ (newAudioStreamTrack, AudioStreamTrack(..), gTypeAudioStreamTrack) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +18,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioStreamTrack Mozilla AudioStreamTrack documentation> newAudioStreamTrack ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.AudioTrack (getId, setKind, getKind, getLabel, setLanguage, getLanguage,- setEnabled, getEnabled, getSourceBuffer, getSourceBufferUnchecked,- AudioTrack, castToAudioTrack, gTypeAudioTrack)+ setEnabled, getEnabled, getSourceBuffer, getSourceBufferUnsafe,+ getSourceBufferUnchecked, AudioTrack(..), gTypeAudioTrack) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack.id Mozilla AudioTrack.id documentation> getId ::@@ -63,6 +77,14 @@ (MonadDOM m) => AudioTrack -> m (Maybe SourceBuffer) getSourceBuffer self = liftDOM ((self ^. js "sourceBuffer") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack.sourceBuffer Mozilla AudioTrack.sourceBuffer documentation> +getSourceBufferUnsafe ::+ (MonadDOM m, HasCallStack) => AudioTrack -> m SourceBuffer+getSourceBufferUnsafe self+ = liftDOM+ (((self ^. js "sourceBuffer") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack.sourceBuffer Mozilla AudioTrack.sourceBuffer documentation> getSourceBufferUnchecked ::
@@ -1,11 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.AudioTrackList- (item, item_, itemUnchecked, getTrackById, getTrackById_,- getTrackByIdUnchecked, getLength, change, addTrack, removeTrack,- AudioTrackList, castToAudioTrackList, gTypeAudioTrackList)+ (item, item_, itemUnsafe, itemUnchecked, getTrackById,+ getTrackById_, getTrackByIdUnsafe, getTrackByIdUnchecked,+ getLength, change, addTrack, removeTrack, AudioTrackList(..),+ gTypeAudioTrackList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList.item Mozilla AudioTrackList.item documentation> item ::@@ -29,6 +44,15 @@ = liftDOM (void (self ^. jsf "item" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList.item Mozilla AudioTrackList.item documentation> +itemUnsafe ::+ (MonadDOM m, HasCallStack) =>+ AudioTrackList -> Word -> m AudioTrack+itemUnsafe self index+ = liftDOM+ (((self ^. jsf "item" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList.item Mozilla AudioTrackList.item documentation> itemUnchecked :: (MonadDOM m) => AudioTrackList -> Word -> m AudioTrack itemUnchecked self index@@ -47,6 +71,15 @@ (MonadDOM m, ToJSString id) => AudioTrackList -> id -> m () getTrackById_ self id = liftDOM (void (self ^. jsf "getTrackById" [toJSVal id]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList.getTrackById Mozilla AudioTrackList.getTrackById documentation> +getTrackByIdUnsafe ::+ (MonadDOM m, ToJSString id, HasCallStack) =>+ AudioTrackList -> id -> m AudioTrack+getTrackByIdUnsafe self id+ = liftDOM+ (((self ^. jsf "getTrackById" [toJSVal id]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList.getTrackById Mozilla AudioTrackList.getTrackById documentation> getTrackByIdUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.AutocompleteErrorEvent- (getReason, AutocompleteErrorEvent, castToAutocompleteErrorEvent,+ (getReason, AutocompleteErrorEvent(..), gTypeAutocompleteErrorEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/AutocompleteErrorEvent.reason Mozilla AutocompleteErrorEvent.reason documentation> getReason ::
@@ -1,8 +1,12 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.BarProp- (getVisible, BarProp, castToBarProp, gTypeBarProp) where+ (getVisible, BarProp(..), gTypeBarProp) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -13,6 +17,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/BarProp.visible Mozilla BarProp.visible documentation> getVisible :: (MonadDOM m) => BarProp -> m Bool
@@ -1,12 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.BatteryManager (getCharging, getChargingTime, getDischargingTime, getLevel, chargingChange, chargingTimeChange, dischargingTimeChange,- levelChange, BatteryManager, castToBatteryManager,- gTypeBatteryManager)+ levelChange, BatteryManager(..), gTypeBatteryManager) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager.charging Mozilla BatteryManager.charging documentation> getCharging :: (MonadDOM m) => BatteryManager -> m Bool
@@ -1,10 +1,12 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.BeforeLoadEvent- (getUrl, BeforeLoadEvent, castToBeforeLoadEvent,- gTypeBeforeLoadEvent)- where+ (getUrl, BeforeLoadEvent(..), gTypeBeforeLoadEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +17,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/BeforeLoadEvent.url Mozilla BeforeLoadEvent.url documentation> getUrl ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.BeforeUnloadEvent- (setReturnValue, getReturnValue, BeforeUnloadEvent,- castToBeforeUnloadEvent, gTypeBeforeUnloadEvent)+ (setReturnValue, getReturnValue, BeforeUnloadEvent(..),+ gTypeBeforeUnloadEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/BeforeUnloadEvent.returnValue Mozilla BeforeUnloadEvent.returnValue documentation> setReturnValue ::
@@ -1,14 +1,19 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.BiquadFilterNode (getFrequencyResponse, pattern LOWPASS, pattern HIGHPASS, pattern BANDPASS, pattern LOWSHELF, pattern HIGHSHELF, pattern PEAKING, pattern NOTCH, pattern ALLPASS, setType, getType,- getFrequency, getFrequencyUnchecked, getDetune, getDetuneUnchecked,- getQ, getQUnchecked, getGain, getGainUnchecked, BiquadFilterNode,- castToBiquadFilterNode, gTypeBiquadFilterNode)+ getFrequency, getFrequencyUnsafe, getFrequencyUnchecked, getDetune,+ getDetuneUnsafe, getDetuneUnchecked, getQ, getQUnsafe,+ getQUnchecked, getGain, getGainUnsafe, getGainUnchecked,+ BiquadFilterNode(..), gTypeBiquadFilterNode) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +24,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode.getFrequencyResponse Mozilla BiquadFilterNode.getFrequencyResponse documentation> getFrequencyResponse ::@@ -58,6 +73,14 @@ = liftDOM ((self ^. js "frequency") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode.frequency Mozilla BiquadFilterNode.frequency documentation> +getFrequencyUnsafe ::+ (MonadDOM m, HasCallStack) => BiquadFilterNode -> m AudioParam+getFrequencyUnsafe self+ = liftDOM+ (((self ^. js "frequency") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode.frequency Mozilla BiquadFilterNode.frequency documentation> getFrequencyUnchecked :: (MonadDOM m) => BiquadFilterNode -> m AudioParam getFrequencyUnchecked self@@ -69,6 +92,14 @@ getDetune self = liftDOM ((self ^. js "detune") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode.detune Mozilla BiquadFilterNode.detune documentation> +getDetuneUnsafe ::+ (MonadDOM m, HasCallStack) => BiquadFilterNode -> m AudioParam+getDetuneUnsafe self+ = liftDOM+ (((self ^. js "detune") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode.detune Mozilla BiquadFilterNode.detune documentation> getDetuneUnchecked :: (MonadDOM m) => BiquadFilterNode -> m AudioParam getDetuneUnchecked self@@ -79,6 +110,14 @@ getQ self = liftDOM ((self ^. js "Q") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode.Q Mozilla BiquadFilterNode.Q documentation> +getQUnsafe ::+ (MonadDOM m, HasCallStack) => BiquadFilterNode -> m AudioParam+getQUnsafe self+ = liftDOM+ (((self ^. js "Q") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode.Q Mozilla BiquadFilterNode.Q documentation> getQUnchecked :: (MonadDOM m) => BiquadFilterNode -> m AudioParam getQUnchecked self = liftDOM ((self ^. js "Q") >>= fromJSValUnchecked)@@ -86,6 +125,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode.gain Mozilla BiquadFilterNode.gain documentation> getGain :: (MonadDOM m) => BiquadFilterNode -> m (Maybe AudioParam) getGain self = liftDOM ((self ^. js "gain") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode.gain Mozilla BiquadFilterNode.gain documentation> +getGainUnsafe ::+ (MonadDOM m, HasCallStack) => BiquadFilterNode -> m AudioParam+getGainUnsafe self+ = liftDOM+ (((self ^. js "gain") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode.gain Mozilla BiquadFilterNode.gain documentation> getGainUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Blob- (newBlob, newBlob', slice, slice_, sliceUnchecked, getSize,- getType, Blob, castToBlob, gTypeBlob, IsBlob, toBlob)+ (newBlob, newBlob', slice, slice_, sliceUnsafe, sliceUnchecked,+ getSize, getType, Blob(..), gTypeBlob, IsBlob, toBlob) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Blob Mozilla Blob documentation> newBlob :: (MonadDOM m) => m Blob@@ -48,6 +62,17 @@ (void ((toBlob self) ^. jsf "slice" [toJSVal start, toJSVal end, toJSVal contentType]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Blob.slice Mozilla Blob.slice documentation> +sliceUnsafe ::+ (MonadDOM m, IsBlob self, ToJSString contentType, HasCallStack) =>+ self -> Int64 -> Int64 -> Maybe contentType -> m Blob+sliceUnsafe self start end contentType+ = liftDOM+ ((((toBlob self) ^. jsf "slice"+ [toJSVal start, toJSVal end, toJSVal contentType])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Blob.slice Mozilla Blob.slice documentation> sliceUnchecked ::
@@ -1,10 +1,13 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CSS- (supports2, supports2_, supports, supports_, CSS, castToCSS,- gTypeCSS)+ (supports2, supports2_, supports, supports_, CSS(..), gTypeCSS) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +18,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSS.supports Mozilla CSS.supports documentation> supports2 ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CSSCharsetRule- (setEncoding, getEncoding, getEncodingUnchecked, CSSCharsetRule,- castToCSSCharsetRule, gTypeCSSCharsetRule)+ (setEncoding, getEncoding, getEncodingUnsafe, getEncodingUnchecked,+ CSSCharsetRule(..), gTypeCSSCharsetRule) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSCharsetRule.encoding Mozilla CSSCharsetRule.encoding documentation> setEncoding ::@@ -28,6 +42,15 @@ CSSCharsetRule -> m (Maybe result) getEncoding self = liftDOM ((self ^. js "encoding") >>= fromMaybeJSString)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSCharsetRule.encoding Mozilla CSSCharsetRule.encoding documentation> +getEncodingUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ CSSCharsetRule -> m result+getEncodingUnsafe self+ = liftDOM+ (((self ^. js "encoding") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSCharsetRule.encoding Mozilla CSSCharsetRule.encoding documentation> getEncodingUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CSSFontFaceLoadEvent- (getFontface, getFontfaceUnchecked, getError, getErrorUnchecked,- CSSFontFaceLoadEvent, castToCSSFontFaceLoadEvent,+ (getFontface, getFontfaceUnsafe, getFontfaceUnchecked, getError,+ getErrorUnsafe, getErrorUnchecked, CSSFontFaceLoadEvent(..), gTypeCSSFontFaceLoadEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFaceLoadEvent.fontface Mozilla CSSFontFaceLoadEvent.fontface documentation> getFontface ::@@ -23,6 +37,15 @@ getFontface self = liftDOM ((self ^. js "fontface") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFaceLoadEvent.fontface Mozilla CSSFontFaceLoadEvent.fontface documentation> +getFontfaceUnsafe ::+ (MonadDOM m, HasCallStack) =>+ CSSFontFaceLoadEvent -> m CSSFontFaceRule+getFontfaceUnsafe self+ = liftDOM+ (((self ^. js "fontface") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFaceLoadEvent.fontface Mozilla CSSFontFaceLoadEvent.fontface documentation> getFontfaceUnchecked :: (MonadDOM m) => CSSFontFaceLoadEvent -> m CSSFontFaceRule getFontfaceUnchecked self@@ -32,6 +55,14 @@ getError :: (MonadDOM m) => CSSFontFaceLoadEvent -> m (Maybe DOMError) getError self = liftDOM ((self ^. js "error") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFaceLoadEvent.error Mozilla CSSFontFaceLoadEvent.error documentation> +getErrorUnsafe ::+ (MonadDOM m, HasCallStack) => CSSFontFaceLoadEvent -> m DOMError+getErrorUnsafe self+ = liftDOM+ (((self ^. js "error") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFaceLoadEvent.error Mozilla CSSFontFaceLoadEvent.error documentation> getErrorUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CSSFontFaceRule- (getStyle, getStyleUnchecked, CSSFontFaceRule,- castToCSSFontFaceRule, gTypeCSSFontFaceRule)+ (getStyle, getStyleUnsafe, getStyleUnchecked, CSSFontFaceRule(..),+ gTypeCSSFontFaceRule) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,11 +19,30 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFaceRule.style Mozilla CSSFontFaceRule.style documentation> getStyle :: (MonadDOM m) => CSSFontFaceRule -> m (Maybe CSSStyleDeclaration) getStyle self = liftDOM ((self ^. js "style") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFaceRule.style Mozilla CSSFontFaceRule.style documentation> +getStyleUnsafe ::+ (MonadDOM m, HasCallStack) =>+ CSSFontFaceRule -> m CSSStyleDeclaration+getStyleUnsafe self+ = liftDOM+ (((self ^. js "style") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFaceRule.style Mozilla CSSFontFaceRule.style documentation> getStyleUnchecked ::
@@ -1,11 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CSSImportRule- (getHref, getHrefUnchecked, getMedia, getMediaUnchecked,- getStyleSheet, getStyleSheetUnchecked, CSSImportRule,- castToCSSImportRule, gTypeCSSImportRule)+ (getHref, getHrefUnsafe, getHrefUnchecked, getMedia,+ getMediaUnsafe, getMediaUnchecked, getStyleSheet,+ getStyleSheetUnsafe, getStyleSheetUnchecked, CSSImportRule(..),+ gTypeCSSImportRule) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule.href Mozilla CSSImportRule.href documentation> getHref ::@@ -24,6 +39,15 @@ getHref self = liftDOM ((self ^. js "href") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule.href Mozilla CSSImportRule.href documentation> +getHrefUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ CSSImportRule -> m result+getHrefUnsafe self+ = liftDOM+ (((self ^. js "href") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule.href Mozilla CSSImportRule.href documentation> getHrefUnchecked :: (MonadDOM m, FromJSString result) => CSSImportRule -> m result getHrefUnchecked self@@ -34,6 +58,14 @@ getMedia self = liftDOM ((self ^. js "media") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule.media Mozilla CSSImportRule.media documentation> +getMediaUnsafe ::+ (MonadDOM m, HasCallStack) => CSSImportRule -> m MediaList+getMediaUnsafe self+ = liftDOM+ (((self ^. js "media") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule.media Mozilla CSSImportRule.media documentation> getMediaUnchecked :: (MonadDOM m) => CSSImportRule -> m MediaList getMediaUnchecked self = liftDOM ((self ^. js "media") >>= fromJSValUnchecked)@@ -43,6 +75,14 @@ (MonadDOM m) => CSSImportRule -> m (Maybe CSSStyleSheet) getStyleSheet self = liftDOM ((self ^. js "styleSheet") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule.styleSheet Mozilla CSSImportRule.styleSheet documentation> +getStyleSheetUnsafe ::+ (MonadDOM m, HasCallStack) => CSSImportRule -> m CSSStyleSheet+getStyleSheetUnsafe self+ = liftDOM+ (((self ^. js "styleSheet") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule.styleSheet Mozilla CSSImportRule.styleSheet documentation> getStyleSheetUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CSSKeyframeRule- (setKeyText, getKeyText, getStyle, getStyleUnchecked,- CSSKeyframeRule, castToCSSKeyframeRule, gTypeCSSKeyframeRule)+ (setKeyText, getKeyText, getStyle, getStyleUnsafe,+ getStyleUnchecked, CSSKeyframeRule(..), gTypeCSSKeyframeRule) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframeRule.keyText Mozilla CSSKeyframeRule.keyText documentation> setKeyText ::@@ -31,6 +45,15 @@ getStyle :: (MonadDOM m) => CSSKeyframeRule -> m (Maybe CSSStyleDeclaration) getStyle self = liftDOM ((self ^. js "style") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframeRule.style Mozilla CSSKeyframeRule.style documentation> +getStyleUnsafe ::+ (MonadDOM m, HasCallStack) =>+ CSSKeyframeRule -> m CSSStyleDeclaration+getStyleUnsafe self+ = liftDOM+ (((self ^. js "style") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframeRule.style Mozilla CSSKeyframeRule.style documentation> getStyleUnchecked ::
@@ -1,12 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CSSKeyframesRule (insertRule, appendRule, deleteRule, findRule, findRule_,- findRuleUnchecked, _get, _get_, _getUnchecked, setName, getName,- getNameUnchecked, getCssRules, getCssRulesUnchecked,- CSSKeyframesRule, castToCSSKeyframesRule, gTypeCSSKeyframesRule)+ findRuleUnsafe, findRuleUnchecked, _get, _get_, _getUnsafe,+ _getUnchecked, setName, getName, getNameUnsafe, getNameUnchecked,+ getCssRules, getCssRulesUnsafe, getCssRulesUnchecked,+ CSSKeyframesRule(..), gTypeCSSKeyframesRule) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule.insertRule Mozilla CSSKeyframesRule.insertRule documentation> insertRule ::@@ -50,6 +65,15 @@ = liftDOM (void (self ^. jsf "findRule" [toJSVal key])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule.findRule Mozilla CSSKeyframesRule.findRule documentation> +findRuleUnsafe ::+ (MonadDOM m, ToJSString key, HasCallStack) =>+ CSSKeyframesRule -> key -> m CSSKeyframeRule+findRuleUnsafe self key+ = liftDOM+ (((self ^. jsf "findRule" [toJSVal key]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule.findRule Mozilla CSSKeyframesRule.findRule documentation> findRuleUnchecked :: (MonadDOM m, ToJSString key) => CSSKeyframesRule -> key -> m CSSKeyframeRule@@ -70,6 +94,15 @@ = liftDOM (void (self ^. jsf "_get" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule._get Mozilla CSSKeyframesRule._get documentation> +_getUnsafe ::+ (MonadDOM m, HasCallStack) =>+ CSSKeyframesRule -> Word -> m CSSKeyframeRule+_getUnsafe self index+ = liftDOM+ (((self ^. jsf "_get" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule._get Mozilla CSSKeyframesRule._get documentation> _getUnchecked :: (MonadDOM m) => CSSKeyframesRule -> Word -> m CSSKeyframeRule _getUnchecked self index@@ -89,6 +122,15 @@ getName self = liftDOM ((self ^. js "name") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule.name Mozilla CSSKeyframesRule.name documentation> +getNameUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ CSSKeyframesRule -> m result+getNameUnsafe self+ = liftDOM+ (((self ^. js "name") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule.name Mozilla CSSKeyframesRule.name documentation> getNameUnchecked :: (MonadDOM m, FromJSString result) => CSSKeyframesRule -> m result getNameUnchecked self@@ -98,6 +140,14 @@ getCssRules :: (MonadDOM m) => CSSKeyframesRule -> m (Maybe CSSRuleList) getCssRules self = liftDOM ((self ^. js "cssRules") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule.cssRules Mozilla CSSKeyframesRule.cssRules documentation> +getCssRulesUnsafe ::+ (MonadDOM m, HasCallStack) => CSSKeyframesRule -> m CSSRuleList+getCssRulesUnsafe self+ = liftDOM+ (((self ^. js "cssRules") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule.cssRules Mozilla CSSKeyframesRule.cssRules documentation> getCssRulesUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CSSMediaRule- (insertRule, insertRule_, deleteRule, getMedia, getMediaUnchecked,- getCssRules, getCssRulesUnchecked, CSSMediaRule,- castToCSSMediaRule, gTypeCSSMediaRule)+ (insertRule, insertRule_, deleteRule, getMedia, getMediaUnsafe,+ getMediaUnchecked, getCssRules, getCssRulesUnsafe,+ getCssRulesUnchecked, CSSMediaRule(..), gTypeCSSMediaRule) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSMediaRule.insertRule Mozilla CSSMediaRule.insertRule documentation> insertRule ::@@ -45,6 +59,14 @@ getMedia self = liftDOM ((self ^. js "media") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSMediaRule.media Mozilla CSSMediaRule.media documentation> +getMediaUnsafe ::+ (MonadDOM m, HasCallStack) => CSSMediaRule -> m MediaList+getMediaUnsafe self+ = liftDOM+ (((self ^. js "media") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSMediaRule.media Mozilla CSSMediaRule.media documentation> getMediaUnchecked :: (MonadDOM m) => CSSMediaRule -> m MediaList getMediaUnchecked self = liftDOM ((self ^. js "media") >>= fromJSValUnchecked)@@ -53,6 +75,14 @@ getCssRules :: (MonadDOM m) => CSSMediaRule -> m (Maybe CSSRuleList) getCssRules self = liftDOM ((self ^. js "cssRules") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSMediaRule.cssRules Mozilla CSSMediaRule.cssRules documentation> +getCssRulesUnsafe ::+ (MonadDOM m, HasCallStack) => CSSMediaRule -> m CSSRuleList+getCssRulesUnsafe self+ = liftDOM+ (((self ^. js "cssRules") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSMediaRule.cssRules Mozilla CSSMediaRule.cssRules documentation> getCssRulesUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CSSPageRule- (setSelectorText, getSelectorText, getSelectorTextUnchecked,- getStyle, getStyleUnchecked, CSSPageRule, castToCSSPageRule,- gTypeCSSPageRule)+ (setSelectorText, getSelectorText, getSelectorTextUnsafe,+ getSelectorTextUnchecked, getStyle, getStyleUnsafe,+ getStyleUnchecked, CSSPageRule(..), gTypeCSSPageRule) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSPageRule.selectorText Mozilla CSSPageRule.selectorText documentation> setSelectorText ::@@ -31,6 +45,15 @@ = liftDOM ((self ^. js "selectorText") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSPageRule.selectorText Mozilla CSSPageRule.selectorText documentation> +getSelectorTextUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ CSSPageRule -> m result+getSelectorTextUnsafe self+ = liftDOM+ (((self ^. js "selectorText") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSPageRule.selectorText Mozilla CSSPageRule.selectorText documentation> getSelectorTextUnchecked :: (MonadDOM m, FromJSString result) => CSSPageRule -> m result getSelectorTextUnchecked self@@ -40,6 +63,14 @@ getStyle :: (MonadDOM m) => CSSPageRule -> m (Maybe CSSStyleDeclaration) getStyle self = liftDOM ((self ^. js "style") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSPageRule.style Mozilla CSSPageRule.style documentation> +getStyleUnsafe ::+ (MonadDOM m, HasCallStack) => CSSPageRule -> m CSSStyleDeclaration+getStyleUnsafe self+ = liftDOM+ (((self ^. js "style") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSPageRule.style Mozilla CSSPageRule.style documentation> getStyleUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CSSPrimitiveValue (setFloatValue, getFloatValue, getFloatValue_, setStringValue, getStringValue, getStringValue_, getCounterValue, getCounterValue_,- getCounterValueUnchecked, getRectValue, getRectValue_,- getRectValueUnchecked, getRGBColorValue, getRGBColorValue_,+ getCounterValueUnsafe, getCounterValueUnchecked, getRectValue,+ getRectValue_, getRectValueUnsafe, getRectValueUnchecked,+ getRGBColorValue, getRGBColorValue_, getRGBColorValueUnsafe, getRGBColorValueUnchecked, pattern CSS_UNKNOWN, pattern CSS_NUMBER, pattern CSS_PERCENTAGE, pattern CSS_EMS, pattern CSS_EXS, pattern CSS_PX, pattern CSS_CM, pattern CSS_MM, pattern CSS_IN,@@ -14,10 +18,10 @@ pattern CSS_URI, pattern CSS_IDENT, pattern CSS_ATTR, pattern CSS_COUNTER, pattern CSS_RECT, pattern CSS_RGBCOLOR, pattern CSS_VW, pattern CSS_VH, pattern CSS_VMIN, pattern CSS_VMAX,- getPrimitiveType, CSSPrimitiveValue, castToCSSPrimitiveValue,- gTypeCSSPrimitiveValue)+ getPrimitiveType, CSSPrimitiveValue(..), gTypeCSSPrimitiveValue) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -28,6 +32,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue.setFloatValue Mozilla CSSPrimitiveValue.setFloatValue documentation> setFloatValue ::@@ -85,6 +99,14 @@ = liftDOM (void (self ^. jsf "getCounterValue" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue.getCounterValue Mozilla CSSPrimitiveValue.getCounterValue documentation> +getCounterValueUnsafe ::+ (MonadDOM m, HasCallStack) => CSSPrimitiveValue -> m Counter+getCounterValueUnsafe self+ = liftDOM+ (((self ^. jsf "getCounterValue" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue.getCounterValue Mozilla CSSPrimitiveValue.getCounterValue documentation> getCounterValueUnchecked :: (MonadDOM m) => CSSPrimitiveValue -> m Counter getCounterValueUnchecked self@@ -101,6 +123,14 @@ getRectValue_ self = liftDOM (void (self ^. jsf "getRectValue" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue.getRectValue Mozilla CSSPrimitiveValue.getRectValue documentation> +getRectValueUnsafe ::+ (MonadDOM m, HasCallStack) => CSSPrimitiveValue -> m Rect+getRectValueUnsafe self+ = liftDOM+ (((self ^. jsf "getRectValue" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue.getRectValue Mozilla CSSPrimitiveValue.getRectValue documentation> getRectValueUnchecked :: (MonadDOM m) => CSSPrimitiveValue -> m Rect getRectValueUnchecked self@@ -116,6 +146,14 @@ getRGBColorValue_ :: (MonadDOM m) => CSSPrimitiveValue -> m () getRGBColorValue_ self = liftDOM (void (self ^. jsf "getRGBColorValue" ()))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue.getRGBColorValue Mozilla CSSPrimitiveValue.getRGBColorValue documentation> +getRGBColorValueUnsafe ::+ (MonadDOM m, HasCallStack) => CSSPrimitiveValue -> m RGBColor+getRGBColorValueUnsafe self+ = liftDOM+ (((self ^. jsf "getRGBColorValue" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue.getRGBColorValue Mozilla CSSPrimitiveValue.getRGBColorValue documentation> getRGBColorValueUnchecked ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CSSRule (pattern UNKNOWN_RULE, pattern STYLE_RULE, pattern CHARSET_RULE,@@ -7,12 +10,13 @@ pattern SUPPORTS_RULE, pattern WEBKIT_VIEWPORT_RULE, pattern WEBKIT_REGION_RULE, pattern WEBKIT_KEYFRAMES_RULE, pattern WEBKIT_KEYFRAME_RULE, getType, setCssText, getCssText,- getCssTextUnchecked, getParentStyleSheet,- getParentStyleSheetUnchecked, getParentRule,- getParentRuleUnchecked, CSSRule, castToCSSRule, gTypeCSSRule,- IsCSSRule, toCSSRule)+ getCssTextUnsafe, getCssTextUnchecked, getParentStyleSheet,+ getParentStyleSheetUnsafe, getParentStyleSheetUnchecked,+ getParentRule, getParentRuleUnsafe, getParentRuleUnchecked,+ CSSRule(..), gTypeCSSRule, IsCSSRule, toCSSRule) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -23,6 +27,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern UNKNOWN_RULE = 0 pattern STYLE_RULE = 1 pattern CHARSET_RULE = 2@@ -60,6 +74,15 @@ (((toCSSRule self) ^. js "cssText") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSRule.cssText Mozilla CSSRule.cssText documentation> +getCssTextUnsafe ::+ (MonadDOM m, IsCSSRule self, HasCallStack, FromJSString result) =>+ self -> m result+getCssTextUnsafe self+ = liftDOM+ ((((toCSSRule self) ^. js "cssText") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSRule.cssText Mozilla CSSRule.cssText documentation> getCssTextUnchecked :: (MonadDOM m, IsCSSRule self, FromJSString result) => self -> m result@@ -75,6 +98,15 @@ (((toCSSRule self) ^. js "parentStyleSheet") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSRule.parentStyleSheet Mozilla CSSRule.parentStyleSheet documentation> +getParentStyleSheetUnsafe ::+ (MonadDOM m, IsCSSRule self, HasCallStack) =>+ self -> m CSSStyleSheet+getParentStyleSheetUnsafe self+ = liftDOM+ ((((toCSSRule self) ^. js "parentStyleSheet") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSRule.parentStyleSheet Mozilla CSSRule.parentStyleSheet documentation> getParentStyleSheetUnchecked :: (MonadDOM m, IsCSSRule self) => self -> m CSSStyleSheet getParentStyleSheetUnchecked self@@ -87,6 +119,14 @@ (MonadDOM m, IsCSSRule self) => self -> m (Maybe CSSRule) getParentRule self = liftDOM (((toCSSRule self) ^. js "parentRule") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSRule.parentRule Mozilla CSSRule.parentRule documentation> +getParentRuleUnsafe ::+ (MonadDOM m, IsCSSRule self, HasCallStack) => self -> m CSSRule+getParentRuleUnsafe self+ = liftDOM+ ((((toCSSRule self) ^. js "parentRule") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSRule.parentRule Mozilla CSSRule.parentRule documentation> getParentRuleUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CSSRuleList- (item, item_, itemUnchecked, getLength, CSSRuleList,- castToCSSRuleList, gTypeCSSRuleList)+ (item, item_, itemUnsafe, itemUnchecked, getLength,+ CSSRuleList(..), gTypeCSSRuleList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSRuleList.item Mozilla CSSRuleList.item documentation> item :: (MonadDOM m) => CSSRuleList -> Word -> m (Maybe CSSRule)@@ -25,6 +39,14 @@ item_ :: (MonadDOM m) => CSSRuleList -> Word -> m () item_ self index = liftDOM (void (self ^. jsf "item" [toJSVal index]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSRuleList.item Mozilla CSSRuleList.item documentation> +itemUnsafe ::+ (MonadDOM m, HasCallStack) => CSSRuleList -> Word -> m CSSRule+itemUnsafe self index+ = liftDOM+ (((self ^. jsf "item" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSRuleList.item Mozilla CSSRuleList.item documentation> itemUnchecked :: (MonadDOM m) => CSSRuleList -> Word -> m CSSRule
@@ -1,19 +1,25 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CSSStyleDeclaration- (getPropertyValue, getPropertyValue_, getPropertyValueUnchecked,- getPropertyCSSValue, getPropertyCSSValue_,+ (getPropertyValue, getPropertyValue_, getPropertyValueUnsafe,+ getPropertyValueUnchecked, getPropertyCSSValue,+ getPropertyCSSValue_, getPropertyCSSValueUnsafe, getPropertyCSSValueUnchecked, removeProperty, removeProperty_,- removePropertyUnchecked, getPropertyPriority, getPropertyPriority_,+ removePropertyUnsafe, removePropertyUnchecked, getPropertyPriority,+ getPropertyPriority_, getPropertyPriorityUnsafe, getPropertyPriorityUnchecked, setProperty, item, item_, getPropertyShorthand, getPropertyShorthand_,- getPropertyShorthandUnchecked, isPropertyImplicit,- isPropertyImplicit_, setCssText, getCssText, getCssTextUnchecked,- getLength, getParentRule, getParentRuleUnchecked,- CSSStyleDeclaration, castToCSSStyleDeclaration,- gTypeCSSStyleDeclaration)+ getPropertyShorthandUnsafe, getPropertyShorthandUnchecked,+ isPropertyImplicit, isPropertyImplicit_, setCssText, getCssText,+ getCssTextUnsafe, getCssTextUnchecked, getLength, getParentRule,+ getParentRuleUnsafe, getParentRuleUnchecked,+ CSSStyleDeclaration(..), gTypeCSSStyleDeclaration) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -24,6 +30,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration.getPropertyValue Mozilla CSSStyleDeclaration.getPropertyValue documentation> getPropertyValue ::@@ -43,6 +59,17 @@ (void (self ^. jsf "getPropertyValue" [toJSVal propertyName])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration.getPropertyValue Mozilla CSSStyleDeclaration.getPropertyValue documentation> +getPropertyValueUnsafe ::+ (MonadDOM m, ToJSString propertyName, HasCallStack,+ FromJSString result) =>+ CSSStyleDeclaration -> propertyName -> m result+getPropertyValueUnsafe self propertyName+ = liftDOM+ (((self ^. jsf "getPropertyValue" [toJSVal propertyName]) >>=+ fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration.getPropertyValue Mozilla CSSStyleDeclaration.getPropertyValue documentation> getPropertyValueUnchecked :: (MonadDOM m, ToJSString propertyName, FromJSString result) => CSSStyleDeclaration -> propertyName -> m result@@ -69,6 +96,16 @@ (void (self ^. jsf "getPropertyCSSValue" [toJSVal propertyName])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration.getPropertyCSSValue Mozilla CSSStyleDeclaration.getPropertyCSSValue documentation> +getPropertyCSSValueUnsafe ::+ (MonadDOM m, ToJSString propertyName, HasCallStack) =>+ CSSStyleDeclaration -> propertyName -> m CSSValue+getPropertyCSSValueUnsafe self propertyName+ = liftDOM+ (((self ^. jsf "getPropertyCSSValue" [toJSVal propertyName]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration.getPropertyCSSValue Mozilla CSSStyleDeclaration.getPropertyCSSValue documentation> getPropertyCSSValueUnchecked :: (MonadDOM m, ToJSString propertyName) => CSSStyleDeclaration -> propertyName -> m CSSValue@@ -95,6 +132,17 @@ (void (self ^. jsf "removeProperty" [toJSVal propertyName])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration.removeProperty Mozilla CSSStyleDeclaration.removeProperty documentation> +removePropertyUnsafe ::+ (MonadDOM m, ToJSString propertyName, HasCallStack,+ FromJSString result) =>+ CSSStyleDeclaration -> propertyName -> m result+removePropertyUnsafe self propertyName+ = liftDOM+ (((self ^. jsf "removeProperty" [toJSVal propertyName]) >>=+ fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration.removeProperty Mozilla CSSStyleDeclaration.removeProperty documentation> removePropertyUnchecked :: (MonadDOM m, ToJSString propertyName, FromJSString result) => CSSStyleDeclaration -> propertyName -> m result@@ -121,6 +169,17 @@ (void (self ^. jsf "getPropertyPriority" [toJSVal propertyName])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration.getPropertyPriority Mozilla CSSStyleDeclaration.getPropertyPriority documentation> +getPropertyPriorityUnsafe ::+ (MonadDOM m, ToJSString propertyName, HasCallStack,+ FromJSString result) =>+ CSSStyleDeclaration -> propertyName -> m result+getPropertyPriorityUnsafe self propertyName+ = liftDOM+ (((self ^. jsf "getPropertyPriority" [toJSVal propertyName]) >>=+ fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration.getPropertyPriority Mozilla CSSStyleDeclaration.getPropertyPriority documentation> getPropertyPriorityUnchecked :: (MonadDOM m, ToJSString propertyName, FromJSString result) => CSSStyleDeclaration -> propertyName -> m result@@ -172,6 +231,17 @@ (void (self ^. jsf "getPropertyShorthand" [toJSVal propertyName])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration.getPropertyShorthand Mozilla CSSStyleDeclaration.getPropertyShorthand documentation> +getPropertyShorthandUnsafe ::+ (MonadDOM m, ToJSString propertyName, HasCallStack,+ FromJSString result) =>+ CSSStyleDeclaration -> propertyName -> m result+getPropertyShorthandUnsafe self propertyName+ = liftDOM+ (((self ^. jsf "getPropertyShorthand" [toJSVal propertyName]) >>=+ fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration.getPropertyShorthand Mozilla CSSStyleDeclaration.getPropertyShorthand documentation> getPropertyShorthandUnchecked :: (MonadDOM m, ToJSString propertyName, FromJSString result) => CSSStyleDeclaration -> propertyName -> m result@@ -211,6 +281,15 @@ = liftDOM ((self ^. js "cssText") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration.cssText Mozilla CSSStyleDeclaration.cssText documentation> +getCssTextUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ CSSStyleDeclaration -> m result+getCssTextUnsafe self+ = liftDOM+ (((self ^. js "cssText") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration.cssText Mozilla CSSStyleDeclaration.cssText documentation> getCssTextUnchecked :: (MonadDOM m, FromJSString result) => CSSStyleDeclaration -> m result@@ -227,6 +306,14 @@ (MonadDOM m) => CSSStyleDeclaration -> m (Maybe CSSRule) getParentRule self = liftDOM ((self ^. js "parentRule") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration.parentRule Mozilla CSSStyleDeclaration.parentRule documentation> +getParentRuleUnsafe ::+ (MonadDOM m, HasCallStack) => CSSStyleDeclaration -> m CSSRule+getParentRuleUnsafe self+ = liftDOM+ (((self ^. js "parentRule") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration.parentRule Mozilla CSSStyleDeclaration.parentRule documentation> getParentRuleUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CSSStyleRule- (setSelectorText, getSelectorText, getSelectorTextUnchecked,- getStyle, getStyleUnchecked, CSSStyleRule, castToCSSStyleRule,- gTypeCSSStyleRule)+ (setSelectorText, getSelectorText, getSelectorTextUnsafe,+ getSelectorTextUnchecked, getStyle, getStyleUnsafe,+ getStyleUnchecked, CSSStyleRule(..), gTypeCSSStyleRule) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule.selectorText Mozilla CSSStyleRule.selectorText documentation> setSelectorText ::@@ -31,6 +45,15 @@ = liftDOM ((self ^. js "selectorText") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule.selectorText Mozilla CSSStyleRule.selectorText documentation> +getSelectorTextUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ CSSStyleRule -> m result+getSelectorTextUnsafe self+ = liftDOM+ (((self ^. js "selectorText") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule.selectorText Mozilla CSSStyleRule.selectorText documentation> getSelectorTextUnchecked :: (MonadDOM m, FromJSString result) => CSSStyleRule -> m result getSelectorTextUnchecked self@@ -40,6 +63,14 @@ getStyle :: (MonadDOM m) => CSSStyleRule -> m (Maybe CSSStyleDeclaration) getStyle self = liftDOM ((self ^. js "style") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule.style Mozilla CSSStyleRule.style documentation> +getStyleUnsafe ::+ (MonadDOM m, HasCallStack) => CSSStyleRule -> m CSSStyleDeclaration+getStyleUnsafe self+ = liftDOM+ (((self ^. js "style") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule.style Mozilla CSSStyleRule.style documentation> getStyleUnchecked ::
@@ -1,12 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CSSStyleSheet (insertRule, insertRule_, deleteRule, addRule, addRule_,- removeRule, getOwnerRule, getOwnerRuleUnchecked, getCssRules,- getCssRulesUnchecked, getRules, getRulesUnchecked, CSSStyleSheet,- castToCSSStyleSheet, gTypeCSSStyleSheet)+ removeRule, getOwnerRule, getOwnerRuleUnsafe,+ getOwnerRuleUnchecked, getCssRules, getCssRulesUnsafe,+ getCssRulesUnchecked, getRules, getRulesUnsafe, getRulesUnchecked,+ CSSStyleSheet(..), gTypeCSSStyleSheet) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet.insertRule Mozilla CSSStyleSheet.insertRule documentation> insertRule ::@@ -73,6 +88,14 @@ = liftDOM ((self ^. js "ownerRule") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet.ownerRule Mozilla CSSStyleSheet.ownerRule documentation> +getOwnerRuleUnsafe ::+ (MonadDOM m, HasCallStack) => CSSStyleSheet -> m CSSRule+getOwnerRuleUnsafe self+ = liftDOM+ (((self ^. js "ownerRule") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet.ownerRule Mozilla CSSStyleSheet.ownerRule documentation> getOwnerRuleUnchecked :: (MonadDOM m) => CSSStyleSheet -> m CSSRule getOwnerRuleUnchecked self = liftDOM ((self ^. js "ownerRule") >>= fromJSValUnchecked)@@ -83,6 +106,14 @@ getCssRules self = liftDOM ((self ^. js "cssRules") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet.cssRules Mozilla CSSStyleSheet.cssRules documentation> +getCssRulesUnsafe ::+ (MonadDOM m, HasCallStack) => CSSStyleSheet -> m CSSRuleList+getCssRulesUnsafe self+ = liftDOM+ (((self ^. js "cssRules") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet.cssRules Mozilla CSSStyleSheet.cssRules documentation> getCssRulesUnchecked :: (MonadDOM m) => CSSStyleSheet -> m CSSRuleList getCssRulesUnchecked self@@ -91,6 +122,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet.rules Mozilla CSSStyleSheet.rules documentation> getRules :: (MonadDOM m) => CSSStyleSheet -> m (Maybe CSSRuleList) getRules self = liftDOM ((self ^. js "rules") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet.rules Mozilla CSSStyleSheet.rules documentation> +getRulesUnsafe ::+ (MonadDOM m, HasCallStack) => CSSStyleSheet -> m CSSRuleList+getRulesUnsafe self+ = liftDOM+ (((self ^. js "rules") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet.rules Mozilla CSSStyleSheet.rules documentation> getRulesUnchecked :: (MonadDOM m) => CSSStyleSheet -> m CSSRuleList
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CSSSupportsRule (insertRule, insertRule_, deleteRule, getCssRules,- getCssRulesUnchecked, getConditionText, CSSSupportsRule,- castToCSSSupportsRule, gTypeCSSSupportsRule)+ getCssRulesUnsafe, getCssRulesUnchecked, getConditionText,+ CSSSupportsRule(..), gTypeCSSSupportsRule) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSSupportsRule.insertRule Mozilla CSSSupportsRule.insertRule documentation> insertRule ::@@ -44,6 +58,14 @@ getCssRules :: (MonadDOM m) => CSSSupportsRule -> m (Maybe CSSRuleList) getCssRules self = liftDOM ((self ^. js "cssRules") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSSupportsRule.cssRules Mozilla CSSSupportsRule.cssRules documentation> +getCssRulesUnsafe ::+ (MonadDOM m, HasCallStack) => CSSSupportsRule -> m CSSRuleList+getCssRulesUnsafe self+ = liftDOM+ (((self ^. js "cssRules") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSSupportsRule.cssRules Mozilla CSSSupportsRule.cssRules documentation> getCssRulesUnchecked ::
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CSSValue (pattern CSS_INHERIT, pattern CSS_PRIMITIVE_VALUE, pattern CSS_VALUE_LIST, pattern CSS_CUSTOM, setCssText, getCssText,- getCssTextUnchecked, getCssValueType, CSSValue, castToCSSValue,- gTypeCSSValue, IsCSSValue, toCSSValue)+ getCssTextUnsafe, getCssTextUnchecked, getCssValueType,+ CSSValue(..), gTypeCSSValue, IsCSSValue, toCSSValue) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern CSS_INHERIT = 0 pattern CSS_PRIMITIVE_VALUE = 1 pattern CSS_VALUE_LIST = 2@@ -36,6 +50,15 @@ getCssText self = liftDOM (((toCSSValue self) ^. js "cssText") >>= fromMaybeJSString)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSValue.cssText Mozilla CSSValue.cssText documentation> +getCssTextUnsafe ::+ (MonadDOM m, IsCSSValue self, HasCallStack, FromJSString result) =>+ self -> m result+getCssTextUnsafe self+ = liftDOM+ ((((toCSSValue self) ^. js "cssText") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSValue.cssText Mozilla CSSValue.cssText documentation> getCssTextUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CSSValueList- (item, item_, itemUnchecked, getLength, CSSValueList,- castToCSSValueList, gTypeCSSValueList, IsCSSValueList,+ (item, item_, itemUnsafe, itemUnchecked, getLength,+ CSSValueList(..), gTypeCSSValueList, IsCSSValueList, toCSSValueList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSValueList.item Mozilla CSSValueList.item documentation> item ::@@ -31,6 +45,16 @@ item_ self index = liftDOM (void ((toCSSValueList self) ^. jsf "item" [toJSVal index]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSValueList.item Mozilla CSSValueList.item documentation> +itemUnsafe ::+ (MonadDOM m, IsCSSValueList self, HasCallStack) =>+ self -> Word -> m CSSValue+itemUnsafe self index+ = liftDOM+ ((((toCSSValueList self) ^. jsf "item" [toJSVal index]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSValueList.item Mozilla CSSValueList.item documentation> itemUnchecked ::
@@ -1,10 +1,12 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CanvasGradient- (addColorStop, CanvasGradient, castToCanvasGradient,- gTypeCanvasGradient)- where+ (addColorStop, CanvasGradient(..), gTypeCanvasGradient) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +17,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasGradient.addColorStop Mozilla CanvasGradient.addColorStop documentation> addColorStop ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CanvasRenderingContext- (getCanvas, getCanvasUnchecked, CanvasRenderingContext,- castToCanvasRenderingContext, gTypeCanvasRenderingContext,+ (getCanvas, getCanvasUnsafe, getCanvasUnchecked,+ CanvasRenderingContext(..), gTypeCanvasRenderingContext, IsCanvasRenderingContext, toCanvasRenderingContext) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext.canvas Mozilla CanvasRenderingContext.canvas documentation> getCanvas ::@@ -24,6 +38,15 @@ getCanvas self = liftDOM (((toCanvasRenderingContext self) ^. js "canvas") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext.canvas Mozilla CanvasRenderingContext.canvas documentation> +getCanvasUnsafe ::+ (MonadDOM m, IsCanvasRenderingContext self, HasCallStack) =>+ self -> m HTMLCanvasElement+getCanvasUnsafe self+ = liftDOM+ ((((toCanvasRenderingContext self) ^. js "canvas") >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext.canvas Mozilla CanvasRenderingContext.canvas documentation> getCanvasUnchecked ::
@@ -1,20 +1,24 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CanvasRenderingContext2D (save, restore, scale, rotate, translate, transform, setTransform, createLinearGradient, createLinearGradient_,- createLinearGradientUnchecked, createRadialGradient,- createRadialGradient_, createRadialGradientUnchecked, setLineDash,- getLineDash, getLineDash_, clearRect, fillRect, beginPath,- closePath, moveTo, lineTo, quadraticCurveTo, bezierCurveTo, arcTo,- rect, arc, fillPath, strokePath, clipPath, fill, stroke, clip,- isPointInPathPath, isPointInPathPath_, isPointInStrokePath,- isPointInStrokePath_, isPointInPath, isPointInPath_,- isPointInStroke, isPointInStroke_, measureText, measureText_,- measureTextUnchecked, setAlpha, setCompositeOperation,- setLineWidthFunction, setLineCapFunction, setLineJoinFunction,- setMiterLimitFunction, clearShadow, fillText, strokeText,- setStrokeColor, setStrokeColorGray, setStrokeColorRGB,+ createLinearGradientUnsafe, createLinearGradientUnchecked,+ createRadialGradient, createRadialGradient_,+ createRadialGradientUnsafe, createRadialGradientUnchecked,+ setLineDash, getLineDash, getLineDash_, clearRect, fillRect,+ beginPath, closePath, moveTo, lineTo, quadraticCurveTo,+ bezierCurveTo, arcTo, rect, arc, fillPath, strokePath, clipPath,+ fill, stroke, clip, isPointInPathPath, isPointInPathPath_,+ isPointInStrokePath, isPointInStrokePath_, isPointInPath,+ isPointInPath_, isPointInStroke, isPointInStroke_, measureText,+ measureText_, measureTextUnsafe, measureTextUnchecked, setAlpha,+ setCompositeOperation, setLineWidthFunction, setLineCapFunction,+ setLineJoinFunction, setMiterLimitFunction, clearShadow, fillText,+ strokeText, setStrokeColor, setStrokeColorGray, setStrokeColorRGB, setStrokeColorCYMK, setFillColor, setFillColorGray, setFillColorRGB, setFillColorCYMK, strokeRect, drawImage, drawImageScaled, drawImagePart, drawImageFromCanvas,@@ -24,33 +28,38 @@ setShadowGray, setShadowRGB, setShadowCYMK, putImageData, putImageDataDirty, webkitPutImageDataHD, webkitPutImageDataHDDirty, createPatternFromCanvas, createPatternFromCanvas_,- createPatternFromCanvasUnchecked, createPattern, createPattern_,+ createPatternFromCanvasUnsafe, createPatternFromCanvasUnchecked,+ createPattern, createPattern_, createPatternUnsafe, createPatternUnchecked, createImageData, createImageData_,- createImageDataUnchecked, createImageDataSize,- createImageDataSize_, createImageDataSizeUnchecked, getImageData,- getImageData_, getImageDataUnchecked, webkitGetImageDataHD,- webkitGetImageDataHD_, webkitGetImageDataHDUnchecked,+ createImageDataUnsafe, createImageDataUnchecked,+ createImageDataSize, createImageDataSize_,+ createImageDataSizeUnsafe, createImageDataSizeUnchecked,+ getImageData, getImageData_, getImageDataUnsafe,+ getImageDataUnchecked, webkitGetImageDataHD, webkitGetImageDataHD_,+ webkitGetImageDataHDUnsafe, webkitGetImageDataHDUnchecked, drawFocusIfNeeded, drawFocusIfNeededPath, setGlobalAlpha, getGlobalAlpha, setGlobalCompositeOperation,- getGlobalCompositeOperation, getGlobalCompositeOperationUnchecked,- setLineWidth, getLineWidth, setLineCap, getLineCap,- getLineCapUnchecked, setLineJoin, getLineJoin,- getLineJoinUnchecked, setMiterLimit, getMiterLimit,- setShadowOffsetX, getShadowOffsetX, setShadowOffsetY,- getShadowOffsetY, setShadowBlur, getShadowBlur, setShadowColor,- getShadowColor, getShadowColorUnchecked, setLineDashOffset,- getLineDashOffset, setWebkitLineDash, getWebkitLineDash,+ getGlobalCompositeOperation, getGlobalCompositeOperationUnsafe,+ getGlobalCompositeOperationUnchecked, setLineWidth, getLineWidth,+ setLineCap, getLineCap, getLineCapUnsafe, getLineCapUnchecked,+ setLineJoin, getLineJoin, getLineJoinUnsafe, getLineJoinUnchecked,+ setMiterLimit, getMiterLimit, setShadowOffsetX, getShadowOffsetX,+ setShadowOffsetY, getShadowOffsetY, setShadowBlur, getShadowBlur,+ setShadowColor, getShadowColor, getShadowColorUnsafe,+ getShadowColorUnchecked, setLineDashOffset, getLineDashOffset,+ setWebkitLineDash, getWebkitLineDash, getWebkitLineDashUnsafe, getWebkitLineDashUnchecked, setWebkitLineDashOffset, getWebkitLineDashOffset, setFont, getFont, setTextAlign, getTextAlign, setTextBaseline, getTextBaseline, setDirection,- getDirection, setStrokeStyle, getStrokeStyle,+ getDirection, setStrokeStyle, getStrokeStyle, getStrokeStyleUnsafe, getStrokeStyleUnchecked, setFillStyle, getFillStyle,- getFillStyleUnchecked, getWebkitBackingStorePixelRatio,- setWebkitImageSmoothingEnabled, getWebkitImageSmoothingEnabled,- CanvasRenderingContext2D, castToCanvasRenderingContext2D,+ getFillStyleUnsafe, getFillStyleUnchecked,+ getWebkitBackingStorePixelRatio, setWebkitImageSmoothingEnabled,+ getWebkitImageSmoothingEnabled, CanvasRenderingContext2D(..), gTypeCanvasRenderingContext2D) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -61,6 +70,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.save Mozilla CanvasRenderingContext2D.save documentation> save :: (MonadDOM m) => CanvasRenderingContext2D -> m ()@@ -134,6 +153,18 @@ [toJSVal x0, toJSVal y0, toJSVal x1, toJSVal y1])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.createLinearGradient Mozilla CanvasRenderingContext2D.createLinearGradient documentation> +createLinearGradientUnsafe ::+ (MonadDOM m, HasCallStack) =>+ CanvasRenderingContext2D ->+ Float -> Float -> Float -> Float -> m CanvasGradient+createLinearGradientUnsafe self x0 y0 x1 y1+ = liftDOM+ (((self ^. jsf "createLinearGradient"+ [toJSVal x0, toJSVal y0, toJSVal x1, toJSVal y1])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.createLinearGradient Mozilla CanvasRenderingContext2D.createLinearGradient documentation> createLinearGradientUnchecked :: (MonadDOM m) => CanvasRenderingContext2D ->@@ -171,6 +202,20 @@ toJSVal r1])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.createRadialGradient Mozilla CanvasRenderingContext2D.createRadialGradient documentation> +createRadialGradientUnsafe ::+ (MonadDOM m, HasCallStack) =>+ CanvasRenderingContext2D ->+ Float ->+ Float -> Float -> Float -> Float -> Float -> m CanvasGradient+createRadialGradientUnsafe self x0 y0 r0 x1 y1 r1+ = liftDOM+ (((self ^. jsf "createRadialGradient"+ [toJSVal x0, toJSVal y0, toJSVal r0, toJSVal x1, toJSVal y1,+ toJSVal r1])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.createRadialGradient Mozilla CanvasRenderingContext2D.createRadialGradient documentation> createRadialGradientUnchecked :: (MonadDOM m) => CanvasRenderingContext2D ->@@ -437,6 +482,15 @@ = liftDOM (void (self ^. jsf "measureText" [toJSVal text])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.measureText Mozilla CanvasRenderingContext2D.measureText documentation> +measureTextUnsafe ::+ (MonadDOM m, ToJSString text, HasCallStack) =>+ CanvasRenderingContext2D -> text -> m TextMetrics+measureTextUnsafe self text+ = liftDOM+ (((self ^. jsf "measureText" [toJSVal text]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.measureText Mozilla CanvasRenderingContext2D.measureText documentation> measureTextUnchecked :: (MonadDOM m, ToJSString text) => CanvasRenderingContext2D -> text -> m TextMetrics@@ -847,6 +901,18 @@ [toJSVal canvas, toJSVal repetitionType])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.createPattern Mozilla CanvasRenderingContext2D.createPattern documentation> +createPatternFromCanvasUnsafe ::+ (MonadDOM m, ToJSString repetitionType, HasCallStack) =>+ CanvasRenderingContext2D ->+ Maybe HTMLCanvasElement -> Maybe repetitionType -> m CanvasPattern+createPatternFromCanvasUnsafe self canvas repetitionType+ = liftDOM+ (((self ^. jsf "createPattern"+ [toJSVal canvas, toJSVal repetitionType])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.createPattern Mozilla CanvasRenderingContext2D.createPattern documentation> createPatternFromCanvasUnchecked :: (MonadDOM m, ToJSString repetitionType) => CanvasRenderingContext2D ->@@ -882,6 +948,18 @@ [toJSVal image, toJSVal repetitionType])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.createPattern Mozilla CanvasRenderingContext2D.createPattern documentation> +createPatternUnsafe ::+ (MonadDOM m, ToJSString repetitionType, HasCallStack) =>+ CanvasRenderingContext2D ->+ Maybe HTMLImageElement -> Maybe repetitionType -> m CanvasPattern+createPatternUnsafe self image repetitionType+ = liftDOM+ (((self ^. jsf "createPattern"+ [toJSVal image, toJSVal repetitionType])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.createPattern Mozilla CanvasRenderingContext2D.createPattern documentation> createPatternUnchecked :: (MonadDOM m, ToJSString repetitionType) => CanvasRenderingContext2D ->@@ -908,6 +986,16 @@ (void (self ^. jsf "createImageData" [toJSVal imagedata])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.createImageData Mozilla CanvasRenderingContext2D.createImageData documentation> +createImageDataUnsafe ::+ (MonadDOM m, HasCallStack) =>+ CanvasRenderingContext2D -> Maybe ImageData -> m ImageData+createImageDataUnsafe self imagedata+ = liftDOM+ (((self ^. jsf "createImageData" [toJSVal imagedata]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.createImageData Mozilla CanvasRenderingContext2D.createImageData documentation> createImageDataUnchecked :: (MonadDOM m) => CanvasRenderingContext2D -> Maybe ImageData -> m ImageData@@ -933,6 +1021,16 @@ (void (self ^. jsf "createImageData" [toJSVal sw, toJSVal sh])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.createImageData Mozilla CanvasRenderingContext2D.createImageData documentation> +createImageDataSizeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ CanvasRenderingContext2D -> Float -> Float -> m ImageData+createImageDataSizeUnsafe self sw sh+ = liftDOM+ (((self ^. jsf "createImageData" [toJSVal sw, toJSVal sh]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.createImageData Mozilla CanvasRenderingContext2D.createImageData documentation> createImageDataSizeUnchecked :: (MonadDOM m) => CanvasRenderingContext2D -> Float -> Float -> m ImageData@@ -964,6 +1062,18 @@ [toJSVal sx, toJSVal sy, toJSVal sw, toJSVal sh])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.getImageData Mozilla CanvasRenderingContext2D.getImageData documentation> +getImageDataUnsafe ::+ (MonadDOM m, HasCallStack) =>+ CanvasRenderingContext2D ->+ Float -> Float -> Float -> Float -> m ImageData+getImageDataUnsafe self sx sy sw sh+ = liftDOM+ (((self ^. jsf "getImageData"+ [toJSVal sx, toJSVal sy, toJSVal sw, toJSVal sh])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.getImageData Mozilla CanvasRenderingContext2D.getImageData documentation> getImageDataUnchecked :: (MonadDOM m) => CanvasRenderingContext2D ->@@ -997,6 +1107,18 @@ [toJSVal sx, toJSVal sy, toJSVal sw, toJSVal sh])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.webkitGetImageDataHD Mozilla CanvasRenderingContext2D.webkitGetImageDataHD documentation> +webkitGetImageDataHDUnsafe ::+ (MonadDOM m, HasCallStack) =>+ CanvasRenderingContext2D ->+ Float -> Float -> Float -> Float -> m ImageData+webkitGetImageDataHDUnsafe self sx sy sw sh+ = liftDOM+ (((self ^. jsf "webkitGetImageDataHD"+ [toJSVal sx, toJSVal sy, toJSVal sw, toJSVal sh])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.webkitGetImageDataHD Mozilla CanvasRenderingContext2D.webkitGetImageDataHD documentation> webkitGetImageDataHDUnchecked :: (MonadDOM m) => CanvasRenderingContext2D ->@@ -1053,6 +1175,15 @@ ((self ^. js "globalCompositeOperation") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.globalCompositeOperation Mozilla CanvasRenderingContext2D.globalCompositeOperation documentation> +getGlobalCompositeOperationUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ CanvasRenderingContext2D -> m result+getGlobalCompositeOperationUnsafe self+ = liftDOM+ (((self ^. js "globalCompositeOperation") >>= fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.globalCompositeOperation Mozilla CanvasRenderingContext2D.globalCompositeOperation documentation> getGlobalCompositeOperationUnchecked :: (MonadDOM m, FromJSString result) => CanvasRenderingContext2D -> m result@@ -1086,6 +1217,15 @@ = liftDOM ((self ^. js "lineCap") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.lineCap Mozilla CanvasRenderingContext2D.lineCap documentation> +getLineCapUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ CanvasRenderingContext2D -> m result+getLineCapUnsafe self+ = liftDOM+ (((self ^. js "lineCap") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.lineCap Mozilla CanvasRenderingContext2D.lineCap documentation> getLineCapUnchecked :: (MonadDOM m, FromJSString result) => CanvasRenderingContext2D -> m result@@ -1107,6 +1247,15 @@ = liftDOM ((self ^. js "lineJoin") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.lineJoin Mozilla CanvasRenderingContext2D.lineJoin documentation> +getLineJoinUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ CanvasRenderingContext2D -> m result+getLineJoinUnsafe self+ = liftDOM+ (((self ^. js "lineJoin") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.lineJoin Mozilla CanvasRenderingContext2D.lineJoin documentation> getLineJoinUnchecked :: (MonadDOM m, FromJSString result) => CanvasRenderingContext2D -> m result@@ -1180,6 +1329,15 @@ = liftDOM ((self ^. js "shadowColor") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.shadowColor Mozilla CanvasRenderingContext2D.shadowColor documentation> +getShadowColorUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ CanvasRenderingContext2D -> m result+getShadowColorUnsafe self+ = liftDOM+ (((self ^. js "shadowColor") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.shadowColor Mozilla CanvasRenderingContext2D.shadowColor documentation> getShadowColorUnchecked :: (MonadDOM m, FromJSString result) => CanvasRenderingContext2D -> m result@@ -1213,6 +1371,14 @@ = liftDOM ((self ^. js "webkitLineDash") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.webkitLineDash Mozilla CanvasRenderingContext2D.webkitLineDash documentation> +getWebkitLineDashUnsafe ::+ (MonadDOM m, HasCallStack) => CanvasRenderingContext2D -> m Array+getWebkitLineDashUnsafe self+ = liftDOM+ (((self ^. js "webkitLineDash") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.webkitLineDash Mozilla CanvasRenderingContext2D.webkitLineDash documentation> getWebkitLineDashUnchecked :: (MonadDOM m) => CanvasRenderingContext2D -> m Array getWebkitLineDashUnchecked self@@ -1300,6 +1466,15 @@ = liftDOM ((self ^. js "strokeStyle") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.strokeStyle Mozilla CanvasRenderingContext2D.strokeStyle documentation> +getStrokeStyleUnsafe ::+ (MonadDOM m, HasCallStack) =>+ CanvasRenderingContext2D -> m CanvasStyle+getStrokeStyleUnsafe self+ = liftDOM+ (((self ^. js "strokeStyle") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.strokeStyle Mozilla CanvasRenderingContext2D.strokeStyle documentation> getStrokeStyleUnchecked :: (MonadDOM m) => CanvasRenderingContext2D -> m CanvasStyle getStrokeStyleUnchecked self@@ -1317,6 +1492,15 @@ (MonadDOM m) => CanvasRenderingContext2D -> m (Maybe CanvasStyle) getFillStyle self = liftDOM ((self ^. js "fillStyle") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.fillStyle Mozilla CanvasRenderingContext2D.fillStyle documentation> +getFillStyleUnsafe ::+ (MonadDOM m, HasCallStack) =>+ CanvasRenderingContext2D -> m CanvasStyle+getFillStyleUnsafe self+ = liftDOM+ (((self ^. js "fillStyle") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.fillStyle Mozilla CanvasRenderingContext2D.fillStyle documentation> getFillStyleUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CapabilityRange- (getMax, getMin, getSupported, CapabilityRange,- castToCapabilityRange, gTypeCapabilityRange)+ (getMax, getMin, getSupported, CapabilityRange(..),+ gTypeCapabilityRange) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CapabilityRange.max Mozilla CapabilityRange.max documentation> getMax :: (MonadDOM m) => CapabilityRange -> m JSVal
@@ -1,12 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CharacterData- (substringData, substringData_, substringDataUnchecked, appendData,- insertData, deleteData, replaceData, setData, getData,- getDataUnchecked, getLength, CharacterData, castToCharacterData,- gTypeCharacterData, IsCharacterData, toCharacterData)+ (substringData, substringData_, substringDataUnsafe,+ substringDataUnchecked, appendData, insertData, deleteData,+ replaceData, setData, getData, getDataUnsafe, getDataUnchecked,+ getLength, CharacterData(..), gTypeCharacterData, IsCharacterData,+ toCharacterData) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CharacterData.substringData Mozilla CharacterData.substringData documentation> substringData ::@@ -38,6 +53,18 @@ [toJSVal offset, toJSVal length])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CharacterData.substringData Mozilla CharacterData.substringData documentation> +substringDataUnsafe ::+ (MonadDOM m, IsCharacterData self, HasCallStack,+ FromJSString result) =>+ self -> Word -> Word -> m result+substringDataUnsafe self offset length+ = liftDOM+ ((((toCharacterData self) ^. jsf "substringData"+ [toJSVal offset, toJSVal length])+ >>= fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CharacterData.substringData Mozilla CharacterData.substringData documentation> substringDataUnchecked :: (MonadDOM m, IsCharacterData self, FromJSString result) => self -> Word -> Word -> m result@@ -98,6 +125,16 @@ getData self = liftDOM (((toCharacterData self) ^. js "data") >>= fromMaybeJSString)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CharacterData.data Mozilla CharacterData.data documentation> +getDataUnsafe ::+ (MonadDOM m, IsCharacterData self, HasCallStack,+ FromJSString result) =>+ self -> m result+getDataUnsafe self+ = liftDOM+ ((((toCharacterData self) ^. js "data") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CharacterData.data Mozilla CharacterData.data documentation> getDataUnchecked ::
@@ -1,8 +1,12 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.ChildNode- (remove, ChildNode, castToChildNode, gTypeChildNode) where+ (remove, ChildNode(..), gTypeChildNode) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -13,6 +17,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/ChildNode.remove Mozilla ChildNode.remove documentation> remove :: (MonadDOM m) => ChildNode -> m ()
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.ClientRect (getTop, getRight, getBottom, getLeft, getWidth, getHeight,- ClientRect, castToClientRect, gTypeClientRect)+ ClientRect(..), gTypeClientRect) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/ClientRect.top Mozilla ClientRect.top documentation> getTop :: (MonadDOM m) => ClientRect -> m Float
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.ClientRectList- (item, item_, itemUnchecked, getLength, ClientRectList,- castToClientRectList, gTypeClientRectList)+ (item, item_, itemUnsafe, itemUnchecked, getLength,+ ClientRectList(..), gTypeClientRectList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/ClientRectList.item Mozilla ClientRectList.item documentation> item ::@@ -26,6 +40,15 @@ item_ :: (MonadDOM m) => ClientRectList -> Word -> m () item_ self index = liftDOM (void (self ^. jsf "item" [toJSVal index]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/ClientRectList.item Mozilla ClientRectList.item documentation> +itemUnsafe ::+ (MonadDOM m, HasCallStack) =>+ ClientRectList -> Word -> m ClientRect+itemUnsafe self index+ = liftDOM+ (((self ^. jsf "item" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/ClientRectList.item Mozilla ClientRectList.item documentation> itemUnchecked ::
@@ -1,10 +1,13 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CloseEvent- (getWasClean, getCode, getReason, CloseEvent, castToCloseEvent,- gTypeCloseEvent)+ (getWasClean, getCode, getReason, CloseEvent(..), gTypeCloseEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +18,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent.wasClean Mozilla CloseEvent.wasClean documentation> getWasClean :: (MonadDOM m) => CloseEvent -> m Bool
@@ -1,13 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CommandLineAPIHost (clearConsoleMessages, copyText, inspect, inspectedObject, inspectedObject_, getEventListeners, getEventListeners_,- getEventListenersUnchecked, databaseId, databaseId_, storageId,- storageId_, CommandLineAPIHost, castToCommandLineAPIHost,+ getEventListenersUnsafe, getEventListenersUnchecked, databaseId,+ databaseId_, storageId, storageId_, CommandLineAPIHost(..), gTypeCommandLineAPIHost) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CommandLineAPIHost.clearConsoleMessages Mozilla CommandLineAPIHost.clearConsoleMessages documentation> clearConsoleMessages :: (MonadDOM m) => CommandLineAPIHost -> m ()@@ -64,6 +78,15 @@ CommandLineAPIHost -> Maybe node -> m () getEventListeners_ self node = liftDOM (void (self ^. jsf "getEventListeners" [toJSVal node]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CommandLineAPIHost.getEventListeners Mozilla CommandLineAPIHost.getEventListeners documentation> +getEventListenersUnsafe ::+ (MonadDOM m, IsNode node, HasCallStack) =>+ CommandLineAPIHost -> Maybe node -> m Array+getEventListenersUnsafe self node+ = liftDOM+ (((self ^. jsf "getEventListeners" [toJSVal node]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CommandLineAPIHost.getEventListeners Mozilla CommandLineAPIHost.getEventListeners documentation> getEventListenersUnchecked ::
@@ -1,8 +1,12 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Comment- (newComment, Comment, castToComment, gTypeComment) where+ (newComment, Comment(..), gTypeComment) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -13,6 +17,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Comment Mozilla Comment documentation> newComment :: (MonadDOM m, ToJSString data') => data' -> m Comment
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CompositionEvent- (initCompositionEvent, getData, CompositionEvent,- castToCompositionEvent, gTypeCompositionEvent)+ (initCompositionEvent, getData, CompositionEvent(..),+ gTypeCompositionEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent.initCompositionEvent Mozilla CompositionEvent.initCompositionEvent documentation> initCompositionEvent ::
@@ -1,11 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.ConvolverNode- (setBuffer, getBuffer, getBufferUnchecked, setNormalize,- getNormalize, ConvolverNode, castToConvolverNode,- gTypeConvolverNode)+ (setBuffer, getBuffer, getBufferUnsafe, getBufferUnchecked,+ setNormalize, getNormalize, ConvolverNode(..), gTypeConvolverNode) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode.buffer Mozilla ConvolverNode.buffer documentation> setBuffer ::@@ -25,6 +38,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode.buffer Mozilla ConvolverNode.buffer documentation> getBuffer :: (MonadDOM m) => ConvolverNode -> m (Maybe AudioBuffer) getBuffer self = liftDOM ((self ^. js "buffer") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode.buffer Mozilla ConvolverNode.buffer documentation> +getBufferUnsafe ::+ (MonadDOM m, HasCallStack) => ConvolverNode -> m AudioBuffer+getBufferUnsafe self+ = liftDOM+ (((self ^. js "buffer") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode.buffer Mozilla ConvolverNode.buffer documentation> getBufferUnchecked ::
@@ -1,12 +1,18 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Coordinates- (getLatitude, getLongitude, getAltitude, getAltitudeUnchecked,- getAccuracy, getAltitudeAccuracy, getAltitudeAccuracyUnchecked,- getHeading, getHeadingUnchecked, getSpeed, getSpeedUnchecked,- Coordinates, castToCoordinates, gTypeCoordinates)+ (getLatitude, getLongitude, getAltitude, getAltitudeUnsafe,+ getAltitudeUnchecked, getAccuracy, getAltitudeAccuracy,+ getAltitudeAccuracyUnsafe, getAltitudeAccuracyUnchecked,+ getHeading, getHeadingUnsafe, getHeadingUnchecked, getSpeed,+ getSpeedUnsafe, getSpeedUnchecked, Coordinates(..),+ gTypeCoordinates) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +23,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Coordinates.latitude Mozilla Coordinates.latitude documentation> getLatitude :: (MonadDOM m) => Coordinates -> m Double@@ -33,6 +49,14 @@ getAltitude self = liftDOM ((self ^. js "altitude") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Coordinates.altitude Mozilla Coordinates.altitude documentation> +getAltitudeUnsafe ::+ (MonadDOM m, HasCallStack) => Coordinates -> m Double+getAltitudeUnsafe self+ = liftDOM+ (((self ^. js "altitude") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Coordinates.altitude Mozilla Coordinates.altitude documentation> getAltitudeUnchecked :: (MonadDOM m) => Coordinates -> m Double getAltitudeUnchecked self = liftDOM ((self ^. js "altitude") >>= fromJSValUnchecked)@@ -49,6 +73,14 @@ = liftDOM ((self ^. js "altitudeAccuracy") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Coordinates.altitudeAccuracy Mozilla Coordinates.altitudeAccuracy documentation> +getAltitudeAccuracyUnsafe ::+ (MonadDOM m, HasCallStack) => Coordinates -> m Double+getAltitudeAccuracyUnsafe self+ = liftDOM+ (((self ^. js "altitudeAccuracy") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Coordinates.altitudeAccuracy Mozilla Coordinates.altitudeAccuracy documentation> getAltitudeAccuracyUnchecked :: (MonadDOM m) => Coordinates -> m Double getAltitudeAccuracyUnchecked self@@ -59,6 +91,14 @@ getHeading self = liftDOM ((self ^. js "heading") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Coordinates.heading Mozilla Coordinates.heading documentation> +getHeadingUnsafe ::+ (MonadDOM m, HasCallStack) => Coordinates -> m Double+getHeadingUnsafe self+ = liftDOM+ (((self ^. js "heading") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Coordinates.heading Mozilla Coordinates.heading documentation> getHeadingUnchecked :: (MonadDOM m) => Coordinates -> m Double getHeadingUnchecked self = liftDOM ((self ^. js "heading") >>= fromJSValUnchecked)@@ -66,6 +106,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/Coordinates.speed Mozilla Coordinates.speed documentation> getSpeed :: (MonadDOM m) => Coordinates -> m (Maybe Double) getSpeed self = liftDOM ((self ^. js "speed") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Coordinates.speed Mozilla Coordinates.speed documentation> +getSpeedUnsafe ::+ (MonadDOM m, HasCallStack) => Coordinates -> m Double+getSpeedUnsafe self+ = liftDOM+ (((self ^. js "speed") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Coordinates.speed Mozilla Coordinates.speed documentation> getSpeedUnchecked :: (MonadDOM m) => Coordinates -> m Double
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Counter- (getIdentifier, getListStyle, getSeparator, Counter, castToCounter,+ (getIdentifier, getListStyle, getSeparator, Counter(..), gTypeCounter) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Counter.identifier Mozilla Counter.identifier documentation> getIdentifier ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Crypto- (getRandomValues, getRandomValues_, getRandomValuesUnchecked,- getWebkitSubtle, getWebkitSubtleUnchecked, Crypto, castToCrypto,- gTypeCrypto)+ (getRandomValues, getRandomValues_, getRandomValuesUnsafe,+ getRandomValuesUnchecked, getWebkitSubtle, getWebkitSubtleUnsafe,+ getWebkitSubtleUnchecked, Crypto(..), gTypeCrypto) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Crypto.getRandomValues Mozilla Crypto.getRandomValues documentation> getRandomValues ::@@ -33,6 +47,15 @@ = liftDOM (void (self ^. jsf "getRandomValues" [toJSVal array])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Crypto.getRandomValues Mozilla Crypto.getRandomValues documentation> +getRandomValuesUnsafe ::+ (MonadDOM m, IsArrayBufferView array, HasCallStack) =>+ Crypto -> Maybe array -> m ArrayBufferView+getRandomValuesUnsafe self array+ = liftDOM+ (((self ^. jsf "getRandomValues" [toJSVal array]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Crypto.getRandomValues Mozilla Crypto.getRandomValues documentation> getRandomValuesUnchecked :: (MonadDOM m, IsArrayBufferView array) => Crypto -> Maybe array -> m ArrayBufferView@@ -45,6 +68,14 @@ getWebkitSubtle :: (MonadDOM m) => Crypto -> m (Maybe SubtleCrypto) getWebkitSubtle self = liftDOM ((self ^. js "webkitSubtle") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Crypto.webkitSubtle Mozilla Crypto.webkitSubtle documentation> +getWebkitSubtleUnsafe ::+ (MonadDOM m, HasCallStack) => Crypto -> m SubtleCrypto+getWebkitSubtleUnsafe self+ = liftDOM+ (((self ^. js "webkitSubtle") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Crypto.webkitSubtle Mozilla Crypto.webkitSubtle documentation> getWebkitSubtleUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CryptoKey- (getType, getExtractable, getAlgorithm, getAlgorithmUnchecked,- getUsages, CryptoKey, castToCryptoKey, gTypeCryptoKey)+ (getType, getExtractable, getAlgorithm, getAlgorithmUnsafe,+ getAlgorithmUnchecked, getUsages, CryptoKey(..), gTypeCryptoKey) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey.type Mozilla CryptoKey.type documentation> getType :: (MonadDOM m) => CryptoKey -> m KeyType@@ -29,6 +43,14 @@ getAlgorithm :: (MonadDOM m) => CryptoKey -> m (Maybe Algorithm) getAlgorithm self = liftDOM ((self ^. js "algorithm") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey.algorithm Mozilla CryptoKey.algorithm documentation> +getAlgorithmUnsafe ::+ (MonadDOM m, HasCallStack) => CryptoKey -> m Algorithm+getAlgorithmUnsafe self+ = liftDOM+ (((self ^. js "algorithm") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey.algorithm Mozilla CryptoKey.algorithm documentation> getAlgorithmUnchecked :: (MonadDOM m) => CryptoKey -> m Algorithm
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CryptoKeyPair- (getPublicKey, getPublicKeyUnchecked, getPrivateKey,- getPrivateKeyUnchecked, CryptoKeyPair, castToCryptoKeyPair,- gTypeCryptoKeyPair)+ (getPublicKey, getPublicKeyUnsafe, getPublicKeyUnchecked,+ getPrivateKey, getPrivateKeyUnsafe, getPrivateKeyUnchecked,+ CryptoKeyPair(..), gTypeCryptoKeyPair) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CryptoKeyPair.publicKey Mozilla CryptoKeyPair.publicKey documentation> getPublicKey ::@@ -24,6 +38,14 @@ = liftDOM ((self ^. js "publicKey") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CryptoKeyPair.publicKey Mozilla CryptoKeyPair.publicKey documentation> +getPublicKeyUnsafe ::+ (MonadDOM m, HasCallStack) => CryptoKeyPair -> m CryptoKey+getPublicKeyUnsafe self+ = liftDOM+ (((self ^. js "publicKey") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CryptoKeyPair.publicKey Mozilla CryptoKeyPair.publicKey documentation> getPublicKeyUnchecked :: (MonadDOM m) => CryptoKeyPair -> m CryptoKey getPublicKeyUnchecked self@@ -34,6 +56,14 @@ (MonadDOM m) => CryptoKeyPair -> m (Maybe CryptoKey) getPrivateKey self = liftDOM ((self ^. js "privateKey") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/CryptoKeyPair.privateKey Mozilla CryptoKeyPair.privateKey documentation> +getPrivateKeyUnsafe ::+ (MonadDOM m, HasCallStack) => CryptoKeyPair -> m CryptoKey+getPrivateKeyUnsafe self+ = liftDOM+ (((self ^. js "privateKey") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/CryptoKeyPair.privateKey Mozilla CryptoKeyPair.privateKey documentation> getPrivateKeyUnchecked ::
@@ -1,10 +1,13 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.CustomEvent- (initCustomEvent, getDetail, CustomEvent, castToCustomEvent,- gTypeCustomEvent)+ (initCustomEvent, getDetail, CustomEvent(..), gTypeCustomEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +18,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent.initCustomEvent Mozilla CustomEvent.initCustomEvent documentation> initCustomEvent ::
@@ -1,10 +1,13 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DOMError- (getName, DOMError, castToDOMError, gTypeDOMError, IsDOMError,- toDOMError)+ (getName, DOMError(..), gTypeDOMError, IsDOMError, toDOMError) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +18,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMError.name Mozilla DOMError.name documentation> getName ::
@@ -1,14 +1,20 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DOMImplementation (hasFeature, hasFeature_, createDocumentType, createDocumentType_,- createDocumentTypeUnchecked, createDocument, createDocument_,+ createDocumentTypeUnsafe, createDocumentTypeUnchecked,+ createDocument, createDocument_, createDocumentUnsafe, createDocumentUnchecked, createCSSStyleSheet, createCSSStyleSheet_,- createCSSStyleSheetUnchecked, createHTMLDocument,- createHTMLDocument_, createHTMLDocumentUnchecked,- DOMImplementation, castToDOMImplementation, gTypeDOMImplementation)+ createCSSStyleSheetUnsafe, createCSSStyleSheetUnchecked,+ createHTMLDocument, createHTMLDocument_, createHTMLDocumentUnsafe,+ createHTMLDocumentUnchecked, DOMImplementation(..),+ gTypeDOMImplementation) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +25,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation.hasFeature Mozilla DOMImplementation.hasFeature documentation> hasFeature ::@@ -64,6 +80,20 @@ [toJSVal qualifiedName, toJSVal publicId, toJSVal systemId])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation.createDocumentType Mozilla DOMImplementation.createDocumentType documentation> +createDocumentTypeUnsafe ::+ (MonadDOM m, ToJSString qualifiedName, ToJSString publicId,+ ToJSString systemId, HasCallStack) =>+ DOMImplementation ->+ Maybe qualifiedName ->+ Maybe publicId -> Maybe systemId -> m DocumentType+createDocumentTypeUnsafe self qualifiedName publicId systemId+ = liftDOM+ (((self ^. jsf "createDocumentType"+ [toJSVal qualifiedName, toJSVal publicId, toJSVal systemId])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation.createDocumentType Mozilla DOMImplementation.createDocumentType documentation> createDocumentTypeUnchecked :: (MonadDOM m, ToJSString qualifiedName, ToJSString publicId, ToJSString systemId) =>@@ -101,6 +131,20 @@ [toJSVal namespaceURI, toJSVal qualifiedName, toJSVal doctype])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation.createDocument Mozilla DOMImplementation.createDocument documentation> +createDocumentUnsafe ::+ (MonadDOM m, ToJSString namespaceURI, ToJSString qualifiedName,+ HasCallStack) =>+ DOMImplementation ->+ Maybe namespaceURI ->+ Maybe qualifiedName -> Maybe DocumentType -> m Document+createDocumentUnsafe self namespaceURI qualifiedName doctype+ = liftDOM+ (((self ^. jsf "createDocument"+ [toJSVal namespaceURI, toJSVal qualifiedName, toJSVal doctype])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation.createDocument Mozilla DOMImplementation.createDocument documentation> createDocumentUnchecked :: (MonadDOM m, ToJSString namespaceURI, ToJSString qualifiedName) => DOMImplementation ->@@ -131,6 +175,17 @@ (self ^. jsf "createCSSStyleSheet" [toJSVal title, toJSVal media])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation.createCSSStyleSheet Mozilla DOMImplementation.createCSSStyleSheet documentation> +createCSSStyleSheetUnsafe ::+ (MonadDOM m, ToJSString title, ToJSString media, HasCallStack) =>+ DOMImplementation -> title -> media -> m CSSStyleSheet+createCSSStyleSheetUnsafe self title media+ = liftDOM+ (((self ^. jsf "createCSSStyleSheet"+ [toJSVal title, toJSVal media])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation.createCSSStyleSheet Mozilla DOMImplementation.createCSSStyleSheet documentation> createCSSStyleSheetUnchecked :: (MonadDOM m, ToJSString title, ToJSString media) => DOMImplementation -> title -> media -> m CSSStyleSheet@@ -153,6 +208,15 @@ DOMImplementation -> title -> m () createHTMLDocument_ self title = liftDOM (void (self ^. jsf "createHTMLDocument" [toJSVal title]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation.createHTMLDocument Mozilla DOMImplementation.createHTMLDocument documentation> +createHTMLDocumentUnsafe ::+ (MonadDOM m, ToJSString title, HasCallStack) =>+ DOMImplementation -> title -> m HTMLDocument+createHTMLDocumentUnsafe self title+ = liftDOM+ (((self ^. jsf "createHTMLDocument" [toJSVal title]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation.createHTMLDocument Mozilla DOMImplementation.createHTMLDocument documentation> createHTMLDocumentUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DOMNamedFlowCollection- (item, item_, itemUnchecked, namedItem, namedItem_,- namedItemUnchecked, getLength, DOMNamedFlowCollection,- castToDOMNamedFlowCollection, gTypeDOMNamedFlowCollection)+ (item, item_, itemUnsafe, itemUnchecked, namedItem, namedItem_,+ namedItemUnsafe, namedItemUnchecked, getLength,+ DOMNamedFlowCollection(..), gTypeDOMNamedFlowCollection) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/WebKitNamedFlowCollection.item Mozilla WebKitNamedFlowCollection.item documentation> item ::@@ -30,6 +44,15 @@ = liftDOM (void (self ^. jsf "item" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/WebKitNamedFlowCollection.item Mozilla WebKitNamedFlowCollection.item documentation> +itemUnsafe ::+ (MonadDOM m, HasCallStack) =>+ DOMNamedFlowCollection -> Word -> m WebKitNamedFlow+itemUnsafe self index+ = liftDOM+ (((self ^. jsf "item" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/WebKitNamedFlowCollection.item Mozilla WebKitNamedFlowCollection.item documentation> itemUnchecked :: (MonadDOM m) => DOMNamedFlowCollection -> Word -> m WebKitNamedFlow itemUnchecked self index@@ -49,6 +72,15 @@ DOMNamedFlowCollection -> name -> m () namedItem_ self name = liftDOM (void (self ^. jsf "namedItem" [toJSVal name]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/WebKitNamedFlowCollection.namedItem Mozilla WebKitNamedFlowCollection.namedItem documentation> +namedItemUnsafe ::+ (MonadDOM m, ToJSString name, HasCallStack) =>+ DOMNamedFlowCollection -> name -> m WebKitNamedFlow+namedItemUnsafe self name+ = liftDOM+ (((self ^. jsf "namedItem" [toJSVal name]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/WebKitNamedFlowCollection.namedItem Mozilla WebKitNamedFlowCollection.namedItem documentation> namedItemUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DOMParser (newDOMParser, parseFromString, parseFromString_,- parseFromStringUnchecked, DOMParser, castToDOMParser,+ parseFromStringUnsafe, parseFromStringUnchecked, DOMParser(..), gTypeDOMParser) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMParser Mozilla DOMParser documentation> newDOMParser :: (MonadDOM m) => m DOMParser@@ -38,6 +52,18 @@ = liftDOM (void (self ^. jsf "parseFromString" [toJSVal str, toJSVal contentType]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMParser.parseFromString Mozilla DOMParser.parseFromString documentation> +parseFromStringUnsafe ::+ (MonadDOM m, ToJSString str, ToJSString contentType,+ HasCallStack) =>+ DOMParser -> str -> contentType -> m Document+parseFromStringUnsafe self str contentType+ = liftDOM+ (((self ^. jsf "parseFromString"+ [toJSVal str, toJSVal contentType])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMParser.parseFromString Mozilla DOMParser.parseFromString documentation> parseFromStringUnchecked ::
@@ -1,11 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DOMSettableTokenList- (_get, _get_, _getUnchecked, setValue, getValue,- DOMSettableTokenList, castToDOMSettableTokenList,- gTypeDOMSettableTokenList)+ (_get, _get_, _getUnsafe, _getUnchecked, setValue, getValue,+ DOMSettableTokenList(..), gTypeDOMSettableTokenList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMSettableTokenList._get Mozilla DOMSettableTokenList._get documentation> _get ::@@ -29,6 +42,15 @@ _get_ :: (MonadDOM m) => DOMSettableTokenList -> Word -> m () _get_ self index = liftDOM (void (self ^. jsf "_get" [toJSVal index]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMSettableTokenList._get Mozilla DOMSettableTokenList._get documentation> +_getUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ DOMSettableTokenList -> Word -> m result+_getUnsafe self index+ = liftDOM+ (((self ^. jsf "_get" [toJSVal index]) >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMSettableTokenList._get Mozilla DOMSettableTokenList._get documentation> _getUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DOMStringList- (item, item_, itemUnchecked, contains, contains_, getLength,- DOMStringList, castToDOMStringList, gTypeDOMStringList)+ (item, item_, itemUnsafe, itemUnchecked, contains, contains_,+ getLength, DOMStringList(..), gTypeDOMStringList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList.item Mozilla DOMStringList.item documentation> item ::@@ -28,6 +42,15 @@ item_ :: (MonadDOM m) => DOMStringList -> Word -> m () item_ self index = liftDOM (void (self ^. jsf "item" [toJSVal index]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList.item Mozilla DOMStringList.item documentation> +itemUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ DOMStringList -> Word -> m result+itemUnsafe self index+ = liftDOM+ (((self ^. jsf "item" [toJSVal index]) >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList.item Mozilla DOMStringList.item documentation> itemUnchecked ::
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DOMTokenList- (item, item_, itemUnchecked, contains, contains_, add, remove,- toggle, toggle_, toString, toString_, getLength, DOMTokenList,- castToDOMTokenList, gTypeDOMTokenList, IsDOMTokenList,+ (item, item_, itemUnsafe, itemUnchecked, contains, contains_, add,+ remove, toggle, toggle_, toString, toString_, getLength,+ DOMTokenList(..), gTypeDOMTokenList, IsDOMTokenList, toDOMTokenList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList.item Mozilla DOMTokenList.item documentation> item ::@@ -32,6 +46,17 @@ item_ self index = liftDOM (void ((toDOMTokenList self) ^. jsf "item" [toJSVal index]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList.item Mozilla DOMTokenList.item documentation> +itemUnsafe ::+ (MonadDOM m, IsDOMTokenList self, HasCallStack,+ FromJSString result) =>+ self -> Word -> m result+itemUnsafe self index+ = liftDOM+ ((((toDOMTokenList self) ^. jsf "item" [toJSVal index]) >>=+ fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList.item Mozilla DOMTokenList.item documentation> itemUnchecked ::
@@ -1,10 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DataCue- (newDataCue, newDataCue', setData, getData, getDataUnchecked,- setValue, getValue, getType, DataCue, castToDataCue, gTypeDataCue)+ (newDataCue, newDataCue', setData, getData, getDataUnsafe,+ getDataUnchecked, setValue, getValue, getType, DataCue(..),+ gTypeDataCue) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/WebKitDataCue Mozilla WebKitDataCue documentation> newDataCue :: (MonadDOM m) => m DataCue@@ -38,6 +53,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/WebKitDataCue.data Mozilla WebKitDataCue.data documentation> getData :: (MonadDOM m) => DataCue -> m (Maybe ArrayBuffer) getData self = liftDOM ((self ^. js "data") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/WebKitDataCue.data Mozilla WebKitDataCue.data documentation> +getDataUnsafe ::+ (MonadDOM m, HasCallStack) => DataCue -> m ArrayBuffer+getDataUnsafe self+ = liftDOM+ (((self ^. js "data") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/WebKitDataCue.data Mozilla WebKitDataCue.data documentation> getDataUnchecked :: (MonadDOM m) => DataCue -> m ArrayBuffer
@@ -1,13 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DataTransfer (clearData, getData, getData_, setData, setDragImage, setDropEffect, getDropEffect, setEffectAllowed, getEffectAllowed,- getTypes, getTypesUnchecked, getFiles, getFilesUnchecked, getItems,- getItemsUnchecked, DataTransfer, castToDataTransfer,- gTypeDataTransfer)+ getTypes, getTypesUnsafe, getTypesUnchecked, getFiles,+ getFilesUnsafe, getFilesUnchecked, getItems, getItemsUnsafe,+ getItemsUnchecked, DataTransfer(..), gTypeDataTransfer) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer.clearData Mozilla DataTransfer.clearData documentation> clearData ::@@ -85,6 +99,14 @@ getTypes self = liftDOM ((self ^. js "types") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer.types Mozilla DataTransfer.types documentation> +getTypesUnsafe ::+ (MonadDOM m, HasCallStack) => DataTransfer -> m Array+getTypesUnsafe self+ = liftDOM+ (((self ^. js "types") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer.types Mozilla DataTransfer.types documentation> getTypesUnchecked :: (MonadDOM m) => DataTransfer -> m Array getTypesUnchecked self = liftDOM ((self ^. js "types") >>= fromJSValUnchecked)@@ -94,6 +116,14 @@ getFiles self = liftDOM ((self ^. js "files") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer.files Mozilla DataTransfer.files documentation> +getFilesUnsafe ::+ (MonadDOM m, HasCallStack) => DataTransfer -> m FileList+getFilesUnsafe self+ = liftDOM+ (((self ^. js "files") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer.files Mozilla DataTransfer.files documentation> getFilesUnchecked :: (MonadDOM m) => DataTransfer -> m FileList getFilesUnchecked self = liftDOM ((self ^. js "files") >>= fromJSValUnchecked)@@ -102,6 +132,15 @@ getItems :: (MonadDOM m) => DataTransfer -> m (Maybe DataTransferItemList) getItems self = liftDOM ((self ^. js "items") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer.items Mozilla DataTransfer.items documentation> +getItemsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ DataTransfer -> m DataTransferItemList+getItemsUnsafe self+ = liftDOM+ (((self ^. js "items") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer.items Mozilla DataTransfer.items documentation> getItemsUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DataTransferItem- (getAsString, getAsFile, getAsFile_, getAsFileUnchecked, getKind,- getType, DataTransferItem, castToDataTransferItem,+ (getAsString, getAsFile, getAsFile_, getAsFileUnsafe,+ getAsFileUnchecked, getKind, getType, DataTransferItem(..), gTypeDataTransferItem) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem.getAsString Mozilla DataTransferItem.getAsString documentation> getAsString ::@@ -32,6 +46,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem.getAsFile Mozilla DataTransferItem.getAsFile documentation> getAsFile_ :: (MonadDOM m) => DataTransferItem -> m () getAsFile_ self = liftDOM (void (self ^. jsf "getAsFile" ()))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem.getAsFile Mozilla DataTransferItem.getAsFile documentation> +getAsFileUnsafe ::+ (MonadDOM m, HasCallStack) => DataTransferItem -> m Blob+getAsFileUnsafe self+ = liftDOM+ (((self ^. jsf "getAsFile" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem.getAsFile Mozilla DataTransferItem.getAsFile documentation> getAsFileUnchecked :: (MonadDOM m) => DataTransferItem -> m Blob
@@ -1,11 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DataTransferItemList- (item, item_, itemUnchecked, clear, addFile, add, getLength,- DataTransferItemList, castToDataTransferItemList,- gTypeDataTransferItemList)+ (item, item_, itemUnsafe, itemUnchecked, clear, addFile, add,+ getLength, DataTransferItemList(..), gTypeDataTransferItemList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList.item Mozilla DataTransferItemList.item documentation> item ::@@ -28,6 +41,15 @@ item_ :: (MonadDOM m) => DataTransferItemList -> Word -> m () item_ self index = liftDOM (void (self ^. jsf "item" [toJSVal index]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList.item Mozilla DataTransferItemList.item documentation> +itemUnsafe ::+ (MonadDOM m, HasCallStack) =>+ DataTransferItemList -> Word -> m DataTransferItem+itemUnsafe self index+ = liftDOM+ (((self ^. jsf "item" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList.item Mozilla DataTransferItemList.item documentation> itemUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Database- (changeVersion, transaction, readTransaction, getVersion, Database,- castToDatabase, gTypeDatabase)+ (changeVersion, transaction, readTransaction, getVersion,+ Database(..), gTypeDatabase) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Database.changeVersion Mozilla Database.changeVersion documentation> changeVersion ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DatabaseCallback (newDatabaseCallback, newDatabaseCallbackSync, newDatabaseCallbackAsync, DatabaseCallback) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/DatabaseCallback Mozilla DatabaseCallback documentation> newDatabaseCallback ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DedicatedWorkerGlobalScope- (postMessage, message, DedicatedWorkerGlobalScope,- castToDedicatedWorkerGlobalScope, gTypeDedicatedWorkerGlobalScope)+ (postMessage, message, DedicatedWorkerGlobalScope(..),+ gTypeDedicatedWorkerGlobalScope) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope.postMessage Mozilla DedicatedWorkerGlobalScope.postMessage documentation> postMessage ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DelayNode- (getDelayTime, getDelayTimeUnchecked, DelayNode, castToDelayNode,- gTypeDelayNode)+ (getDelayTime, getDelayTimeUnsafe, getDelayTimeUnchecked,+ DelayNode(..), gTypeDelayNode) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,11 +19,29 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/DelayNode.delayTime Mozilla DelayNode.delayTime documentation> getDelayTime :: (MonadDOM m) => DelayNode -> m (Maybe AudioParam) getDelayTime self = liftDOM ((self ^. js "delayTime") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DelayNode.delayTime Mozilla DelayNode.delayTime documentation> +getDelayTimeUnsafe ::+ (MonadDOM m, HasCallStack) => DelayNode -> m AudioParam+getDelayTimeUnsafe self+ = liftDOM+ (((self ^. js "delayTime") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DelayNode.delayTime Mozilla DelayNode.delayTime documentation> getDelayTimeUnchecked :: (MonadDOM m) => DelayNode -> m AudioParam
@@ -1,13 +1,18 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DeviceMotionEvent- (initDeviceMotionEvent, getAcceleration, getAccelerationUnchecked,- getAccelerationIncludingGravity,+ (initDeviceMotionEvent, getAcceleration, getAccelerationUnsafe,+ getAccelerationUnchecked, getAccelerationIncludingGravity,+ getAccelerationIncludingGravityUnsafe, getAccelerationIncludingGravityUnchecked, getRotationRate,- getRotationRateUnchecked, getInterval, DeviceMotionEvent,- castToDeviceMotionEvent, gTypeDeviceMotionEvent)+ getRotationRateUnsafe, getRotationRateUnchecked, getInterval,+ DeviceMotionEvent(..), gTypeDeviceMotionEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +23,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent.initDeviceMotionEvent Mozilla DeviceMotionEvent.initDeviceMotionEvent documentation> initDeviceMotionEvent ::@@ -47,6 +62,14 @@ = liftDOM ((self ^. js "acceleration") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent.acceleration Mozilla DeviceMotionEvent.acceleration documentation> +getAccelerationUnsafe ::+ (MonadDOM m, HasCallStack) => DeviceMotionEvent -> m Acceleration+getAccelerationUnsafe self+ = liftDOM+ (((self ^. js "acceleration") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent.acceleration Mozilla DeviceMotionEvent.acceleration documentation> getAccelerationUnchecked :: (MonadDOM m) => DeviceMotionEvent -> m Acceleration getAccelerationUnchecked self@@ -60,6 +83,15 @@ ((self ^. js "accelerationIncludingGravity") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent.accelerationIncludingGravity Mozilla DeviceMotionEvent.accelerationIncludingGravity documentation> +getAccelerationIncludingGravityUnsafe ::+ (MonadDOM m, HasCallStack) =>+ DeviceMotionEvent -> m Acceleration+getAccelerationIncludingGravityUnsafe self+ = liftDOM+ (((self ^. js "accelerationIncludingGravity") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent.accelerationIncludingGravity Mozilla DeviceMotionEvent.accelerationIncludingGravity documentation> getAccelerationIncludingGravityUnchecked :: (MonadDOM m) => DeviceMotionEvent -> m Acceleration getAccelerationIncludingGravityUnchecked self@@ -72,6 +104,14 @@ (MonadDOM m) => DeviceMotionEvent -> m (Maybe RotationRate) getRotationRate self = liftDOM ((self ^. js "rotationRate") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent.rotationRate Mozilla DeviceMotionEvent.rotationRate documentation> +getRotationRateUnsafe ::+ (MonadDOM m, HasCallStack) => DeviceMotionEvent -> m RotationRate+getRotationRateUnsafe self+ = liftDOM+ (((self ^. js "rotationRate") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent.rotationRate Mozilla DeviceMotionEvent.rotationRate documentation> getRotationRateUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DeviceOrientationEvent (initDeviceOrientationEvent, getAlpha, getBeta, getGamma,- getAbsolute, DeviceOrientationEvent, castToDeviceOrientationEvent,+ getAbsolute, DeviceOrientationEvent(..), gTypeDeviceOrientationEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent.initDeviceOrientationEvent Mozilla DeviceOrientationEvent.initDeviceOrientationEvent documentation> initDeviceOrientationEvent ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DeviceProximityEvent- (getValue, getMin, getMax, DeviceProximityEvent,- castToDeviceProximityEvent, gTypeDeviceProximityEvent)+ (getValue, getMin, getMax, DeviceProximityEvent(..),+ gTypeDeviceProximityEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent.value Mozilla DeviceProximityEvent.value documentation> getValue :: (MonadDOM m) => DeviceProximityEvent -> m Double
@@ -1,93 +1,124 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Document- (newDocument, createElement, createElement_,+ (newDocument, createElement, createElement_, createElementUnsafe, createElementUnchecked, createDocumentFragment,- createDocumentFragment_, createDocumentFragmentUnchecked,- createTextNode, createTextNode_, createTextNodeUnchecked,- createComment, createComment_, createCommentUnchecked,- createCDATASection, createCDATASection_,+ createDocumentFragment_, createDocumentFragmentUnsafe,+ createDocumentFragmentUnchecked, createTextNode, createTextNode_,+ createTextNodeUnsafe, createTextNodeUnchecked, createComment,+ createComment_, createCommentUnsafe, createCommentUnchecked,+ createCDATASection, createCDATASection_, createCDATASectionUnsafe, createCDATASectionUnchecked, createProcessingInstruction,- createProcessingInstruction_, createProcessingInstructionUnchecked,- createAttribute, createAttribute_, createAttributeUnchecked,+ createProcessingInstruction_, createProcessingInstructionUnsafe,+ createProcessingInstructionUnchecked, createAttribute,+ createAttribute_, createAttributeUnsafe, createAttributeUnchecked, createEntityReference, createEntityReference_,- createEntityReferenceUnchecked, getElementsByTagName,- getElementsByTagName_, getElementsByTagNameUnchecked, importNode,- importNode_, importNodeUnchecked, createElementNS,- createElementNS_, createElementNSUnchecked, createAttributeNS,- createAttributeNS_, createAttributeNSUnchecked,+ createEntityReferenceUnsafe, createEntityReferenceUnchecked,+ getElementsByTagName, getElementsByTagName_,+ getElementsByTagNameUnsafe, getElementsByTagNameUnchecked,+ importNode, importNode_, importNodeUnsafe, importNodeUnchecked,+ createElementNS, createElementNS_, createElementNSUnsafe,+ createElementNSUnchecked, createAttributeNS, createAttributeNS_,+ createAttributeNSUnsafe, createAttributeNSUnchecked, getElementsByTagNameNS, getElementsByTagNameNS_,- getElementsByTagNameNSUnchecked, getElementById, getElementById_,- getElementByIdUnchecked, adoptNode, adoptNode_, adoptNodeUnchecked,- createEvent, createEvent_, createEventUnchecked, createRange,- createRange_, createRangeUnchecked, createNodeIterator,- createNodeIterator_, createNodeIteratorUnchecked, createTreeWalker,- createTreeWalker_, createTreeWalkerUnchecked, getOverrideStyle,- getOverrideStyle_, getOverrideStyleUnchecked, createExpression,- createExpression_, createExpressionUnchecked, createNSResolver,- createNSResolver_, createNSResolverUnchecked, evaluate, evaluate_,- evaluateUnchecked, execCommand, execCommand_, queryCommandEnabled,- queryCommandEnabled_, queryCommandIndeterm, queryCommandIndeterm_,- queryCommandState, queryCommandState_, queryCommandSupported,- queryCommandSupported_, queryCommandValue, queryCommandValue_,- getElementsByName, getElementsByName_, getElementsByNameUnchecked,- elementFromPoint, elementFromPoint_, elementFromPointUnchecked,+ getElementsByTagNameNSUnsafe, getElementsByTagNameNSUnchecked,+ getElementById, getElementById_, getElementByIdUnsafe,+ getElementByIdUnchecked, adoptNode, adoptNode_, adoptNodeUnsafe,+ adoptNodeUnchecked, createEvent, createEvent_, createEventUnsafe,+ createEventUnchecked, createRange, createRange_, createRangeUnsafe,+ createRangeUnchecked, createNodeIterator, createNodeIterator_,+ createNodeIteratorUnsafe, createNodeIteratorUnchecked,+ createTreeWalker, createTreeWalker_, createTreeWalkerUnsafe,+ createTreeWalkerUnchecked, getOverrideStyle, getOverrideStyle_,+ getOverrideStyleUnsafe, getOverrideStyleUnchecked,+ createExpression, createExpression_, createExpressionUnsafe,+ createExpressionUnchecked, createNSResolver, createNSResolver_,+ createNSResolverUnsafe, createNSResolverUnchecked, evaluate,+ evaluate_, evaluateUnsafe, evaluateUnchecked, execCommand,+ execCommand_, queryCommandEnabled, queryCommandEnabled_,+ queryCommandIndeterm, queryCommandIndeterm_, queryCommandState,+ queryCommandState_, queryCommandSupported, queryCommandSupported_,+ queryCommandValue, queryCommandValue_, getElementsByName,+ getElementsByName_, getElementsByNameUnsafe,+ getElementsByNameUnchecked, elementFromPoint, elementFromPoint_,+ elementFromPointUnsafe, elementFromPointUnchecked, caretRangeFromPoint, caretRangeFromPoint_,- caretRangeFromPointUnchecked, getSelection, getSelection_,+ caretRangeFromPointUnsafe, caretRangeFromPointUnchecked,+ getSelection, getSelection_, getSelectionUnsafe, getSelectionUnchecked, getCSSCanvasContext, getCSSCanvasContext_,- getCSSCanvasContextUnchecked, getElementsByClassName,- getElementsByClassName_, getElementsByClassNameUnchecked, hasFocus,- hasFocus_, querySelector, querySelector_, querySelectorUnchecked,- querySelectorAll, querySelectorAll_, querySelectorAllUnchecked,- webkitCancelFullScreen, webkitExitFullscreen, exitPointerLock,- webkitGetNamedFlows, webkitGetNamedFlows_,+ getCSSCanvasContextUnsafe, getCSSCanvasContextUnchecked,+ getElementsByClassName, getElementsByClassName_,+ getElementsByClassNameUnsafe, getElementsByClassNameUnchecked,+ hasFocus, hasFocus_, querySelector, querySelector_,+ querySelectorUnsafe, querySelectorUnchecked, querySelectorAll,+ querySelectorAll_, querySelectorAllUnsafe,+ querySelectorAllUnchecked, webkitCancelFullScreen,+ webkitExitFullscreen, exitPointerLock, webkitGetNamedFlows,+ webkitGetNamedFlows_, webkitGetNamedFlowsUnsafe, webkitGetNamedFlowsUnchecked, createTouch, createTouch_,- createTouchUnchecked, createTouchList, createTouchList_,- createTouchListUnchecked, getDoctype, getDoctypeUnchecked,- getImplementation, getImplementationUnchecked, getDocumentElement,- getDocumentElementUnchecked, getInputEncoding,- getInputEncodingUnchecked, getXmlEncoding, getXmlEncodingUnchecked,- setXmlVersion, getXmlVersion, getXmlVersionUnchecked,- setXmlStandalone, getXmlStandalone, getDocumentURI,- getDocumentURIUnchecked, getDefaultView, getDefaultViewUnchecked,- getStyleSheets, getStyleSheetsUnchecked, getContentType, setTitle,- getTitle, getTitleUnchecked, getReferrer, setDomain, getDomain,- getDomainUnchecked, getURL, setCookie, getCookie,- getCookieUnchecked, setBody, getBody, getBodyUnchecked, getHead,- getHeadUnchecked, getImages, getImagesUnchecked, getApplets,- getAppletsUnchecked, getLinks, getLinksUnchecked, getForms,- getFormsUnchecked, getAnchors, getAnchorsUnchecked,- getLastModified, setLocation, getLocation, getLocationUnchecked,- setCharset, getCharset, getCharsetUnchecked, getDefaultCharset,- getDefaultCharsetUnchecked, getReadyState, getReadyStateUnchecked,- getCharacterSet, getCharacterSetUnchecked,- getPreferredStylesheetSet, getPreferredStylesheetSetUnchecked,- setSelectedStylesheetSet, getSelectedStylesheetSet,+ createTouchUnsafe, createTouchUnchecked, createTouchList,+ createTouchList_, createTouchListUnsafe, createTouchListUnchecked,+ getDoctype, getDoctypeUnsafe, getDoctypeUnchecked,+ getImplementation, getImplementationUnsafe,+ getImplementationUnchecked, getDocumentElement,+ getDocumentElementUnsafe, getDocumentElementUnchecked,+ getInputEncoding, getInputEncodingUnsafe,+ getInputEncodingUnchecked, getXmlEncoding, getXmlEncodingUnsafe,+ getXmlEncodingUnchecked, setXmlVersion, getXmlVersion,+ getXmlVersionUnsafe, getXmlVersionUnchecked, setXmlStandalone,+ getXmlStandalone, getDocumentURI, getDocumentURIUnsafe,+ getDocumentURIUnchecked, getDefaultView, getDefaultViewUnsafe,+ getDefaultViewUnchecked, getStyleSheets, getStyleSheetsUnsafe,+ getStyleSheetsUnchecked, getContentType, setTitle, getTitle,+ getTitleUnsafe, getTitleUnchecked, getReferrer, setDomain,+ getDomain, getDomainUnsafe, getDomainUnchecked, getURL, setCookie,+ getCookie, getCookieUnsafe, getCookieUnchecked, setBody, getBody,+ getBodyUnsafe, getBodyUnchecked, getHead, getHeadUnsafe,+ getHeadUnchecked, getImages, getImagesUnsafe, getImagesUnchecked,+ getApplets, getAppletsUnsafe, getAppletsUnchecked, getLinks,+ getLinksUnsafe, getLinksUnchecked, getForms, getFormsUnsafe,+ getFormsUnchecked, getAnchors, getAnchorsUnsafe,+ getAnchorsUnchecked, getLastModified, setLocation, getLocation,+ getLocationUnsafe, getLocationUnchecked, setCharset, getCharset,+ getCharsetUnsafe, getCharsetUnchecked, getDefaultCharset,+ getDefaultCharsetUnsafe, getDefaultCharsetUnchecked, getReadyState,+ getReadyStateUnsafe, getReadyStateUnchecked, getCharacterSet,+ getCharacterSetUnsafe, getCharacterSetUnchecked,+ getPreferredStylesheetSet, getPreferredStylesheetSetUnsafe,+ getPreferredStylesheetSetUnchecked, setSelectedStylesheetSet,+ getSelectedStylesheetSet, getSelectedStylesheetSetUnsafe, getSelectedStylesheetSetUnchecked, getActiveElement,- getActiveElementUnchecked, getCompatMode, getWebkitIsFullScreen,- getWebkitFullScreenKeyboardInputAllowed,+ getActiveElementUnsafe, getActiveElementUnchecked, getCompatMode,+ getWebkitIsFullScreen, getWebkitFullScreenKeyboardInputAllowed, getWebkitCurrentFullScreenElement,+ getWebkitCurrentFullScreenElementUnsafe, getWebkitCurrentFullScreenElementUnchecked, getWebkitFullscreenEnabled, getWebkitFullscreenElement,+ getWebkitFullscreenElementUnsafe, getWebkitFullscreenElementUnchecked, getPointerLockElement,- getPointerLockElementUnchecked, getFonts, getFontsUnchecked, abort,- blur, change, click, contextMenu, dblClick, drag, dragEnd,- dragEnter, dragLeave, dragOver, dragStart, drop, error, focus,- input, invalid, keyDown, keyPress, keyUp, load, mouseDown,- mouseEnter, mouseLeave, mouseMove, mouseOut, mouseOver, mouseUp,- mouseWheel, readyStateChange, scroll, select, submit, wheel,- beforeCut, cut, beforeCopy, copy, beforePaste, paste, reset,- search, selectStart, selectionchange, touchStart, touchMove,- touchEnd, touchCancel, webKitFullscreenChange,- webKitFullscreenError, pointerlockchange, pointerlockerror,- securitypolicyviolation, webKitWillRevealBottom,+ getPointerLockElementUnsafe, getPointerLockElementUnchecked,+ getFonts, getFontsUnsafe, getFontsUnchecked, abort, blur, change,+ click, contextMenu, dblClick, drag, dragEnd, dragEnter, dragLeave,+ dragOver, dragStart, drop, error, focus, input, invalid, keyDown,+ keyPress, keyUp, load, mouseDown, mouseEnter, mouseLeave,+ mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel,+ readyStateChange, scroll, select, submit, wheel, beforeCut, cut,+ beforeCopy, copy, beforePaste, paste, reset, search, selectStart,+ selectionchange, touchStart, touchMove, touchEnd, touchCancel,+ webKitFullscreenChange, webKitFullscreenError, pointerlockchange,+ pointerlockerror, securitypolicyviolation, webKitWillRevealBottom, webKitWillRevealLeft, webKitWillRevealRight, webKitWillRevealTop, getVisibilityState, getHidden, getSecurityPolicy,- getSecurityPolicyUnchecked, getCurrentScript,- getCurrentScriptUnchecked, getOrigin, Document, castToDocument,- gTypeDocument, IsDocument, toDocument)+ getSecurityPolicyUnsafe, getSecurityPolicyUnchecked,+ getCurrentScript, getCurrentScriptUnsafe,+ getCurrentScriptUnchecked, getOrigin, Document(..), gTypeDocument,+ IsDocument, toDocument) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -98,6 +129,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document Mozilla Document documentation> newDocument :: (MonadDOM m) => m Document@@ -121,6 +162,16 @@ (void ((toDocument self) ^. jsf "createElement" [toJSVal tagName])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createElement Mozilla Document.createElement documentation> +createElementUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString tagName, HasCallStack) =>+ self -> Maybe tagName -> m Element+createElementUnsafe self tagName+ = liftDOM+ ((((toDocument self) ^. jsf "createElement" [toJSVal tagName]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createElement Mozilla Document.createElement documentation> createElementUnchecked :: (MonadDOM m, IsDocument self, ToJSString tagName) => self -> Maybe tagName -> m Element@@ -145,6 +196,16 @@ (void ((toDocument self) ^. jsf "createDocumentFragment" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createDocumentFragment Mozilla Document.createDocumentFragment documentation> +createDocumentFragmentUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) =>+ self -> m DocumentFragment+createDocumentFragmentUnsafe self+ = liftDOM+ ((((toDocument self) ^. jsf "createDocumentFragment" ()) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createDocumentFragment Mozilla Document.createDocumentFragment documentation> createDocumentFragmentUnchecked :: (MonadDOM m, IsDocument self) => self -> m DocumentFragment createDocumentFragmentUnchecked self@@ -170,6 +231,16 @@ (void ((toDocument self) ^. jsf "createTextNode" [toJSVal data'])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createTextNode Mozilla Document.createTextNode documentation> +createTextNodeUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString data', HasCallStack) =>+ self -> data' -> m Text+createTextNodeUnsafe self data'+ = liftDOM+ ((((toDocument self) ^. jsf "createTextNode" [toJSVal data']) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createTextNode Mozilla Document.createTextNode documentation> createTextNodeUnchecked :: (MonadDOM m, IsDocument self, ToJSString data') => self -> data' -> m Text@@ -196,6 +267,16 @@ (void ((toDocument self) ^. jsf "createComment" [toJSVal data'])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createComment Mozilla Document.createComment documentation> +createCommentUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString data', HasCallStack) =>+ self -> data' -> m Comment+createCommentUnsafe self data'+ = liftDOM+ ((((toDocument self) ^. jsf "createComment" [toJSVal data']) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createComment Mozilla Document.createComment documentation> createCommentUnchecked :: (MonadDOM m, IsDocument self, ToJSString data') => self -> data' -> m Comment@@ -223,6 +304,16 @@ ((toDocument self) ^. jsf "createCDATASection" [toJSVal data'])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createCDATASection Mozilla Document.createCDATASection documentation> +createCDATASectionUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString data', HasCallStack) =>+ self -> data' -> m CDATASection+createCDATASectionUnsafe self data'+ = liftDOM+ ((((toDocument self) ^. jsf "createCDATASection" [toJSVal data'])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createCDATASection Mozilla Document.createCDATASection documentation> createCDATASectionUnchecked :: (MonadDOM m, IsDocument self, ToJSString data') => self -> data' -> m CDATASection@@ -254,6 +345,18 @@ [toJSVal target, toJSVal data'])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createProcessingInstruction Mozilla Document.createProcessingInstruction documentation> +createProcessingInstructionUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString target, ToJSString data',+ HasCallStack) =>+ self -> target -> data' -> m ProcessingInstruction+createProcessingInstructionUnsafe self target data'+ = liftDOM+ ((((toDocument self) ^. jsf "createProcessingInstruction"+ [toJSVal target, toJSVal data'])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createProcessingInstruction Mozilla Document.createProcessingInstruction documentation> createProcessingInstructionUnchecked :: (MonadDOM m, IsDocument self, ToJSString target, ToJSString data') =>@@ -282,6 +385,16 @@ (void ((toDocument self) ^. jsf "createAttribute" [toJSVal name])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createAttribute Mozilla Document.createAttribute documentation> +createAttributeUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString name, HasCallStack) =>+ self -> name -> m Attr+createAttributeUnsafe self name+ = liftDOM+ ((((toDocument self) ^. jsf "createAttribute" [toJSVal name]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createAttribute Mozilla Document.createAttribute documentation> createAttributeUnchecked :: (MonadDOM m, IsDocument self, ToJSString name) => self -> name -> m Attr@@ -309,6 +422,16 @@ ((toDocument self) ^. jsf "createEntityReference" [toJSVal name])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createEntityReference Mozilla Document.createEntityReference documentation> +createEntityReferenceUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString name, HasCallStack) =>+ self -> name -> m EntityReference+createEntityReferenceUnsafe self name+ = liftDOM+ ((((toDocument self) ^. jsf "createEntityReference" [toJSVal name])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createEntityReference Mozilla Document.createEntityReference documentation> createEntityReferenceUnchecked :: (MonadDOM m, IsDocument self, ToJSString name) => self -> name -> m EntityReference@@ -338,6 +461,17 @@ [toJSVal tagname])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.getElementsByTagName Mozilla Document.getElementsByTagName documentation> +getElementsByTagNameUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString tagname, HasCallStack) =>+ self -> tagname -> m NodeList+getElementsByTagNameUnsafe self tagname+ = liftDOM+ ((((toDocument self) ^. jsf "getElementsByTagName"+ [toJSVal tagname])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.getElementsByTagName Mozilla Document.getElementsByTagName documentation> getElementsByTagNameUnchecked :: (MonadDOM m, IsDocument self, ToJSString tagname) => self -> tagname -> m NodeList@@ -368,6 +502,17 @@ [toJSVal importedNode, toJSVal deep])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.importNode Mozilla Document.importNode documentation> +importNodeUnsafe ::+ (MonadDOM m, IsDocument self, IsNode importedNode, HasCallStack) =>+ self -> Maybe importedNode -> Bool -> m Node+importNodeUnsafe self importedNode deep+ = liftDOM+ ((((toDocument self) ^. jsf "importNode"+ [toJSVal importedNode, toJSVal deep])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.importNode Mozilla Document.importNode documentation> importNodeUnchecked :: (MonadDOM m, IsDocument self, IsNode importedNode) => self -> Maybe importedNode -> Bool -> m Node@@ -401,6 +546,18 @@ [toJSVal namespaceURI, toJSVal qualifiedName])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createElementNS Mozilla Document.createElementNS documentation> +createElementNSUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString namespaceURI,+ ToJSString qualifiedName, HasCallStack) =>+ self -> Maybe namespaceURI -> Maybe qualifiedName -> m Element+createElementNSUnsafe self namespaceURI qualifiedName+ = liftDOM+ ((((toDocument self) ^. jsf "createElementNS"+ [toJSVal namespaceURI, toJSVal qualifiedName])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createElementNS Mozilla Document.createElementNS documentation> createElementNSUnchecked :: (MonadDOM m, IsDocument self, ToJSString namespaceURI, ToJSString qualifiedName) =>@@ -434,6 +591,18 @@ [toJSVal namespaceURI, toJSVal qualifiedName])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createAttributeNS Mozilla Document.createAttributeNS documentation> +createAttributeNSUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString namespaceURI,+ ToJSString qualifiedName, HasCallStack) =>+ self -> Maybe namespaceURI -> Maybe qualifiedName -> m Attr+createAttributeNSUnsafe self namespaceURI qualifiedName+ = liftDOM+ ((((toDocument self) ^. jsf "createAttributeNS"+ [toJSVal namespaceURI, toJSVal qualifiedName])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createAttributeNS Mozilla Document.createAttributeNS documentation> createAttributeNSUnchecked :: (MonadDOM m, IsDocument self, ToJSString namespaceURI, ToJSString qualifiedName) =>@@ -467,6 +636,18 @@ [toJSVal namespaceURI, toJSVal localName])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.getElementsByTagNameNS Mozilla Document.getElementsByTagNameNS documentation> +getElementsByTagNameNSUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString namespaceURI,+ ToJSString localName, HasCallStack) =>+ self -> Maybe namespaceURI -> localName -> m NodeList+getElementsByTagNameNSUnsafe self namespaceURI localName+ = liftDOM+ ((((toDocument self) ^. jsf "getElementsByTagNameNS"+ [toJSVal namespaceURI, toJSVal localName])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.getElementsByTagNameNS Mozilla Document.getElementsByTagNameNS documentation> getElementsByTagNameNSUnchecked :: (MonadDOM m, IsDocument self, ToJSString namespaceURI, ToJSString localName) =>@@ -496,6 +677,17 @@ ((toDocument self) ^. jsf "getElementById" [toJSVal elementId])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.getElementById Mozilla Document.getElementById documentation> +getElementByIdUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString elementId,+ HasCallStack) =>+ self -> elementId -> m Element+getElementByIdUnsafe self elementId+ = liftDOM+ ((((toDocument self) ^. jsf "getElementById" [toJSVal elementId])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.getElementById Mozilla Document.getElementById documentation> getElementByIdUnchecked :: (MonadDOM m, IsDocument self, ToJSString elementId) => self -> elementId -> m Element@@ -522,6 +714,16 @@ (void ((toDocument self) ^. jsf "adoptNode" [toJSVal source])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.adoptNode Mozilla Document.adoptNode documentation> +adoptNodeUnsafe ::+ (MonadDOM m, IsDocument self, IsNode source, HasCallStack) =>+ self -> Maybe source -> m Node+adoptNodeUnsafe self source+ = liftDOM+ ((((toDocument self) ^. jsf "adoptNode" [toJSVal source]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.adoptNode Mozilla Document.adoptNode documentation> adoptNodeUnchecked :: (MonadDOM m, IsDocument self, IsNode source) => self -> Maybe source -> m Node@@ -548,6 +750,17 @@ (void ((toDocument self) ^. jsf "createEvent" [toJSVal eventType])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createEvent Mozilla Document.createEvent documentation> +createEventUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString eventType,+ HasCallStack) =>+ self -> eventType -> m Event+createEventUnsafe self eventType+ = liftDOM+ ((((toDocument self) ^. jsf "createEvent" [toJSVal eventType]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createEvent Mozilla Document.createEvent documentation> createEventUnchecked :: (MonadDOM m, IsDocument self, ToJSString eventType) => self -> eventType -> m Event@@ -569,6 +782,14 @@ = liftDOM (void ((toDocument self) ^. jsf "createRange" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createRange Mozilla Document.createRange documentation> +createRangeUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) => self -> m Range+createRangeUnsafe self+ = liftDOM+ ((((toDocument self) ^. jsf "createRange" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createRange Mozilla Document.createRange documentation> createRangeUnchecked :: (MonadDOM m, IsDocument self) => self -> m Range createRangeUnchecked self@@ -603,6 +824,20 @@ toJSVal expandEntityReferences])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createNodeIterator Mozilla Document.createNodeIterator documentation> +createNodeIteratorUnsafe ::+ (MonadDOM m, IsDocument self, IsNode root, HasCallStack) =>+ self ->+ Maybe root -> Word -> Maybe NodeFilter -> Bool -> m NodeIterator+createNodeIteratorUnsafe self root whatToShow filter+ expandEntityReferences+ = liftDOM+ ((((toDocument self) ^. jsf "createNodeIterator"+ [toJSVal root, toJSVal whatToShow, toJSVal filter,+ toJSVal expandEntityReferences])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createNodeIterator Mozilla Document.createNodeIterator documentation> createNodeIteratorUnchecked :: (MonadDOM m, IsDocument self, IsNode root) => self ->@@ -641,6 +876,20 @@ toJSVal expandEntityReferences])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createTreeWalker Mozilla Document.createTreeWalker documentation> +createTreeWalkerUnsafe ::+ (MonadDOM m, IsDocument self, IsNode root, HasCallStack) =>+ self ->+ Maybe root -> Word -> Maybe NodeFilter -> Bool -> m TreeWalker+createTreeWalkerUnsafe self root whatToShow filter+ expandEntityReferences+ = liftDOM+ ((((toDocument self) ^. jsf "createTreeWalker"+ [toJSVal root, toJSVal whatToShow, toJSVal filter,+ toJSVal expandEntityReferences])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createTreeWalker Mozilla Document.createTreeWalker documentation> createTreeWalkerUnchecked :: (MonadDOM m, IsDocument self, IsNode root) => self ->@@ -677,6 +926,18 @@ [toJSVal element, toJSVal pseudoElement])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.getOverrideStyle Mozilla Document.getOverrideStyle documentation> +getOverrideStyleUnsafe ::+ (MonadDOM m, IsDocument self, IsElement element,+ ToJSString pseudoElement, HasCallStack) =>+ self -> Maybe element -> pseudoElement -> m CSSStyleDeclaration+getOverrideStyleUnsafe self element pseudoElement+ = liftDOM+ ((((toDocument self) ^. jsf "getOverrideStyle"+ [toJSVal element, toJSVal pseudoElement])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.getOverrideStyle Mozilla Document.getOverrideStyle documentation> getOverrideStyleUnchecked :: (MonadDOM m, IsDocument self, IsElement element, ToJSString pseudoElement) =>@@ -709,6 +970,18 @@ [toJSVal expression, toJSVal resolver])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createExpression Mozilla Document.createExpression documentation> +createExpressionUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString expression,+ HasCallStack) =>+ self -> expression -> Maybe XPathNSResolver -> m XPathExpression+createExpressionUnsafe self expression resolver+ = liftDOM+ ((((toDocument self) ^. jsf "createExpression"+ [toJSVal expression, toJSVal resolver])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createExpression Mozilla Document.createExpression documentation> createExpressionUnchecked :: (MonadDOM m, IsDocument self, ToJSString expression) => self -> expression -> Maybe XPathNSResolver -> m XPathExpression@@ -739,6 +1012,17 @@ [toJSVal nodeResolver])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createNSResolver Mozilla Document.createNSResolver documentation> +createNSResolverUnsafe ::+ (MonadDOM m, IsDocument self, IsNode nodeResolver, HasCallStack) =>+ self -> Maybe nodeResolver -> m XPathNSResolver+createNSResolverUnsafe self nodeResolver+ = liftDOM+ ((((toDocument self) ^. jsf "createNSResolver"+ [toJSVal nodeResolver])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createNSResolver Mozilla Document.createNSResolver documentation> createNSResolverUnchecked :: (MonadDOM m, IsDocument self, IsNode nodeResolver) => self -> Maybe nodeResolver -> m XPathNSResolver@@ -780,6 +1064,22 @@ toJSVal type', toJSVal inResult])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.evaluate Mozilla Document.evaluate documentation> +evaluateUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString expression,+ IsNode contextNode, HasCallStack) =>+ self ->+ expression ->+ Maybe contextNode ->+ Maybe XPathNSResolver -> Word -> Maybe XPathResult -> m XPathResult+evaluateUnsafe self expression contextNode resolver type' inResult+ = liftDOM+ ((((toDocument self) ^. jsf "evaluate"+ [toJSVal expression, toJSVal contextNode, toJSVal resolver,+ toJSVal type', toJSVal inResult])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.evaluate Mozilla Document.evaluate documentation> evaluateUnchecked :: (MonadDOM m, IsDocument self, ToJSString expression, IsNode contextNode) =>@@ -933,6 +1233,18 @@ [toJSVal elementName])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.getElementsByName Mozilla Document.getElementsByName documentation> +getElementsByNameUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString elementName,+ HasCallStack) =>+ self -> elementName -> m NodeList+getElementsByNameUnsafe self elementName+ = liftDOM+ ((((toDocument self) ^. jsf "getElementsByName"+ [toJSVal elementName])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.getElementsByName Mozilla Document.getElementsByName documentation> getElementsByNameUnchecked :: (MonadDOM m, IsDocument self, ToJSString elementName) => self -> elementName -> m NodeList@@ -962,6 +1274,17 @@ [toJSVal x, toJSVal y])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.elementFromPoint Mozilla Document.elementFromPoint documentation> +elementFromPointUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) =>+ self -> Int -> Int -> m Element+elementFromPointUnsafe self x y+ = liftDOM+ ((((toDocument self) ^. jsf "elementFromPoint"+ [toJSVal x, toJSVal y])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.elementFromPoint Mozilla Document.elementFromPoint documentation> elementFromPointUnchecked :: (MonadDOM m, IsDocument self) => self -> Int -> Int -> m Element elementFromPointUnchecked self x y@@ -990,6 +1313,17 @@ [toJSVal x, toJSVal y])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.caretRangeFromPoint Mozilla Document.caretRangeFromPoint documentation> +caretRangeFromPointUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) =>+ self -> Int -> Int -> m Range+caretRangeFromPointUnsafe self x y+ = liftDOM+ ((((toDocument self) ^. jsf "caretRangeFromPoint"+ [toJSVal x, toJSVal y])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.caretRangeFromPoint Mozilla Document.caretRangeFromPoint documentation> caretRangeFromPointUnchecked :: (MonadDOM m, IsDocument self) => self -> Int -> Int -> m Range caretRangeFromPointUnchecked self x y@@ -1011,6 +1345,14 @@ = liftDOM (void ((toDocument self) ^. jsf "getSelection" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.getSelection Mozilla Document.getSelection documentation> +getSelectionUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) => self -> m Selection+getSelectionUnsafe self+ = liftDOM+ ((((toDocument self) ^. jsf "getSelection" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.getSelection Mozilla Document.getSelection documentation> getSelectionUnchecked :: (MonadDOM m, IsDocument self) => self -> m Selection getSelectionUnchecked self@@ -1042,6 +1384,18 @@ [toJSVal contextId, toJSVal name, toJSVal width, toJSVal height])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.getCSSCanvasContext Mozilla Document.getCSSCanvasContext documentation> +getCSSCanvasContextUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString contextId,+ ToJSString name, HasCallStack) =>+ self -> contextId -> name -> Int -> Int -> m CanvasRenderingContext+getCSSCanvasContextUnsafe self contextId name width height+ = liftDOM+ ((((toDocument self) ^. jsf "getCSSCanvasContext"+ [toJSVal contextId, toJSVal name, toJSVal width, toJSVal height])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.getCSSCanvasContext Mozilla Document.getCSSCanvasContext documentation> getCSSCanvasContextUnchecked :: (MonadDOM m, IsDocument self, ToJSString contextId, ToJSString name) =>@@ -1073,6 +1427,17 @@ [toJSVal tagname])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.getElementsByClassName Mozilla Document.getElementsByClassName documentation> +getElementsByClassNameUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString tagname, HasCallStack) =>+ self -> tagname -> m NodeList+getElementsByClassNameUnsafe self tagname+ = liftDOM+ ((((toDocument self) ^. jsf "getElementsByClassName"+ [toJSVal tagname])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.getElementsByClassName Mozilla Document.getElementsByClassName documentation> getElementsByClassNameUnchecked :: (MonadDOM m, IsDocument self, ToJSString tagname) => self -> tagname -> m NodeList@@ -1111,6 +1476,17 @@ ((toDocument self) ^. jsf "querySelector" [toJSVal selectors])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.querySelector Mozilla Document.querySelector documentation> +querySelectorUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString selectors,+ HasCallStack) =>+ self -> selectors -> m Element+querySelectorUnsafe self selectors+ = liftDOM+ ((((toDocument self) ^. jsf "querySelector" [toJSVal selectors])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.querySelector Mozilla Document.querySelector documentation> querySelectorUnchecked :: (MonadDOM m, IsDocument self, ToJSString selectors) => self -> selectors -> m Element@@ -1138,6 +1514,17 @@ ((toDocument self) ^. jsf "querySelectorAll" [toJSVal selectors])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.querySelectorAll Mozilla Document.querySelectorAll documentation> +querySelectorAllUnsafe ::+ (MonadDOM m, IsDocument self, ToJSString selectors,+ HasCallStack) =>+ self -> selectors -> m NodeList+querySelectorAllUnsafe self selectors+ = liftDOM+ ((((toDocument self) ^. jsf "querySelectorAll" [toJSVal selectors])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.querySelectorAll Mozilla Document.querySelectorAll documentation> querySelectorAllUnchecked :: (MonadDOM m, IsDocument self, ToJSString selectors) => self -> selectors -> m NodeList@@ -1181,6 +1568,16 @@ (void ((toDocument self) ^. jsf "webkitGetNamedFlows" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.webkitGetNamedFlows Mozilla Document.webkitGetNamedFlows documentation> +webkitGetNamedFlowsUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) =>+ self -> m DOMNamedFlowCollection+webkitGetNamedFlowsUnsafe self+ = liftDOM+ ((((toDocument self) ^. jsf "webkitGetNamedFlows" ()) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.webkitGetNamedFlows Mozilla Document.webkitGetNamedFlows documentation> webkitGetNamedFlowsUnchecked :: (MonadDOM m, IsDocument self) => self -> m DOMNamedFlowCollection webkitGetNamedFlowsUnchecked self@@ -1227,6 +1624,26 @@ toJSVal webkitRotationAngle, toJSVal webkitForce])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createTouch Mozilla Document.createTouch documentation> +createTouchUnsafe ::+ (MonadDOM m, IsDocument self, IsEventTarget target,+ HasCallStack) =>+ self ->+ Maybe Window ->+ Maybe target ->+ Int ->+ Int -> Int -> Int -> Int -> Int -> Int -> Float -> Float -> m Touch+createTouchUnsafe self window target identifier pageX pageY screenX+ screenY webkitRadiusX webkitRadiusY webkitRotationAngle webkitForce+ = liftDOM+ ((((toDocument self) ^. jsf "createTouch"+ [toJSVal window, toJSVal target, toJSVal identifier, toJSVal pageX,+ toJSVal pageY, toJSVal screenX, toJSVal screenY,+ toJSVal webkitRadiusX, toJSVal webkitRadiusY,+ toJSVal webkitRotationAngle, toJSVal webkitForce])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createTouch Mozilla Document.createTouch documentation> createTouchUnchecked :: (MonadDOM m, IsDocument self, IsEventTarget target) => self ->@@ -1258,6 +1675,14 @@ = liftDOM (void ((toDocument self) ^. jsf "createTouchList" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createTouchList Mozilla Document.createTouchList documentation> +createTouchListUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) => self -> m TouchList+createTouchListUnsafe self+ = liftDOM+ ((((toDocument self) ^. jsf "createTouchList" ()) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.createTouchList Mozilla Document.createTouchList documentation> createTouchListUnchecked :: (MonadDOM m, IsDocument self) => self -> m TouchList createTouchListUnchecked self@@ -1272,6 +1697,15 @@ = liftDOM (((toDocument self) ^. js "doctype") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.doctype Mozilla Document.doctype documentation> +getDoctypeUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) =>+ self -> m DocumentType+getDoctypeUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "doctype") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.doctype Mozilla Document.doctype documentation> getDoctypeUnchecked :: (MonadDOM m, IsDocument self) => self -> m DocumentType getDoctypeUnchecked self@@ -1287,6 +1721,15 @@ (((toDocument self) ^. js "implementation") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.implementation Mozilla Document.implementation documentation> +getImplementationUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) =>+ self -> m DOMImplementation+getImplementationUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "implementation") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.implementation Mozilla Document.implementation documentation> getImplementationUnchecked :: (MonadDOM m, IsDocument self) => self -> m DOMImplementation getImplementationUnchecked self@@ -1301,6 +1744,14 @@ (((toDocument self) ^. js "documentElement") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.documentElement Mozilla Document.documentElement documentation> +getDocumentElementUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) => self -> m Element+getDocumentElementUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "documentElement") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.documentElement Mozilla Document.documentElement documentation> getDocumentElementUnchecked :: (MonadDOM m, IsDocument self) => self -> m Element getDocumentElementUnchecked self@@ -1317,6 +1768,15 @@ (((toDocument self) ^. js "inputEncoding") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.inputEncoding Mozilla Document.inputEncoding documentation> +getInputEncodingUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) =>+ self -> m result+getInputEncodingUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "inputEncoding") >>= fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.inputEncoding Mozilla Document.inputEncoding documentation> getInputEncodingUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result@@ -1333,6 +1793,15 @@ (((toDocument self) ^. js "xmlEncoding") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.xmlEncoding Mozilla Document.xmlEncoding documentation> +getXmlEncodingUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) =>+ self -> m result+getXmlEncodingUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "xmlEncoding") >>= fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.xmlEncoding Mozilla Document.xmlEncoding documentation> getXmlEncodingUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result@@ -1356,6 +1825,15 @@ (((toDocument self) ^. js "xmlVersion") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.xmlVersion Mozilla Document.xmlVersion documentation> +getXmlVersionUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) =>+ self -> m result+getXmlVersionUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "xmlVersion") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.xmlVersion Mozilla Document.xmlVersion documentation> getXmlVersionUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result@@ -1383,6 +1861,15 @@ (((toDocument self) ^. js "documentURI") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.documentURI Mozilla Document.documentURI documentation> +getDocumentURIUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) =>+ self -> m result+getDocumentURIUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "documentURI") >>= fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.documentURI Mozilla Document.documentURI documentation> getDocumentURIUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result@@ -1397,6 +1884,14 @@ = liftDOM (((toDocument self) ^. js "defaultView") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.defaultView Mozilla Document.defaultView documentation> +getDefaultViewUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) => self -> m Window+getDefaultViewUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "defaultView") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.defaultView Mozilla Document.defaultView documentation> getDefaultViewUnchecked :: (MonadDOM m, IsDocument self) => self -> m Window getDefaultViewUnchecked self@@ -1410,6 +1905,15 @@ = liftDOM (((toDocument self) ^. js "styleSheets") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.styleSheets Mozilla Document.styleSheets documentation> +getStyleSheetsUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) =>+ self -> m StyleSheetList+getStyleSheetsUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "styleSheets") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.styleSheets Mozilla Document.styleSheets documentation> getStyleSheetsUnchecked :: (MonadDOM m, IsDocument self) => self -> m StyleSheetList getStyleSheetsUnchecked self@@ -1439,6 +1943,15 @@ = liftDOM (((toDocument self) ^. js "title") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.title Mozilla Document.title documentation> +getTitleUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) =>+ self -> m result+getTitleUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "title") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.title Mozilla Document.title documentation> getTitleUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result@@ -1470,6 +1983,15 @@ (((toDocument self) ^. js "domain") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.domain Mozilla Document.domain documentation> +getDomainUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) =>+ self -> m result+getDomainUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "domain") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.domain Mozilla Document.domain documentation> getDomainUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result@@ -1500,6 +2022,15 @@ (((toDocument self) ^. js "cookie") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.cookie Mozilla Document.cookie documentation> +getCookieUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) =>+ self -> m result+getCookieUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "cookie") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.cookie Mozilla Document.cookie documentation> getCookieUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result@@ -1521,6 +2052,15 @@ = liftDOM (((toDocument self) ^. js "body") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.body Mozilla Document.body documentation> +getBodyUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) =>+ self -> m HTMLElement+getBodyUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "body") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.body Mozilla Document.body documentation> getBodyUnchecked :: (MonadDOM m, IsDocument self) => self -> m HTMLElement getBodyUnchecked self@@ -1533,6 +2073,15 @@ = liftDOM (((toDocument self) ^. js "head") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.head Mozilla Document.head documentation> +getHeadUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) =>+ self -> m HTMLHeadElement+getHeadUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "head") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.head Mozilla Document.head documentation> getHeadUnchecked :: (MonadDOM m, IsDocument self) => self -> m HTMLHeadElement getHeadUnchecked self@@ -1545,6 +2094,15 @@ = liftDOM (((toDocument self) ^. js "images") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.images Mozilla Document.images documentation> +getImagesUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) =>+ self -> m HTMLCollection+getImagesUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "images") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.images Mozilla Document.images documentation> getImagesUnchecked :: (MonadDOM m, IsDocument self) => self -> m HTMLCollection getImagesUnchecked self@@ -1558,6 +2116,15 @@ = liftDOM (((toDocument self) ^. js "applets") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.applets Mozilla Document.applets documentation> +getAppletsUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) =>+ self -> m HTMLCollection+getAppletsUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "applets") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.applets Mozilla Document.applets documentation> getAppletsUnchecked :: (MonadDOM m, IsDocument self) => self -> m HTMLCollection getAppletsUnchecked self@@ -1571,6 +2138,15 @@ = liftDOM (((toDocument self) ^. js "links") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.links Mozilla Document.links documentation> +getLinksUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) =>+ self -> m HTMLCollection+getLinksUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "links") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.links Mozilla Document.links documentation> getLinksUnchecked :: (MonadDOM m, IsDocument self) => self -> m HTMLCollection getLinksUnchecked self@@ -1584,6 +2160,15 @@ = liftDOM (((toDocument self) ^. js "forms") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.forms Mozilla Document.forms documentation> +getFormsUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) =>+ self -> m HTMLCollection+getFormsUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "forms") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.forms Mozilla Document.forms documentation> getFormsUnchecked :: (MonadDOM m, IsDocument self) => self -> m HTMLCollection getFormsUnchecked self@@ -1597,6 +2182,15 @@ = liftDOM (((toDocument self) ^. js "anchors") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.anchors Mozilla Document.anchors documentation> +getAnchorsUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) =>+ self -> m HTMLCollection+getAnchorsUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "anchors") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.anchors Mozilla Document.anchors documentation> getAnchorsUnchecked :: (MonadDOM m, IsDocument self) => self -> m HTMLCollection getAnchorsUnchecked self@@ -1624,6 +2218,14 @@ = liftDOM (((toDocument self) ^. js "location") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.location Mozilla Document.location documentation> +getLocationUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) => self -> m Location+getLocationUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "location") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.location Mozilla Document.location documentation> getLocationUnchecked :: (MonadDOM m, IsDocument self) => self -> m Location getLocationUnchecked self@@ -1646,6 +2248,15 @@ (((toDocument self) ^. js "charset") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.charset Mozilla Document.charset documentation> +getCharsetUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) =>+ self -> m result+getCharsetUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "charset") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.charset Mozilla Document.charset documentation> getCharsetUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result@@ -1662,6 +2273,15 @@ (((toDocument self) ^. js "defaultCharset") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.defaultCharset Mozilla Document.defaultCharset documentation> +getDefaultCharsetUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) =>+ self -> m result+getDefaultCharsetUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "defaultCharset") >>= fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.defaultCharset Mozilla Document.defaultCharset documentation> getDefaultCharsetUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result@@ -1678,6 +2298,15 @@ (((toDocument self) ^. js "readyState") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.readyState Mozilla Document.readyState documentation> +getReadyStateUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) =>+ self -> m result+getReadyStateUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "readyState") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.readyState Mozilla Document.readyState documentation> getReadyStateUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result@@ -1694,6 +2323,15 @@ (((toDocument self) ^. js "characterSet") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.characterSet Mozilla Document.characterSet documentation> +getCharacterSetUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) =>+ self -> m result+getCharacterSetUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "characterSet") >>= fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.characterSet Mozilla Document.characterSet documentation> getCharacterSetUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result@@ -1711,6 +2349,16 @@ fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.preferredStylesheetSet Mozilla Document.preferredStylesheetSet documentation> +getPreferredStylesheetSetUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) =>+ self -> m result+getPreferredStylesheetSetUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "preferredStylesheetSet") >>=+ fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.preferredStylesheetSet Mozilla Document.preferredStylesheetSet documentation> getPreferredStylesheetSetUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result@@ -1737,6 +2385,16 @@ fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.selectedStylesheetSet Mozilla Document.selectedStylesheetSet documentation> +getSelectedStylesheetSetUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack, FromJSString result) =>+ self -> m result+getSelectedStylesheetSetUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "selectedStylesheetSet") >>=+ fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.selectedStylesheetSet Mozilla Document.selectedStylesheetSet documentation> getSelectedStylesheetSetUnchecked :: (MonadDOM m, IsDocument self, FromJSString result) => self -> m result@@ -1752,6 +2410,14 @@ = liftDOM (((toDocument self) ^. js "activeElement") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.activeElement Mozilla Document.activeElement documentation> +getActiveElementUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) => self -> m Element+getActiveElementUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "activeElement") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.activeElement Mozilla Document.activeElement documentation> getActiveElementUnchecked :: (MonadDOM m, IsDocument self) => self -> m Element getActiveElementUnchecked self@@ -1790,6 +2456,16 @@ fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.webkitCurrentFullScreenElement Mozilla Document.webkitCurrentFullScreenElement documentation> +getWebkitCurrentFullScreenElementUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) =>+ self -> m Element+getWebkitCurrentFullScreenElementUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "webkitCurrentFullScreenElement") >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.webkitCurrentFullScreenElement Mozilla Document.webkitCurrentFullScreenElement documentation> getWebkitCurrentFullScreenElementUnchecked :: (MonadDOM m, IsDocument self) => self -> m Element getWebkitCurrentFullScreenElementUnchecked self@@ -1812,6 +2488,15 @@ (((toDocument self) ^. js "webkitFullscreenElement") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.webkitFullscreenElement Mozilla Document.webkitFullscreenElement documentation> +getWebkitFullscreenElementUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) => self -> m Element+getWebkitFullscreenElementUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "webkitFullscreenElement") >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.webkitFullscreenElement Mozilla Document.webkitFullscreenElement documentation> getWebkitFullscreenElementUnchecked :: (MonadDOM m, IsDocument self) => self -> m Element getWebkitFullscreenElementUnchecked self@@ -1827,6 +2512,14 @@ (((toDocument self) ^. js "pointerLockElement") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.pointerLockElement Mozilla Document.pointerLockElement documentation> +getPointerLockElementUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) => self -> m Element+getPointerLockElementUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "pointerLockElement") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.pointerLockElement Mozilla Document.pointerLockElement documentation> getPointerLockElementUnchecked :: (MonadDOM m, IsDocument self) => self -> m Element getPointerLockElementUnchecked self@@ -1841,6 +2534,14 @@ = liftDOM (((toDocument self) ^. js "fonts") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.fonts Mozilla Document.fonts documentation> +getFontsUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) => self -> m FontLoader+getFontsUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "fonts") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.fonts Mozilla Document.fonts documentation> getFontsUnchecked :: (MonadDOM m, IsDocument self) => self -> m FontLoader getFontsUnchecked self@@ -2167,6 +2868,15 @@ (((toDocument self) ^. js "securityPolicy") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.securityPolicy Mozilla Document.securityPolicy documentation> +getSecurityPolicyUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) =>+ self -> m SecurityPolicy+getSecurityPolicyUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "securityPolicy") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.securityPolicy Mozilla Document.securityPolicy documentation> getSecurityPolicyUnchecked :: (MonadDOM m, IsDocument self) => self -> m SecurityPolicy getSecurityPolicyUnchecked self@@ -2179,6 +2889,15 @@ self -> m (Maybe HTMLScriptElement) getCurrentScript self = liftDOM (((toDocument self) ^. js "currentScript") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.currentScript Mozilla Document.currentScript documentation> +getCurrentScriptUnsafe ::+ (MonadDOM m, IsDocument self, HasCallStack) =>+ self -> m HTMLScriptElement+getCurrentScriptUnsafe self+ = liftDOM+ ((((toDocument self) ^. js "currentScript") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Document.currentScript Mozilla Document.currentScript documentation> getCurrentScriptUnchecked ::
@@ -1,12 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DocumentFragment (newDocumentFragment, querySelector, querySelector_,- querySelectorUnchecked, querySelectorAll, querySelectorAll_,- querySelectorAllUnchecked, DocumentFragment,- castToDocumentFragment, gTypeDocumentFragment)+ querySelectorUnsafe, querySelectorUnchecked, querySelectorAll,+ querySelectorAll_, querySelectorAllUnsafe,+ querySelectorAllUnchecked, DocumentFragment(..),+ gTypeDocumentFragment) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment Mozilla DocumentFragment documentation> newDocumentFragment :: (MonadDOM m) => m DocumentFragment@@ -39,6 +54,15 @@ = liftDOM (void (self ^. jsf "querySelector" [toJSVal selectors])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment.querySelector Mozilla DocumentFragment.querySelector documentation> +querySelectorUnsafe ::+ (MonadDOM m, ToJSString selectors, HasCallStack) =>+ DocumentFragment -> selectors -> m Element+querySelectorUnsafe self selectors+ = liftDOM+ (((self ^. jsf "querySelector" [toJSVal selectors]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment.querySelector Mozilla DocumentFragment.querySelector documentation> querySelectorUnchecked :: (MonadDOM m, ToJSString selectors) => DocumentFragment -> selectors -> m Element@@ -63,6 +87,16 @@ querySelectorAll_ self selectors = liftDOM (void (self ^. jsf "querySelectorAll" [toJSVal selectors]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment.querySelectorAll Mozilla DocumentFragment.querySelectorAll documentation> +querySelectorAllUnsafe ::+ (MonadDOM m, ToJSString selectors, HasCallStack) =>+ DocumentFragment -> selectors -> m NodeList+querySelectorAllUnsafe self selectors+ = liftDOM+ (((self ^. jsf "querySelectorAll" [toJSVal selectors]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment.querySelectorAll Mozilla DocumentFragment.querySelectorAll documentation> querySelectorAllUnchecked ::
@@ -1,13 +1,18 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DocumentType- (getName, getEntities, getEntitiesUnchecked, getNotations,- getNotationsUnchecked, getPublicId, getPublicIdUnchecked,- getSystemId, getSystemIdUnchecked, getInternalSubset,- getInternalSubsetUnchecked, DocumentType, castToDocumentType,- gTypeDocumentType)+ (getName, getEntities, getEntitiesUnsafe, getEntitiesUnchecked,+ getNotations, getNotationsUnsafe, getNotationsUnchecked,+ getPublicId, getPublicIdUnsafe, getPublicIdUnchecked, getSystemId,+ getSystemIdUnsafe, getSystemIdUnchecked, getInternalSubset,+ getInternalSubsetUnsafe, getInternalSubsetUnchecked,+ DocumentType(..), gTypeDocumentType) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +23,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/DocumentType.name Mozilla DocumentType.name documentation> getName ::@@ -30,6 +45,14 @@ getEntities self = liftDOM ((self ^. js "entities") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DocumentType.entities Mozilla DocumentType.entities documentation> +getEntitiesUnsafe ::+ (MonadDOM m, HasCallStack) => DocumentType -> m NamedNodeMap+getEntitiesUnsafe self+ = liftDOM+ (((self ^. js "entities") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DocumentType.entities Mozilla DocumentType.entities documentation> getEntitiesUnchecked :: (MonadDOM m) => DocumentType -> m NamedNodeMap getEntitiesUnchecked self@@ -42,6 +65,14 @@ = liftDOM ((self ^. js "notations") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DocumentType.notations Mozilla DocumentType.notations documentation> +getNotationsUnsafe ::+ (MonadDOM m, HasCallStack) => DocumentType -> m NamedNodeMap+getNotationsUnsafe self+ = liftDOM+ (((self ^. js "notations") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DocumentType.notations Mozilla DocumentType.notations documentation> getNotationsUnchecked :: (MonadDOM m) => DocumentType -> m NamedNodeMap getNotationsUnchecked self@@ -55,6 +86,15 @@ = liftDOM ((self ^. js "publicId") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DocumentType.publicId Mozilla DocumentType.publicId documentation> +getPublicIdUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ DocumentType -> m result+getPublicIdUnsafe self+ = liftDOM+ (((self ^. js "publicId") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DocumentType.publicId Mozilla DocumentType.publicId documentation> getPublicIdUnchecked :: (MonadDOM m, FromJSString result) => DocumentType -> m result getPublicIdUnchecked self@@ -68,6 +108,15 @@ = liftDOM ((self ^. js "systemId") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DocumentType.systemId Mozilla DocumentType.systemId documentation> +getSystemIdUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ DocumentType -> m result+getSystemIdUnsafe self+ = liftDOM+ (((self ^. js "systemId") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DocumentType.systemId Mozilla DocumentType.systemId documentation> getSystemIdUnchecked :: (MonadDOM m, FromJSString result) => DocumentType -> m result getSystemIdUnchecked self@@ -79,6 +128,15 @@ DocumentType -> m (Maybe result) getInternalSubset self = liftDOM ((self ^. js "internalSubset") >>= fromMaybeJSString)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DocumentType.internalSubset Mozilla DocumentType.internalSubset documentation> +getInternalSubsetUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ DocumentType -> m result+getInternalSubsetUnsafe self+ = liftDOM+ (((self ^. js "internalSubset") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DocumentType.internalSubset Mozilla DocumentType.internalSubset documentation> getInternalSubsetUnchecked ::
@@ -1,13 +1,19 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.DynamicsCompressorNode- (getThreshold, getThresholdUnchecked, getKnee, getKneeUnchecked,- getRatio, getRatioUnchecked, getReduction, getReductionUnchecked,- getAttack, getAttackUnchecked, getRelease, getReleaseUnchecked,- DynamicsCompressorNode, castToDynamicsCompressorNode,+ (getThreshold, getThresholdUnsafe, getThresholdUnchecked, getKnee,+ getKneeUnsafe, getKneeUnchecked, getRatio, getRatioUnsafe,+ getRatioUnchecked, getReduction, getReductionUnsafe,+ getReductionUnchecked, getAttack, getAttackUnsafe,+ getAttackUnchecked, getRelease, getReleaseUnsafe,+ getReleaseUnchecked, DynamicsCompressorNode(..), gTypeDynamicsCompressorNode) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +24,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode.threshold Mozilla DynamicsCompressorNode.threshold documentation> getThreshold ::@@ -26,6 +42,15 @@ = liftDOM ((self ^. js "threshold") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode.threshold Mozilla DynamicsCompressorNode.threshold documentation> +getThresholdUnsafe ::+ (MonadDOM m, HasCallStack) =>+ DynamicsCompressorNode -> m AudioParam+getThresholdUnsafe self+ = liftDOM+ (((self ^. js "threshold") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode.threshold Mozilla DynamicsCompressorNode.threshold documentation> getThresholdUnchecked :: (MonadDOM m) => DynamicsCompressorNode -> m AudioParam getThresholdUnchecked self@@ -37,6 +62,15 @@ getKnee self = liftDOM ((self ^. js "knee") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode.knee Mozilla DynamicsCompressorNode.knee documentation> +getKneeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ DynamicsCompressorNode -> m AudioParam+getKneeUnsafe self+ = liftDOM+ (((self ^. js "knee") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode.knee Mozilla DynamicsCompressorNode.knee documentation> getKneeUnchecked :: (MonadDOM m) => DynamicsCompressorNode -> m AudioParam getKneeUnchecked self@@ -48,6 +82,15 @@ getRatio self = liftDOM ((self ^. js "ratio") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode.ratio Mozilla DynamicsCompressorNode.ratio documentation> +getRatioUnsafe ::+ (MonadDOM m, HasCallStack) =>+ DynamicsCompressorNode -> m AudioParam+getRatioUnsafe self+ = liftDOM+ (((self ^. js "ratio") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode.ratio Mozilla DynamicsCompressorNode.ratio documentation> getRatioUnchecked :: (MonadDOM m) => DynamicsCompressorNode -> m AudioParam getRatioUnchecked self@@ -60,6 +103,15 @@ = liftDOM ((self ^. js "reduction") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode.reduction Mozilla DynamicsCompressorNode.reduction documentation> +getReductionUnsafe ::+ (MonadDOM m, HasCallStack) =>+ DynamicsCompressorNode -> m AudioParam+getReductionUnsafe self+ = liftDOM+ (((self ^. js "reduction") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode.reduction Mozilla DynamicsCompressorNode.reduction documentation> getReductionUnchecked :: (MonadDOM m) => DynamicsCompressorNode -> m AudioParam getReductionUnchecked self@@ -71,6 +123,15 @@ getAttack self = liftDOM ((self ^. js "attack") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode.attack Mozilla DynamicsCompressorNode.attack documentation> +getAttackUnsafe ::+ (MonadDOM m, HasCallStack) =>+ DynamicsCompressorNode -> m AudioParam+getAttackUnsafe self+ = liftDOM+ (((self ^. js "attack") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode.attack Mozilla DynamicsCompressorNode.attack documentation> getAttackUnchecked :: (MonadDOM m) => DynamicsCompressorNode -> m AudioParam getAttackUnchecked self@@ -80,6 +141,15 @@ getRelease :: (MonadDOM m) => DynamicsCompressorNode -> m (Maybe AudioParam) getRelease self = liftDOM ((self ^. js "release") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode.release Mozilla DynamicsCompressorNode.release documentation> +getReleaseUnsafe ::+ (MonadDOM m, HasCallStack) =>+ DynamicsCompressorNode -> m AudioParam+getReleaseUnsafe self+ = liftDOM+ (((self ^. js "release") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode.release Mozilla DynamicsCompressorNode.release documentation> getReleaseUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.EXTBlendMinMax- (pattern MIN_EXT, pattern MAX_EXT, EXTBlendMinMax,- castToEXTBlendMinMax, gTypeEXTBlendMinMax)+ (pattern MIN_EXT, pattern MAX_EXT, EXTBlendMinMax(..),+ gTypeEXTBlendMinMax) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,5 +19,15 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern MIN_EXT = 32775 pattern MAX_EXT = 32776
@@ -1,12 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.EXTTextureFilterAnisotropic (pattern TEXTURE_MAX_ANISOTROPY_EXT, pattern MAX_TEXTURE_MAX_ANISOTROPY_EXT,- EXTTextureFilterAnisotropic, castToEXTTextureFilterAnisotropic,- gTypeEXTTextureFilterAnisotropic)+ EXTTextureFilterAnisotropic(..), gTypeEXTTextureFilterAnisotropic) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,5 +20,15 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern TEXTURE_MAX_ANISOTROPY_EXT = 34046 pattern MAX_TEXTURE_MAX_ANISOTROPY_EXT = 34047
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.EXTsRGB (pattern SRGB_EXT, pattern SRGB_ALPHA_EXT, pattern SRGB8_ALPHA8_EXT,- pattern FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT, EXTsRGB,- castToEXTsRGB, gTypeEXTsRGB)+ pattern FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT, EXTsRGB(..),+ gTypeEXTsRGB) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern SRGB_EXT = 35904 pattern SRGB_ALPHA_EXT = 35906 pattern SRGB8_ALPHA8_EXT = 35907
@@ -1,45 +1,60 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Element- (getAttribute, getAttribute_, getAttributeUnchecked, setAttribute,- removeAttribute, getAttributeNode, getAttributeNode_,+ (getAttribute, getAttribute_, getAttributeUnsafe,+ getAttributeUnchecked, setAttribute, removeAttribute,+ getAttributeNode, getAttributeNode_, getAttributeNodeUnsafe, getAttributeNodeUnchecked, setAttributeNode, setAttributeNode_,- setAttributeNodeUnchecked, removeAttributeNode,- removeAttributeNode_, removeAttributeNodeUnchecked,+ setAttributeNodeUnsafe, setAttributeNodeUnchecked,+ removeAttributeNode, removeAttributeNode_,+ removeAttributeNodeUnsafe, removeAttributeNodeUnchecked, getElementsByTagName, getElementsByTagName_,- getElementsByTagNameUnchecked, hasAttributes, hasAttributes_,- getAttributeNS, getAttributeNS_, setAttributeNS, removeAttributeNS,- getElementsByTagNameNS, getElementsByTagNameNS_,+ getElementsByTagNameUnsafe, getElementsByTagNameUnchecked,+ hasAttributes, hasAttributes_, getAttributeNS, getAttributeNS_,+ setAttributeNS, removeAttributeNS, getElementsByTagNameNS,+ getElementsByTagNameNS_, getElementsByTagNameNSUnsafe, getElementsByTagNameNSUnchecked, getAttributeNodeNS,- getAttributeNodeNS_, getAttributeNodeNSUnchecked,- setAttributeNodeNS, setAttributeNodeNS_,+ getAttributeNodeNS_, getAttributeNodeNSUnsafe,+ getAttributeNodeNSUnchecked, setAttributeNodeNS,+ setAttributeNodeNS_, setAttributeNodeNSUnsafe, setAttributeNodeNSUnchecked, hasAttribute, hasAttribute_, hasAttributeNS, hasAttributeNS_, focus, blur, scrollIntoView, scrollIntoViewIfNeeded, scrollByLines, scrollByPages, getElementsByClassName, getElementsByClassName_,- getElementsByClassNameUnchecked, querySelector, querySelector_,+ getElementsByClassNameUnsafe, getElementsByClassNameUnchecked,+ querySelector, querySelector_, querySelectorUnsafe, querySelectorUnchecked, querySelectorAll, querySelectorAll_,- querySelectorAllUnchecked, matches, matches_, closest, closest_,- closestUnchecked, webkitMatchesSelector, webkitMatchesSelector_,- getClientRects, getClientRects_, getClientRectsUnchecked,+ querySelectorAllUnsafe, querySelectorAllUnchecked, matches,+ matches_, closest, closest_, closestUnsafe, closestUnchecked,+ webkitMatchesSelector, webkitMatchesSelector_, getClientRects,+ getClientRects_, getClientRectsUnsafe, getClientRectsUnchecked, getBoundingClientRect, getBoundingClientRect_,- getBoundingClientRectUnchecked, webkitRequestFullScreen,- webkitRequestFullscreen, requestPointerLock,- webkitGetRegionFlowRanges, webkitGetRegionFlowRanges_,- pattern ALLOW_KEYBOARD_INPUT, getTagName, getTagNameUnchecked,- getAttributes, getAttributesUnchecked, getStyle, getStyleUnchecked,- setId, getId, getOffsetLeft, getOffsetTop, getOffsetWidth,- getOffsetHeight, getClientLeft, getClientTop, getClientWidth,- getClientHeight, setScrollLeft, getScrollLeft, setScrollTop,- getScrollTop, getScrollWidth, getScrollHeight, getOffsetParent,+ getBoundingClientRectUnsafe, getBoundingClientRectUnchecked,+ webkitRequestFullScreen, webkitRequestFullscreen,+ requestPointerLock, webkitGetRegionFlowRanges,+ webkitGetRegionFlowRanges_, pattern ALLOW_KEYBOARD_INPUT,+ getTagName, getTagNameUnsafe, getTagNameUnchecked, getAttributes,+ getAttributesUnsafe, getAttributesUnchecked, getStyle,+ getStyleUnsafe, getStyleUnchecked, setId, getId, getOffsetLeft,+ getOffsetTop, getOffsetWidth, getOffsetHeight, getClientLeft,+ getClientTop, getClientWidth, getClientHeight, setScrollLeft,+ getScrollLeft, setScrollTop, getScrollTop, getScrollWidth,+ getScrollHeight, getOffsetParent, getOffsetParentUnsafe, getOffsetParentUnchecked, setInnerHTML, getInnerHTML,- getInnerHTMLUnchecked, setOuterHTML, getOuterHTML,- getOuterHTMLUnchecked, setClassName, getClassName, getClassList,- getClassListUnchecked, getDataset, getDatasetUnchecked,- getFirstElementChild, getFirstElementChildUnchecked,- getLastElementChild, getLastElementChildUnchecked,- getPreviousElementSibling, getPreviousElementSiblingUnchecked,- getNextElementSibling, getNextElementSiblingUnchecked,+ getInnerHTMLUnsafe, getInnerHTMLUnchecked, setOuterHTML,+ getOuterHTML, getOuterHTMLUnsafe, getOuterHTMLUnchecked,+ setClassName, getClassName, getClassList, getClassListUnsafe,+ getClassListUnchecked, getDataset, getDatasetUnsafe,+ getDatasetUnchecked, getFirstElementChild,+ getFirstElementChildUnsafe, getFirstElementChildUnchecked,+ getLastElementChild, getLastElementChildUnsafe,+ getLastElementChildUnchecked, getPreviousElementSibling,+ getPreviousElementSiblingUnsafe,+ getPreviousElementSiblingUnchecked, getNextElementSibling,+ getNextElementSiblingUnsafe, getNextElementSiblingUnchecked, getChildElementCount, setUiactions, getUiactions, getWebkitRegionOverset, abort, blurEvent, change, click, contextMenu, dblClick, drag, dragEnd, dragEnter, dragLeave,@@ -51,9 +66,10 @@ touchMove, touchEnd, touchCancel, webKitFullscreenChange, webKitFullscreenError, webKitWillRevealBottom, webKitWillRevealLeft, webKitWillRevealRight, webKitWillRevealTop,- Element, castToElement, gTypeElement, IsElement, toElement)+ Element(..), gTypeElement, IsElement, toElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -64,6 +80,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.getAttribute Mozilla Element.getAttribute documentation> getAttribute ::@@ -84,6 +110,17 @@ (void ((toElement self) ^. jsf "getAttribute" [toJSVal name])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.getAttribute Mozilla Element.getAttribute documentation> +getAttributeUnsafe ::+ (MonadDOM m, IsElement self, ToJSString name, HasCallStack,+ FromJSString result) =>+ self -> name -> m result+getAttributeUnsafe self name+ = liftDOM+ ((((toElement self) ^. jsf "getAttribute" [toJSVal name]) >>=+ fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.getAttribute Mozilla Element.getAttribute documentation> getAttributeUnchecked :: (MonadDOM m, IsElement self, ToJSString name, FromJSString result) =>@@ -129,6 +166,16 @@ (void ((toElement self) ^. jsf "getAttributeNode" [toJSVal name])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.getAttributeNode Mozilla Element.getAttributeNode documentation> +getAttributeNodeUnsafe ::+ (MonadDOM m, IsElement self, ToJSString name, HasCallStack) =>+ self -> name -> m Attr+getAttributeNodeUnsafe self name+ = liftDOM+ ((((toElement self) ^. jsf "getAttributeNode" [toJSVal name]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.getAttributeNode Mozilla Element.getAttributeNode documentation> getAttributeNodeUnchecked :: (MonadDOM m, IsElement self, ToJSString name) => self -> name -> m Attr@@ -155,6 +202,16 @@ ((toElement self) ^. jsf "setAttributeNode" [toJSVal newAttr])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.setAttributeNode Mozilla Element.setAttributeNode documentation> +setAttributeNodeUnsafe ::+ (MonadDOM m, IsElement self, HasCallStack) =>+ self -> Maybe Attr -> m Attr+setAttributeNodeUnsafe self newAttr+ = liftDOM+ ((((toElement self) ^. jsf "setAttributeNode" [toJSVal newAttr])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.setAttributeNode Mozilla Element.setAttributeNode documentation> setAttributeNodeUnchecked :: (MonadDOM m, IsElement self) => self -> Maybe Attr -> m Attr setAttributeNodeUnchecked self newAttr@@ -180,6 +237,16 @@ ((toElement self) ^. jsf "removeAttributeNode" [toJSVal oldAttr])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.removeAttributeNode Mozilla Element.removeAttributeNode documentation> +removeAttributeNodeUnsafe ::+ (MonadDOM m, IsElement self, HasCallStack) =>+ self -> Maybe Attr -> m Attr+removeAttributeNodeUnsafe self oldAttr+ = liftDOM+ ((((toElement self) ^. jsf "removeAttributeNode" [toJSVal oldAttr])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.removeAttributeNode Mozilla Element.removeAttributeNode documentation> removeAttributeNodeUnchecked :: (MonadDOM m, IsElement self) => self -> Maybe Attr -> m Attr removeAttributeNodeUnchecked self oldAttr@@ -206,6 +273,16 @@ ((toElement self) ^. jsf "getElementsByTagName" [toJSVal name])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.getElementsByTagName Mozilla Element.getElementsByTagName documentation> +getElementsByTagNameUnsafe ::+ (MonadDOM m, IsElement self, ToJSString name, HasCallStack) =>+ self -> name -> m NodeList+getElementsByTagNameUnsafe self name+ = liftDOM+ ((((toElement self) ^. jsf "getElementsByTagName" [toJSVal name])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.getElementsByTagName Mozilla Element.getElementsByTagName documentation> getElementsByTagNameUnchecked :: (MonadDOM m, IsElement self, ToJSString name) => self -> name -> m NodeList@@ -292,6 +369,18 @@ [toJSVal namespaceURI, toJSVal localName])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.getElementsByTagNameNS Mozilla Element.getElementsByTagNameNS documentation> +getElementsByTagNameNSUnsafe ::+ (MonadDOM m, IsElement self, ToJSString namespaceURI,+ ToJSString localName, HasCallStack) =>+ self -> Maybe namespaceURI -> localName -> m NodeList+getElementsByTagNameNSUnsafe self namespaceURI localName+ = liftDOM+ ((((toElement self) ^. jsf "getElementsByTagNameNS"+ [toJSVal namespaceURI, toJSVal localName])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.getElementsByTagNameNS Mozilla Element.getElementsByTagNameNS documentation> getElementsByTagNameNSUnchecked :: (MonadDOM m, IsElement self, ToJSString namespaceURI, ToJSString localName) =>@@ -325,6 +414,18 @@ [toJSVal namespaceURI, toJSVal localName])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.getAttributeNodeNS Mozilla Element.getAttributeNodeNS documentation> +getAttributeNodeNSUnsafe ::+ (MonadDOM m, IsElement self, ToJSString namespaceURI,+ ToJSString localName, HasCallStack) =>+ self -> Maybe namespaceURI -> localName -> m Attr+getAttributeNodeNSUnsafe self namespaceURI localName+ = liftDOM+ ((((toElement self) ^. jsf "getAttributeNodeNS"+ [toJSVal namespaceURI, toJSVal localName])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.getAttributeNodeNS Mozilla Element.getAttributeNodeNS documentation> getAttributeNodeNSUnchecked :: (MonadDOM m, IsElement self, ToJSString namespaceURI, ToJSString localName) =>@@ -353,6 +454,16 @@ ((toElement self) ^. jsf "setAttributeNodeNS" [toJSVal newAttr])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.setAttributeNodeNS Mozilla Element.setAttributeNodeNS documentation> +setAttributeNodeNSUnsafe ::+ (MonadDOM m, IsElement self, HasCallStack) =>+ self -> Maybe Attr -> m Attr+setAttributeNodeNSUnsafe self newAttr+ = liftDOM+ ((((toElement self) ^. jsf "setAttributeNodeNS" [toJSVal newAttr])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.setAttributeNodeNS Mozilla Element.setAttributeNodeNS documentation> setAttributeNodeNSUnchecked :: (MonadDOM m, IsElement self) => self -> Maybe Attr -> m Attr setAttributeNodeNSUnchecked self newAttr@@ -457,6 +568,16 @@ ((toElement self) ^. jsf "getElementsByClassName" [toJSVal name])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.getElementsByClassName Mozilla Element.getElementsByClassName documentation> +getElementsByClassNameUnsafe ::+ (MonadDOM m, IsElement self, ToJSString name, HasCallStack) =>+ self -> name -> m NodeList+getElementsByClassNameUnsafe self name+ = liftDOM+ ((((toElement self) ^. jsf "getElementsByClassName" [toJSVal name])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.getElementsByClassName Mozilla Element.getElementsByClassName documentation> getElementsByClassNameUnchecked :: (MonadDOM m, IsElement self, ToJSString name) => self -> name -> m NodeList@@ -484,6 +605,16 @@ ((toElement self) ^. jsf "querySelector" [toJSVal selectors])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.querySelector Mozilla Element.querySelector documentation> +querySelectorUnsafe ::+ (MonadDOM m, IsElement self, ToJSString selectors, HasCallStack) =>+ self -> selectors -> m Element+querySelectorUnsafe self selectors+ = liftDOM+ ((((toElement self) ^. jsf "querySelector" [toJSVal selectors]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.querySelector Mozilla Element.querySelector documentation> querySelectorUnchecked :: (MonadDOM m, IsElement self, ToJSString selectors) => self -> selectors -> m Element@@ -511,6 +642,16 @@ ((toElement self) ^. jsf "querySelectorAll" [toJSVal selectors])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.querySelectorAll Mozilla Element.querySelectorAll documentation> +querySelectorAllUnsafe ::+ (MonadDOM m, IsElement self, ToJSString selectors, HasCallStack) =>+ self -> selectors -> m NodeList+querySelectorAllUnsafe self selectors+ = liftDOM+ ((((toElement self) ^. jsf "querySelectorAll" [toJSVal selectors])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.querySelectorAll Mozilla Element.querySelectorAll documentation> querySelectorAllUnchecked :: (MonadDOM m, IsElement self, ToJSString selectors) => self -> selectors -> m NodeList@@ -554,6 +695,16 @@ (void ((toElement self) ^. jsf "closest" [toJSVal selectors])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.closest Mozilla Element.closest documentation> +closestUnsafe ::+ (MonadDOM m, IsElement self, ToJSString selectors, HasCallStack) =>+ self -> selectors -> m Element+closestUnsafe self selectors+ = liftDOM+ ((((toElement self) ^. jsf "closest" [toJSVal selectors]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.closest Mozilla Element.closest documentation> closestUnchecked :: (MonadDOM m, IsElement self, ToJSString selectors) => self -> selectors -> m Element@@ -595,6 +746,15 @@ = liftDOM (void ((toElement self) ^. jsf "getClientRects" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.getClientRects Mozilla Element.getClientRects documentation> +getClientRectsUnsafe ::+ (MonadDOM m, IsElement self, HasCallStack) =>+ self -> m ClientRectList+getClientRectsUnsafe self+ = liftDOM+ ((((toElement self) ^. jsf "getClientRects" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.getClientRects Mozilla Element.getClientRects documentation> getClientRectsUnchecked :: (MonadDOM m, IsElement self) => self -> m ClientRectList getClientRectsUnchecked self@@ -618,6 +778,15 @@ (void ((toElement self) ^. jsf "getBoundingClientRect" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.getBoundingClientRect Mozilla Element.getBoundingClientRect documentation> +getBoundingClientRectUnsafe ::+ (MonadDOM m, IsElement self, HasCallStack) => self -> m ClientRect+getBoundingClientRectUnsafe self+ = liftDOM+ ((((toElement self) ^. jsf "getBoundingClientRect" ()) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.getBoundingClientRect Mozilla Element.getBoundingClientRect documentation> getBoundingClientRectUnchecked :: (MonadDOM m, IsElement self) => self -> m ClientRect getBoundingClientRectUnchecked self@@ -671,6 +840,15 @@ (((toElement self) ^. js "tagName") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.tagName Mozilla Element.tagName documentation> +getTagNameUnsafe ::+ (MonadDOM m, IsElement self, HasCallStack, FromJSString result) =>+ self -> m result+getTagNameUnsafe self+ = liftDOM+ ((((toElement self) ^. js "tagName") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.tagName Mozilla Element.tagName documentation> getTagNameUnchecked :: (MonadDOM m, IsElement self, FromJSString result) => self -> m result@@ -685,6 +863,15 @@ = liftDOM (((toElement self) ^. js "attributes") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.attributes Mozilla Element.attributes documentation> +getAttributesUnsafe ::+ (MonadDOM m, IsElement self, HasCallStack) =>+ self -> m NamedNodeMap+getAttributesUnsafe self+ = liftDOM+ ((((toElement self) ^. js "attributes") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.attributes Mozilla Element.attributes documentation> getAttributesUnchecked :: (MonadDOM m, IsElement self) => self -> m NamedNodeMap getAttributesUnchecked self@@ -699,6 +886,15 @@ = liftDOM (((toElement self) ^. js "style") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.style Mozilla Element.style documentation> +getStyleUnsafe ::+ (MonadDOM m, IsElement self, HasCallStack) =>+ self -> m CSSStyleDeclaration+getStyleUnsafe self+ = liftDOM+ ((((toElement self) ^. js "style") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.style Mozilla Element.style documentation> getStyleUnchecked :: (MonadDOM m, IsElement self) => self -> m CSSStyleDeclaration getStyleUnchecked self@@ -801,6 +997,14 @@ = liftDOM (((toElement self) ^. js "offsetParent") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.offsetParent Mozilla Element.offsetParent documentation> +getOffsetParentUnsafe ::+ (MonadDOM m, IsElement self, HasCallStack) => self -> m Element+getOffsetParentUnsafe self+ = liftDOM+ ((((toElement self) ^. js "offsetParent") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.offsetParent Mozilla Element.offsetParent documentation> getOffsetParentUnchecked :: (MonadDOM m, IsElement self) => self -> m Element getOffsetParentUnchecked self@@ -823,6 +1027,15 @@ (((toElement self) ^. js "innerHTML") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.innerHTML Mozilla Element.innerHTML documentation> +getInnerHTMLUnsafe ::+ (MonadDOM m, IsElement self, HasCallStack, FromJSString result) =>+ self -> m result+getInnerHTMLUnsafe self+ = liftDOM+ ((((toElement self) ^. js "innerHTML") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.innerHTML Mozilla Element.innerHTML documentation> getInnerHTMLUnchecked :: (MonadDOM m, IsElement self, FromJSString result) => self -> m result@@ -846,6 +1059,15 @@ (((toElement self) ^. js "outerHTML") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.outerHTML Mozilla Element.outerHTML documentation> +getOuterHTMLUnsafe ::+ (MonadDOM m, IsElement self, HasCallStack, FromJSString result) =>+ self -> m result+getOuterHTMLUnsafe self+ = liftDOM+ ((((toElement self) ^. js "outerHTML") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.outerHTML Mozilla Element.outerHTML documentation> getOuterHTMLUnchecked :: (MonadDOM m, IsElement self, FromJSString result) => self -> m result@@ -874,6 +1096,15 @@ = liftDOM (((toElement self) ^. js "classList") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.classList Mozilla Element.classList documentation> +getClassListUnsafe ::+ (MonadDOM m, IsElement self, HasCallStack) =>+ self -> m DOMTokenList+getClassListUnsafe self+ = liftDOM+ ((((toElement self) ^. js "classList") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.classList Mozilla Element.classList documentation> getClassListUnchecked :: (MonadDOM m, IsElement self) => self -> m DOMTokenList getClassListUnchecked self@@ -887,6 +1118,15 @@ = liftDOM (((toElement self) ^. js "dataset") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.dataset Mozilla Element.dataset documentation> +getDatasetUnsafe ::+ (MonadDOM m, IsElement self, HasCallStack) =>+ self -> m DOMStringMap+getDatasetUnsafe self+ = liftDOM+ ((((toElement self) ^. js "dataset") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.dataset Mozilla Element.dataset documentation> getDatasetUnchecked :: (MonadDOM m, IsElement self) => self -> m DOMStringMap getDatasetUnchecked self@@ -901,6 +1141,14 @@ (((toElement self) ^. js "firstElementChild") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.firstElementChild Mozilla Element.firstElementChild documentation> +getFirstElementChildUnsafe ::+ (MonadDOM m, IsElement self, HasCallStack) => self -> m Element+getFirstElementChildUnsafe self+ = liftDOM+ ((((toElement self) ^. js "firstElementChild") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.firstElementChild Mozilla Element.firstElementChild documentation> getFirstElementChildUnchecked :: (MonadDOM m, IsElement self) => self -> m Element getFirstElementChildUnchecked self@@ -916,6 +1164,14 @@ (((toElement self) ^. js "lastElementChild") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.lastElementChild Mozilla Element.lastElementChild documentation> +getLastElementChildUnsafe ::+ (MonadDOM m, IsElement self, HasCallStack) => self -> m Element+getLastElementChildUnsafe self+ = liftDOM+ ((((toElement self) ^. js "lastElementChild") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.lastElementChild Mozilla Element.lastElementChild documentation> getLastElementChildUnchecked :: (MonadDOM m, IsElement self) => self -> m Element getLastElementChildUnchecked self@@ -931,6 +1187,14 @@ (((toElement self) ^. js "previousElementSibling") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.previousElementSibling Mozilla Element.previousElementSibling documentation> +getPreviousElementSiblingUnsafe ::+ (MonadDOM m, IsElement self, HasCallStack) => self -> m Element+getPreviousElementSiblingUnsafe self+ = liftDOM+ ((((toElement self) ^. js "previousElementSibling") >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.previousElementSibling Mozilla Element.previousElementSibling documentation> getPreviousElementSiblingUnchecked :: (MonadDOM m, IsElement self) => self -> m Element getPreviousElementSiblingUnchecked self@@ -944,6 +1208,14 @@ getNextElementSibling self = liftDOM (((toElement self) ^. js "nextElementSibling") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.nextElementSibling Mozilla Element.nextElementSibling documentation> +getNextElementSiblingUnsafe ::+ (MonadDOM m, IsElement self, HasCallStack) => self -> m Element+getNextElementSiblingUnsafe self+ = liftDOM+ ((((toElement self) ^. js "nextElementSibling") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.nextElementSibling Mozilla Element.nextElementSibling documentation> getNextElementSiblingUnchecked ::
@@ -1,11 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Entity- (getPublicId, getPublicIdUnchecked, getSystemId,- getSystemIdUnchecked, getNotationName, getNotationNameUnchecked,- Entity, castToEntity, gTypeEntity)+ (getPublicId, getPublicIdUnsafe, getPublicIdUnchecked, getSystemId,+ getSystemIdUnsafe, getSystemIdUnchecked, getNotationName,+ getNotationNameUnsafe, getNotationNameUnchecked, Entity(..),+ gTypeEntity) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Entity.publicId Mozilla Entity.publicId documentation> getPublicId ::@@ -24,6 +39,15 @@ = liftDOM ((self ^. js "publicId") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Entity.publicId Mozilla Entity.publicId documentation> +getPublicIdUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ Entity -> m result+getPublicIdUnsafe self+ = liftDOM+ (((self ^. js "publicId") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Entity.publicId Mozilla Entity.publicId documentation> getPublicIdUnchecked :: (MonadDOM m, FromJSString result) => Entity -> m result getPublicIdUnchecked self@@ -36,6 +60,15 @@ = liftDOM ((self ^. js "systemId") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Entity.systemId Mozilla Entity.systemId documentation> +getSystemIdUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ Entity -> m result+getSystemIdUnsafe self+ = liftDOM+ (((self ^. js "systemId") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Entity.systemId Mozilla Entity.systemId documentation> getSystemIdUnchecked :: (MonadDOM m, FromJSString result) => Entity -> m result getSystemIdUnchecked self@@ -46,6 +79,15 @@ (MonadDOM m, FromJSString result) => Entity -> m (Maybe result) getNotationName self = liftDOM ((self ^. js "notationName") >>= fromMaybeJSString)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Entity.notationName Mozilla Entity.notationName documentation> +getNotationNameUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ Entity -> m result+getNotationNameUnsafe self+ = liftDOM+ (((self ^. js "notationName") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Entity.notationName Mozilla Entity.notationName documentation> getNotationNameUnchecked ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Enums (KeyType(..), ToJSVal, FromJSVal, js_KeyTypeSecret,@@ -45,6 +48,7 @@ js_XMLHttpRequestResponseTypeText) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -53,6 +57,16 @@ import Control.Applicative ((<$>)) import Control.Monad (void) import Control.Lens.Operators ((^.))+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif data KeyType = KeyTypeSecret | KeyTypePublic
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.ErrorEvent- (getMessage, getFilename, getLineno, getColno, ErrorEvent,- castToErrorEvent, gTypeErrorEvent)+ (getMessage, getFilename, getLineno, getColno, ErrorEvent(..),+ gTypeErrorEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent.message Mozilla ErrorEvent.message documentation> getMessage ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Event (stopPropagation, preventDefault, initEvent,@@ -8,15 +11,17 @@ pattern MOUSEMOVE, pattern MOUSEDRAG, pattern CLICK, pattern DBLCLICK, pattern KEYDOWN, pattern KEYUP, pattern KEYPRESS, pattern DRAGDROP, pattern FOCUS, pattern BLUR, pattern SELECT,- pattern CHANGE, getType, getTarget, getTargetUnchecked,- getCurrentTarget, getCurrentTargetUnchecked, getEventPhase,- getBubbles, getCancelable, getTimeStamp, getDefaultPrevented,- getSrcElement, getSrcElementUnchecked, setReturnValue,+ pattern CHANGE, getType, getTarget, getTargetUnsafe,+ getTargetUnchecked, getCurrentTarget, getCurrentTargetUnsafe,+ getCurrentTargetUnchecked, getEventPhase, getBubbles,+ getCancelable, getTimeStamp, getDefaultPrevented, getSrcElement,+ getSrcElementUnsafe, getSrcElementUnchecked, setReturnValue, getReturnValue, setCancelBubble, getCancelBubble, getClipboardData,- getClipboardDataUnchecked, Event, castToEvent, gTypeEvent, IsEvent,- toEvent)+ getClipboardDataUnsafe, getClipboardDataUnchecked, Event(..),+ gTypeEvent, IsEvent, toEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -26,6 +31,16 @@ import Control.Monad (void) import Control.Lens.Operators ((^.)) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Event.stopPropagation Mozilla Event.stopPropagation documentation> stopPropagation :: (MonadDOM m, IsEvent self) => self -> m ()@@ -88,6 +103,14 @@ = liftDOM (((toEvent self) ^. js "target") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Event.target Mozilla Event.target documentation> +getTargetUnsafe ::+ (MonadDOM m, IsEvent self, HasCallStack) => self -> m EventTarget+getTargetUnsafe self+ = liftDOM+ ((((toEvent self) ^. js "target") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Event.target Mozilla Event.target documentation> getTargetUnchecked :: (MonadDOM m, IsEvent self) => self -> m EventTarget getTargetUnchecked self@@ -100,6 +123,14 @@ = liftDOM (((toEvent self) ^. js "currentTarget") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Event.currentTarget Mozilla Event.currentTarget documentation> +getCurrentTargetUnsafe ::+ (MonadDOM m, IsEvent self, HasCallStack) => self -> m EventTarget+getCurrentTargetUnsafe self+ = liftDOM+ ((((toEvent self) ^. js "currentTarget") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Event.currentTarget Mozilla Event.currentTarget documentation> getCurrentTargetUnchecked :: (MonadDOM m, IsEvent self) => self -> m EventTarget getCurrentTargetUnchecked self@@ -140,6 +171,14 @@ = liftDOM (((toEvent self) ^. js "srcElement") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Event.srcElement Mozilla Event.srcElement documentation> +getSrcElementUnsafe ::+ (MonadDOM m, IsEvent self, HasCallStack) => self -> m EventTarget+getSrcElementUnsafe self+ = liftDOM+ ((((toEvent self) ^. js "srcElement") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Event.srcElement Mozilla Event.srcElement documentation> getSrcElementUnchecked :: (MonadDOM m, IsEvent self) => self -> m EventTarget getSrcElementUnchecked self@@ -173,6 +212,14 @@ (MonadDOM m, IsEvent self) => self -> m (Maybe DataTransfer) getClipboardData self = liftDOM (((toEvent self) ^. js "clipboardData") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Event.clipboardData Mozilla Event.clipboardData documentation> +getClipboardDataUnsafe ::+ (MonadDOM m, IsEvent self, HasCallStack) => self -> m DataTransfer+getClipboardDataUnsafe self+ = liftDOM+ ((((toEvent self) ^. js "clipboardData") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Event.clipboardData Mozilla Event.clipboardData documentation> getClipboardDataUnchecked ::
@@ -1,10 +1,12 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.EventListener- (handleEvent, EventListener, castToEventListener,- gTypeEventListener)- where+ (handleEvent, EventListener(..), gTypeEventListener) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +17,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/EventListener.handleEvent Mozilla EventListener.handleEvent documentation> handleEvent ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.EventSource (newEventSource, close, pattern CONNECTING, pattern OPEN, pattern CLOSED, getUrl, getWithCredentials, getReadyState, open,- message, error, EventSource, castToEventSource, gTypeEventSource)+ message, error, EventSource(..), gTypeEventSource) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/EventSource Mozilla EventSource documentation> newEventSource ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.EventTarget (addEventListener, removeEventListener, dispatchEvent,- dispatchEvent_, EventTarget, castToEventTarget, gTypeEventTarget,- IsEventTarget, toEventTarget)+ dispatchEvent_, EventTarget(..), gTypeEventTarget, IsEventTarget,+ toEventTarget) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Monad (void) import Control.Lens.Operators ((^.)) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/EventTarget.addEventListener Mozilla EventTarget.addEventListener documentation> addEventListener ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.File- (getName, getLastModifiedDate, getLastModifiedDateUnchecked, File,- castToFile, gTypeFile)+ (getName, getLastModifiedDate, getLastModifiedDateUnsafe,+ getLastModifiedDateUnchecked, File(..), gTypeFile) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/File.name Mozilla File.name documentation> getName :: (MonadDOM m, FromJSString result) => File -> m result@@ -24,6 +38,14 @@ getLastModifiedDate :: (MonadDOM m) => File -> m (Maybe Date) getLastModifiedDate self = liftDOM ((self ^. js "lastModifiedDate") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/File.lastModifiedDate Mozilla File.lastModifiedDate documentation> +getLastModifiedDateUnsafe ::+ (MonadDOM m, HasCallStack) => File -> m Date+getLastModifiedDateUnsafe self+ = liftDOM+ (((self ^. js "lastModifiedDate") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/File.lastModifiedDate Mozilla File.lastModifiedDate documentation> getLastModifiedDateUnchecked :: (MonadDOM m) => File -> m Date
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.FileError (pattern NOT_FOUND_ERR, pattern SECURITY_ERR, pattern ABORT_ERR,@@ -6,10 +9,10 @@ pattern NO_MODIFICATION_ALLOWED_ERR, pattern INVALID_STATE_ERR, pattern SYNTAX_ERR, pattern INVALID_MODIFICATION_ERR, pattern QUOTA_EXCEEDED_ERR, pattern TYPE_MISMATCH_ERR,- pattern PATH_EXISTS_ERR, getCode, FileError, castToFileError,- gTypeFileError)+ pattern PATH_EXISTS_ERR, getCode, FileError(..), gTypeFileError) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -20,6 +23,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern NOT_FOUND_ERR = 1 pattern SECURITY_ERR = 2 pattern ABORT_ERR = 3
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.FileList- (item, item_, itemUnchecked, getLength, FileList, castToFileList,+ (item, item_, itemUnsafe, itemUnchecked, getLength, FileList(..), gTypeFileList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/FileList.item Mozilla FileList.item documentation> item :: (MonadDOM m) => FileList -> Word -> m (Maybe File)@@ -25,6 +39,14 @@ item_ :: (MonadDOM m) => FileList -> Word -> m () item_ self index = liftDOM (void (self ^. jsf "item" [toJSVal index]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/FileList.item Mozilla FileList.item documentation> +itemUnsafe ::+ (MonadDOM m, HasCallStack) => FileList -> Word -> m File+itemUnsafe self index+ = liftDOM+ (((self ^. jsf "item" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/FileList.item Mozilla FileList.item documentation> itemUnchecked :: (MonadDOM m) => FileList -> Word -> m File
@@ -1,13 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.FileReader (newFileReader, readAsArrayBuffer, readAsBinaryString, readAsText, readAsDataURL, abort, pattern EMPTY, pattern LOADING, pattern DONE,- getReadyState, getResult, getError, getErrorUnchecked, loadStart,- progress, load, abortEvent, error, loadEnd, FileReader,- castToFileReader, gTypeFileReader)+ getReadyState, getResult, getError, getErrorUnsafe,+ getErrorUnchecked, loadStart, progress, load, abortEvent, error,+ loadEnd, FileReader(..), gTypeFileReader) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/FileReader Mozilla FileReader documentation> newFileReader :: (MonadDOM m) => m FileReader@@ -68,6 +82,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/FileReader.error Mozilla FileReader.error documentation> getError :: (MonadDOM m) => FileReader -> m (Maybe FileError) getError self = liftDOM ((self ^. js "error") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/FileReader.error Mozilla FileReader.error documentation> +getErrorUnsafe ::+ (MonadDOM m, HasCallStack) => FileReader -> m FileError+getErrorUnsafe self+ = liftDOM+ (((self ^. js "error") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/FileReader.error Mozilla FileReader.error documentation> getErrorUnchecked :: (MonadDOM m) => FileReader -> m FileError
@@ -1,13 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.FileReaderSync (newFileReaderSync, readAsArrayBuffer, readAsArrayBuffer_,- readAsArrayBufferUnchecked, readAsBinaryString,- readAsBinaryString_, readAsText, readAsText_, readAsDataURL,- readAsDataURL_, FileReaderSync, castToFileReaderSync,+ readAsArrayBufferUnsafe, readAsArrayBufferUnchecked,+ readAsBinaryString, readAsBinaryString_, readAsText, readAsText_,+ readAsDataURL, readAsDataURL_, FileReaderSync(..), gTypeFileReaderSync) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync Mozilla FileReaderSync documentation> newFileReaderSync :: (MonadDOM m) => m FileReaderSync@@ -37,6 +51,15 @@ (MonadDOM m, IsBlob blob) => FileReaderSync -> Maybe blob -> m () readAsArrayBuffer_ self blob = liftDOM (void (self ^. jsf "readAsArrayBuffer" [toJSVal blob]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync.readAsArrayBuffer Mozilla FileReaderSync.readAsArrayBuffer documentation> +readAsArrayBufferUnsafe ::+ (MonadDOM m, IsBlob blob, HasCallStack) =>+ FileReaderSync -> Maybe blob -> m ArrayBuffer+readAsArrayBufferUnsafe self blob+ = liftDOM+ (((self ^. jsf "readAsArrayBuffer" [toJSVal blob]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync.readAsArrayBuffer Mozilla FileReaderSync.readAsArrayBuffer documentation> readAsArrayBufferUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.FocusEvent- (getRelatedTarget, getRelatedTargetUnchecked, FocusEvent,- castToFocusEvent, gTypeFocusEvent)+ (getRelatedTarget, getRelatedTargetUnsafe,+ getRelatedTargetUnchecked, FocusEvent(..), gTypeFocusEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,12 +19,30 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent.relatedTarget Mozilla FocusEvent.relatedTarget documentation> getRelatedTarget :: (MonadDOM m) => FocusEvent -> m (Maybe EventTarget) getRelatedTarget self = liftDOM ((self ^. js "relatedTarget") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent.relatedTarget Mozilla FocusEvent.relatedTarget documentation> +getRelatedTargetUnsafe ::+ (MonadDOM m, HasCallStack) => FocusEvent -> m EventTarget+getRelatedTargetUnsafe self+ = liftDOM+ (((self ^. js "relatedTarget") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent.relatedTarget Mozilla FocusEvent.relatedTarget documentation> getRelatedTargetUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.FontLoader (checkFont, checkFont_, loadFont, notifyWhenFontsReady, loading,- loadingDone, loadStart, load, error, getLoading, FontLoader,- castToFontLoader, gTypeFontLoader)+ loadingDone, loadStart, load, error, getLoading, FontLoader(..),+ gTypeFontLoader) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/FontLoader.checkFont Mozilla FontLoader.checkFont documentation> checkFont ::
@@ -1,9 +1,12 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.FormData- (newFormData, append, FormData, castToFormData, gTypeFormData)- where+ (newFormData, append, FormData(..), gTypeFormData) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -14,6 +17,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/FormData Mozilla FormData documentation> newFormData :: (MonadDOM m) => Maybe HTMLFormElement -> m FormData
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.GainNode- (getGain, getGainUnchecked, GainNode, castToGainNode,+ (getGain, getGainUnsafe, getGainUnchecked, GainNode(..), gTypeGainNode) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,10 +19,28 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/GainNode.gain Mozilla GainNode.gain documentation> getGain :: (MonadDOM m) => GainNode -> m (Maybe AudioParam) getGain self = liftDOM ((self ^. js "gain") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/GainNode.gain Mozilla GainNode.gain documentation> +getGainUnsafe ::+ (MonadDOM m, HasCallStack) => GainNode -> m AudioParam+getGainUnsafe self+ = liftDOM+ (((self ^. js "gain") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/GainNode.gain Mozilla GainNode.gain documentation> getGainUnchecked :: (MonadDOM m) => GainNode -> m AudioParam
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Gamepad (getId, getIndex, getConnected, getTimestamp, getMapping, getAxes,- getButtons, Gamepad, castToGamepad, gTypeGamepad)+ getButtons, Gamepad(..), gTypeGamepad) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Gamepad.id Mozilla Gamepad.id documentation> getId :: (MonadDOM m, FromJSString result) => Gamepad -> m result
@@ -1,10 +1,12 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.GamepadButton- (getPressed, getValue, GamepadButton, castToGamepadButton,- gTypeGamepadButton)- where+ (getPressed, getValue, GamepadButton(..), gTypeGamepadButton) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +17,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton.pressed Mozilla GamepadButton.pressed documentation> getPressed :: (MonadDOM m) => GamepadButton -> m Bool
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.GamepadEvent- (getGamepad, getGamepadUnchecked, GamepadEvent, castToGamepadEvent,- gTypeGamepadEvent)+ (getGamepad, getGamepadUnsafe, getGamepadUnchecked,+ GamepadEvent(..), gTypeGamepadEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,10 +19,28 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/GamepadEvent.gamepad Mozilla GamepadEvent.gamepad documentation> getGamepad :: (MonadDOM m) => GamepadEvent -> m (Maybe Gamepad) getGamepad self = liftDOM ((self ^. js "gamepad") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/GamepadEvent.gamepad Mozilla GamepadEvent.gamepad documentation> +getGamepadUnsafe ::+ (MonadDOM m, HasCallStack) => GamepadEvent -> m Gamepad+getGamepadUnsafe self+ = liftDOM+ (((self ^. js "gamepad") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/GamepadEvent.gamepad Mozilla GamepadEvent.gamepad documentation> getGamepadUnchecked :: (MonadDOM m) => GamepadEvent -> m Gamepad
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Geolocation (getCurrentPosition, watchPosition, watchPosition_, clearWatch,- Geolocation, castToGeolocation, gTypeGeolocation)+ Geolocation(..), gTypeGeolocation) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Geolocation.getCurrentPosition Mozilla Geolocation.getCurrentPosition documentation> getCurrentPosition ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Geoposition- (getCoords, getCoordsUnchecked, getTimestamp, Geoposition,- castToGeoposition, gTypeGeoposition)+ (getCoords, getCoordsUnsafe, getCoordsUnchecked, getTimestamp,+ Geoposition(..), gTypeGeoposition) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,10 +19,28 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Geoposition.coords Mozilla Geoposition.coords documentation> getCoords :: (MonadDOM m) => Geoposition -> m (Maybe Coordinates) getCoords self = liftDOM ((self ^. js "coords") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Geoposition.coords Mozilla Geoposition.coords documentation> +getCoordsUnsafe ::+ (MonadDOM m, HasCallStack) => Geoposition -> m Coordinates+getCoordsUnsafe self+ = liftDOM+ (((self ^. js "coords") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Geoposition.coords Mozilla Geoposition.coords documentation> getCoordsUnchecked :: (MonadDOM m) => Geoposition -> m Coordinates
@@ -1,11 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLAllCollection- (item, item_, itemUnchecked, namedItem, namedItem_,- namedItemUnchecked, tags, tags_, tagsUnchecked, getLength,- HTMLAllCollection, castToHTMLAllCollection, gTypeHTMLAllCollection)+ (item, item_, itemUnsafe, itemUnchecked, namedItem, namedItem_,+ namedItemUnsafe, namedItemUnchecked, tags, tags_, tagsUnsafe,+ tagsUnchecked, getLength, HTMLAllCollection(..),+ gTypeHTMLAllCollection) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection.item Mozilla HTMLAllCollection.item documentation> item :: (MonadDOM m) => HTMLAllCollection -> Word -> m (Maybe Node)@@ -28,6 +43,14 @@ = liftDOM (void (self ^. jsf "item" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection.item Mozilla HTMLAllCollection.item documentation> +itemUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLAllCollection -> Word -> m Node+itemUnsafe self index+ = liftDOM+ (((self ^. jsf "item" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection.item Mozilla HTMLAllCollection.item documentation> itemUnchecked :: (MonadDOM m) => HTMLAllCollection -> Word -> m Node itemUnchecked self index@@ -48,6 +71,15 @@ = liftDOM (void (self ^. jsf "namedItem" [toJSVal name])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection.namedItem Mozilla HTMLAllCollection.namedItem documentation> +namedItemUnsafe ::+ (MonadDOM m, ToJSString name, HasCallStack) =>+ HTMLAllCollection -> name -> m Node+namedItemUnsafe self name+ = liftDOM+ (((self ^. jsf "namedItem" [toJSVal name]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection.namedItem Mozilla HTMLAllCollection.namedItem documentation> namedItemUnchecked :: (MonadDOM m, ToJSString name) => HTMLAllCollection -> name -> m Node@@ -67,6 +99,15 @@ (MonadDOM m, ToJSString name) => HTMLAllCollection -> name -> m () tags_ self name = liftDOM (void (self ^. jsf "tags" [toJSVal name]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection.tags Mozilla HTMLAllCollection.tags documentation> +tagsUnsafe ::+ (MonadDOM m, ToJSString name, HasCallStack) =>+ HTMLAllCollection -> name -> m NodeList+tagsUnsafe self name+ = liftDOM+ (((self ^. jsf "tags" [toJSVal name]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection.tags Mozilla HTMLAllCollection.tags documentation> tagsUnchecked ::
@@ -1,20 +1,25 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLAnchorElement (toString, toString_, setCharset, getCharset, setCoords, getCoords, setDownload, getDownload, setHref, getHref, setHreflang, getHreflang, setName, getName, setPing, getPing, setRel, getRel, setRev, getRev, setShape, getShape, setTarget, getTarget, setType,- getType, setHash, getHash, getHashUnchecked, setHost, getHost,- getHostUnchecked, setHostname, getHostname, getHostnameUnchecked,- setPathname, getPathname, getPathnameUnchecked, setPort, getPort,- getPortUnchecked, setProtocol, getProtocol, getProtocolUnchecked,- setSearch, getSearch, getSearchUnchecked, getOrigin,- getOriginUnchecked, setText, getText, getRelList,- getRelListUnchecked, HTMLAnchorElement, castToHTMLAnchorElement,- gTypeHTMLAnchorElement)+ getType, setHash, getHash, getHashUnsafe, getHashUnchecked,+ setHost, getHost, getHostUnsafe, getHostUnchecked, setHostname,+ getHostname, getHostnameUnsafe, getHostnameUnchecked, setPathname,+ getPathname, getPathnameUnsafe, getPathnameUnchecked, setPort,+ getPort, getPortUnsafe, getPortUnchecked, setProtocol, getProtocol,+ getProtocolUnsafe, getProtocolUnchecked, setSearch, getSearch,+ getSearchUnsafe, getSearchUnchecked, getOrigin, getOriginUnsafe,+ getOriginUnchecked, setText, getText, getRelList, getRelListUnsafe,+ getRelListUnchecked, HTMLAnchorElement(..), gTypeHTMLAnchorElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -25,6 +30,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement.toString Mozilla HTMLAnchorElement.toString documentation> toString ::@@ -177,6 +192,15 @@ getHash self = liftDOM ((self ^. js "hash") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement.hash Mozilla HTMLAnchorElement.hash documentation> +getHashUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLAnchorElement -> m result+getHashUnsafe self+ = liftDOM+ (((self ^. js "hash") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement.hash Mozilla HTMLAnchorElement.hash documentation> getHashUnchecked :: (MonadDOM m, FromJSString result) => HTMLAnchorElement -> m result getHashUnchecked self@@ -195,6 +219,15 @@ getHost self = liftDOM ((self ^. js "host") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement.host Mozilla HTMLAnchorElement.host documentation> +getHostUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLAnchorElement -> m result+getHostUnsafe self+ = liftDOM+ (((self ^. js "host") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement.host Mozilla HTMLAnchorElement.host documentation> getHostUnchecked :: (MonadDOM m, FromJSString result) => HTMLAnchorElement -> m result getHostUnchecked self@@ -215,6 +248,15 @@ = liftDOM ((self ^. js "hostname") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement.hostname Mozilla HTMLAnchorElement.hostname documentation> +getHostnameUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLAnchorElement -> m result+getHostnameUnsafe self+ = liftDOM+ (((self ^. js "hostname") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement.hostname Mozilla HTMLAnchorElement.hostname documentation> getHostnameUnchecked :: (MonadDOM m, FromJSString result) => HTMLAnchorElement -> m result getHostnameUnchecked self@@ -235,6 +277,15 @@ = liftDOM ((self ^. js "pathname") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement.pathname Mozilla HTMLAnchorElement.pathname documentation> +getPathnameUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLAnchorElement -> m result+getPathnameUnsafe self+ = liftDOM+ (((self ^. js "pathname") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement.pathname Mozilla HTMLAnchorElement.pathname documentation> getPathnameUnchecked :: (MonadDOM m, FromJSString result) => HTMLAnchorElement -> m result getPathnameUnchecked self@@ -253,6 +304,15 @@ getPort self = liftDOM ((self ^. js "port") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement.port Mozilla HTMLAnchorElement.port documentation> +getPortUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLAnchorElement -> m result+getPortUnsafe self+ = liftDOM+ (((self ^. js "port") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement.port Mozilla HTMLAnchorElement.port documentation> getPortUnchecked :: (MonadDOM m, FromJSString result) => HTMLAnchorElement -> m result getPortUnchecked self@@ -273,6 +333,15 @@ = liftDOM ((self ^. js "protocol") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement.protocol Mozilla HTMLAnchorElement.protocol documentation> +getProtocolUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLAnchorElement -> m result+getProtocolUnsafe self+ = liftDOM+ (((self ^. js "protocol") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement.protocol Mozilla HTMLAnchorElement.protocol documentation> getProtocolUnchecked :: (MonadDOM m, FromJSString result) => HTMLAnchorElement -> m result getProtocolUnchecked self@@ -292,6 +361,15 @@ = liftDOM ((self ^. js "search") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement.search Mozilla HTMLAnchorElement.search documentation> +getSearchUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLAnchorElement -> m result+getSearchUnsafe self+ = liftDOM+ (((self ^. js "search") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement.search Mozilla HTMLAnchorElement.search documentation> getSearchUnchecked :: (MonadDOM m, FromJSString result) => HTMLAnchorElement -> m result getSearchUnchecked self@@ -305,6 +383,15 @@ = liftDOM ((self ^. js "origin") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement.origin Mozilla HTMLAnchorElement.origin documentation> +getOriginUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLAnchorElement -> m result+getOriginUnsafe self+ = liftDOM+ (((self ^. js "origin") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement.origin Mozilla HTMLAnchorElement.origin documentation> getOriginUnchecked :: (MonadDOM m, FromJSString result) => HTMLAnchorElement -> m result getOriginUnchecked self@@ -324,6 +411,14 @@ getRelList :: (MonadDOM m) => HTMLAnchorElement -> m (Maybe DOMTokenList) getRelList self = liftDOM ((self ^. js "relList") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement.relList Mozilla HTMLAnchorElement.relList documentation> +getRelListUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLAnchorElement -> m DOMTokenList+getRelListUnsafe self+ = liftDOM+ (((self ^. js "relList") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement.relList Mozilla HTMLAnchorElement.relList documentation> getRelListUnchecked ::
@@ -1,13 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLAppletElement (setAlign, getAlign, setAlt, getAlt, setArchive, getArchive, setCode, getCode, setCodeBase, getCodeBase, setHeight, getHeight, setHspace, getHspace, setName, getName, setObject, getObject,- setVspace, getVspace, setWidth, getWidth, HTMLAppletElement,- castToHTMLAppletElement, gTypeHTMLAppletElement)+ setVspace, getVspace, setWidth, getWidth, HTMLAppletElement(..),+ gTypeHTMLAppletElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAppletElement.align Mozilla HTMLAppletElement.align documentation> setAlign ::
@@ -1,13 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLAreaElement (setAlt, getAlt, setCoords, getCoords, setHref, getHref, setNoHref, getNoHref, setPing, getPing, setRel, getRel, setShape, getShape, setTarget, getTarget, getHash, getHost, getHostname, getPathname,- getPort, getProtocol, getSearch, getRelList, getRelListUnchecked,- HTMLAreaElement, castToHTMLAreaElement, gTypeHTMLAreaElement)+ getPort, getProtocol, getSearch, getRelList, getRelListUnsafe,+ getRelListUnchecked, HTMLAreaElement(..), gTypeHTMLAreaElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement.alt Mozilla HTMLAreaElement.alt documentation> setAlt ::@@ -143,6 +157,14 @@ getRelList :: (MonadDOM m) => HTMLAreaElement -> m (Maybe DOMTokenList) getRelList self = liftDOM ((self ^. js "relList") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement.relList Mozilla HTMLAreaElement.relList documentation> +getRelListUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLAreaElement -> m DOMTokenList+getRelListUnsafe self+ = liftDOM+ (((self ^. js "relList") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement.relList Mozilla HTMLAreaElement.relList documentation> getRelListUnchecked ::
@@ -1,10 +1,12 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLBRElement- (setClear, getClear, HTMLBRElement, castToHTMLBRElement,- gTypeHTMLBRElement)- where+ (setClear, getClear, HTMLBRElement(..), gTypeHTMLBRElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +17,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLBRElement.clear Mozilla HTMLBRElement.clear documentation> setClear ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLBaseElement- (setHref, getHref, getHrefUnchecked, setTarget, getTarget,- HTMLBaseElement, castToHTMLBaseElement, gTypeHTMLBaseElement)+ (setHref, getHref, getHrefUnsafe, getHrefUnchecked, setTarget,+ getTarget, HTMLBaseElement(..), gTypeHTMLBaseElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement.href Mozilla HTMLBaseElement.href documentation> setHref ::@@ -27,6 +41,15 @@ (MonadDOM m, FromJSString result) => HTMLBaseElement -> m (Maybe result) getHref self = liftDOM ((self ^. js "href") >>= fromMaybeJSString)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement.href Mozilla HTMLBaseElement.href documentation> +getHrefUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLBaseElement -> m result+getHrefUnsafe self+ = liftDOM+ (((self ^. js "href") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement.href Mozilla HTMLBaseElement.href documentation> getHrefUnchecked ::
@@ -1,11 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLBaseFontElement (setColor, getColor, setFace, getFace, setSize, getSize,- HTMLBaseFontElement, castToHTMLBaseFontElement,- gTypeHTMLBaseFontElement)+ HTMLBaseFontElement(..), gTypeHTMLBaseFontElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseFontElement.color Mozilla HTMLBaseFontElement.color documentation> setColor ::
@@ -1,13 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLBodyElement (setALink, getALink, setBackground, getBackground, setBgColor, getBgColor, setLink, getLink, setText, getText, setVLink, getVLink, beforeUnload, hashChange, message, offline, online, popState, resize, storage, unload, orientationChange, blur, error, focus,- load, HTMLBodyElement, castToHTMLBodyElement, gTypeHTMLBodyElement)+ load, HTMLBodyElement(..), gTypeHTMLBodyElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement.aLink Mozilla HTMLBodyElement.aLink documentation> setALink ::
@@ -1,18 +1,24 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLButtonElement (checkValidity, checkValidity_, setCustomValidity, setAutofocus,- getAutofocus, setDisabled, getDisabled, getForm, getFormUnchecked,- setFormAction, getFormAction, setFormEnctype, getFormEnctype,- getFormEnctypeUnchecked, setFormMethod, getFormMethod,+ getAutofocus, setDisabled, getDisabled, getForm, getFormUnsafe,+ getFormUnchecked, setFormAction, getFormAction, setFormEnctype,+ getFormEnctype, getFormEnctypeUnsafe, getFormEnctypeUnchecked,+ setFormMethod, getFormMethod, getFormMethodUnsafe, getFormMethodUnchecked, setFormNoValidate, getFormNoValidate, setFormTarget, getFormTarget, setName, getName, setType, getType,- getTypeUnchecked, setValue, getValue, getWillValidate, getValidity,+ getTypeUnsafe, getTypeUnchecked, setValue, getValue,+ getWillValidate, getValidity, getValidityUnsafe, getValidityUnchecked, getValidationMessage, getLabels,- getLabelsUnchecked, HTMLButtonElement, castToHTMLButtonElement,+ getLabelsUnsafe, getLabelsUnchecked, HTMLButtonElement(..), gTypeHTMLButtonElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -23,6 +29,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement.checkValidity Mozilla HTMLButtonElement.checkValidity documentation> checkValidity :: (MonadDOM m) => HTMLButtonElement -> m Bool@@ -66,6 +82,15 @@ getForm self = liftDOM ((self ^. js "form") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement.form Mozilla HTMLButtonElement.form documentation> +getFormUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLButtonElement -> m HTMLFormElement+getFormUnsafe self+ = liftDOM+ (((self ^. js "form") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement.form Mozilla HTMLButtonElement.form documentation> getFormUnchecked :: (MonadDOM m) => HTMLButtonElement -> m HTMLFormElement getFormUnchecked self@@ -98,6 +123,15 @@ = liftDOM ((self ^. js "formEnctype") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement.formEnctype Mozilla HTMLButtonElement.formEnctype documentation> +getFormEnctypeUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLButtonElement -> m result+getFormEnctypeUnsafe self+ = liftDOM+ (((self ^. js "formEnctype") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement.formEnctype Mozilla HTMLButtonElement.formEnctype documentation> getFormEnctypeUnchecked :: (MonadDOM m, FromJSString result) => HTMLButtonElement -> m result getFormEnctypeUnchecked self@@ -118,6 +152,15 @@ = liftDOM ((self ^. js "formMethod") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement.formMethod Mozilla HTMLButtonElement.formMethod documentation> +getFormMethodUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLButtonElement -> m result+getFormMethodUnsafe self+ = liftDOM+ (((self ^. js "formMethod") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement.formMethod Mozilla HTMLButtonElement.formMethod documentation> getFormMethodUnchecked :: (MonadDOM m, FromJSString result) => HTMLButtonElement -> m result getFormMethodUnchecked self@@ -169,6 +212,15 @@ getType self = liftDOM ((self ^. js "type") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement.type Mozilla HTMLButtonElement.type documentation> +getTypeUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLButtonElement -> m result+getTypeUnsafe self+ = liftDOM+ (((self ^. js "type") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement.type Mozilla HTMLButtonElement.type documentation> getTypeUnchecked :: (MonadDOM m, FromJSString result) => HTMLButtonElement -> m result getTypeUnchecked self@@ -196,6 +248,14 @@ getValidity self = liftDOM ((self ^. js "validity") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement.validity Mozilla HTMLButtonElement.validity documentation> +getValidityUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLButtonElement -> m ValidityState+getValidityUnsafe self+ = liftDOM+ (((self ^. js "validity") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement.validity Mozilla HTMLButtonElement.validity documentation> getValidityUnchecked :: (MonadDOM m) => HTMLButtonElement -> m ValidityState getValidityUnchecked self@@ -211,6 +271,14 @@ getLabels :: (MonadDOM m) => HTMLButtonElement -> m (Maybe NodeList) getLabels self = liftDOM ((self ^. js "labels") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement.labels Mozilla HTMLButtonElement.labels documentation> +getLabelsUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLButtonElement -> m NodeList+getLabelsUnsafe self+ = liftDOM+ (((self ^. js "labels") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement.labels Mozilla HTMLButtonElement.labels documentation> getLabelsUnchecked ::
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLCanvasElement (toDataURL, toDataURL_, getContext, getContext_, probablySupportsContext, probablySupportsContext_, setWidth,- getWidth, setHeight, getHeight, HTMLCanvasElement,- castToHTMLCanvasElement, gTypeHTMLCanvasElement)+ getWidth, setHeight, getHeight, HTMLCanvasElement(..),+ gTypeHTMLCanvasElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement.toDataURL Mozilla HTMLCanvasElement.toDataURL documentation> toDataURL ::
@@ -1,12 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLCollection- (item, item_, itemUnchecked, namedItem, namedItem_,- namedItemUnchecked, getLength, HTMLCollection,- castToHTMLCollection, gTypeHTMLCollection, IsHTMLCollection,- toHTMLCollection)+ (item, item_, itemUnsafe, itemUnchecked, namedItem, namedItem_,+ namedItemUnsafe, namedItemUnchecked, getLength, HTMLCollection(..),+ gTypeHTMLCollection, IsHTMLCollection, toHTMLCollection) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection.item Mozilla HTMLCollection.item documentation> item ::@@ -35,6 +48,16 @@ (void ((toHTMLCollection self) ^. jsf "item" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection.item Mozilla HTMLCollection.item documentation> +itemUnsafe ::+ (MonadDOM m, IsHTMLCollection self, HasCallStack) =>+ self -> Word -> m Node+itemUnsafe self index+ = liftDOM+ ((((toHTMLCollection self) ^. jsf "item" [toJSVal index]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection.item Mozilla HTMLCollection.item documentation> itemUnchecked :: (MonadDOM m, IsHTMLCollection self) => self -> Word -> m Node itemUnchecked self index@@ -58,6 +81,17 @@ namedItem_ self name = liftDOM (void ((toHTMLCollection self) ^. jsf "namedItem" [toJSVal name]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection.namedItem Mozilla HTMLCollection.namedItem documentation> +namedItemUnsafe ::+ (MonadDOM m, IsHTMLCollection self, ToJSString name,+ HasCallStack) =>+ self -> name -> m Node+namedItemUnsafe self name+ = liftDOM+ ((((toHTMLCollection self) ^. jsf "namedItem" [toJSVal name]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection.namedItem Mozilla HTMLCollection.namedItem documentation> namedItemUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLDListElement- (setCompact, getCompact, HTMLDListElement, castToHTMLDListElement,+ (setCompact, getCompact, HTMLDListElement(..), gTypeHTMLDListElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDListElement.compact Mozilla HTMLDListElement.compact documentation> setCompact :: (MonadDOM m) => HTMLDListElement -> Bool -> m ()
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLDataListElement- (getOptions, getOptionsUnchecked, HTMLDataListElement,- castToHTMLDataListElement, gTypeHTMLDataListElement)+ (getOptions, getOptionsUnsafe, getOptionsUnchecked,+ HTMLDataListElement(..), gTypeHTMLDataListElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,11 +19,30 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataListElement.options Mozilla HTMLDataListElement.options documentation> getOptions :: (MonadDOM m) => HTMLDataListElement -> m (Maybe HTMLCollection) getOptions self = liftDOM ((self ^. js "options") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataListElement.options Mozilla HTMLDataListElement.options documentation> +getOptionsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLDataListElement -> m HTMLCollection+getOptionsUnsafe self+ = liftDOM+ (((self ^. js "options") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataListElement.options Mozilla HTMLDataListElement.options documentation> getOptionsUnchecked ::
@@ -1,10 +1,13 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLDetailsElement- (setOpen, getOpen, HTMLDetailsElement, castToHTMLDetailsElement,- gTypeHTMLDetailsElement)+ (setOpen, getOpen, HTMLDetailsElement(..), gTypeHTMLDetailsElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +18,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDetailsElement.open Mozilla HTMLDetailsElement.open documentation> setOpen :: (MonadDOM m) => HTMLDetailsElement -> Bool -> m ()
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLDirectoryElement- (setCompact, getCompact, HTMLDirectoryElement,- castToHTMLDirectoryElement, gTypeHTMLDirectoryElement)+ (setCompact, getCompact, HTMLDirectoryElement(..),+ gTypeHTMLDirectoryElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDirectoryElement.compact Mozilla HTMLDirectoryElement.compact documentation> setCompact :: (MonadDOM m) => HTMLDirectoryElement -> Bool -> m ()
@@ -1,10 +1,12 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLDivElement- (setAlign, getAlign, HTMLDivElement, castToHTMLDivElement,- gTypeHTMLDivElement)- where+ (setAlign, getAlign, HTMLDivElement(..), gTypeHTMLDivElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +17,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDivElement.align Mozilla HTMLDivElement.align documentation> setAlign ::
@@ -1,19 +1,26 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLDocument (open, close, write, writeln, clear, captureEvents, releaseEvents,- getEmbeds, getEmbedsUnchecked, getPlugins, getPluginsUnchecked,- getScripts, getScriptsUnchecked, getAll, getAllUnchecked, getWidth,- getHeight, setDir, getDir, getDirUnchecked, setDesignMode,- getDesignMode, getDesignModeUnchecked, getCompatMode, setBgColor,- getBgColor, getBgColorUnchecked, setFgColor, getFgColor,- getFgColorUnchecked, setAlinkColor, getAlinkColor,- getAlinkColorUnchecked, setLinkColor, getLinkColor,+ getEmbeds, getEmbedsUnsafe, getEmbedsUnchecked, getPlugins,+ getPluginsUnsafe, getPluginsUnchecked, getScripts,+ getScriptsUnsafe, getScriptsUnchecked, getAll, getAllUnsafe,+ getAllUnchecked, getWidth, getHeight, setDir, getDir, getDirUnsafe,+ getDirUnchecked, setDesignMode, getDesignMode, getDesignModeUnsafe,+ getDesignModeUnchecked, getCompatMode, setBgColor, getBgColor,+ getBgColorUnsafe, getBgColorUnchecked, setFgColor, getFgColor,+ getFgColorUnsafe, getFgColorUnchecked, setAlinkColor,+ getAlinkColor, getAlinkColorUnsafe, getAlinkColorUnchecked,+ setLinkColor, getLinkColor, getLinkColorUnsafe, getLinkColorUnchecked, setVlinkColor, getVlinkColor,- getVlinkColorUnchecked, HTMLDocument, castToHTMLDocument,+ getVlinkColorUnsafe, getVlinkColorUnchecked, HTMLDocument(..), gTypeHTMLDocument) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -24,6 +31,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.open Mozilla HTMLDocument.open documentation> open :: (MonadDOM m) => HTMLDocument -> m ()@@ -65,6 +82,14 @@ getEmbeds self = liftDOM ((self ^. js "embeds") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.embeds Mozilla HTMLDocument.embeds documentation> +getEmbedsUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLDocument -> m HTMLCollection+getEmbedsUnsafe self+ = liftDOM+ (((self ^. js "embeds") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.embeds Mozilla HTMLDocument.embeds documentation> getEmbedsUnchecked :: (MonadDOM m) => HTMLDocument -> m HTMLCollection getEmbedsUnchecked self@@ -76,6 +101,14 @@ getPlugins self = liftDOM ((self ^. js "plugins") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.plugins Mozilla HTMLDocument.plugins documentation> +getPluginsUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLDocument -> m HTMLCollection+getPluginsUnsafe self+ = liftDOM+ (((self ^. js "plugins") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.plugins Mozilla HTMLDocument.plugins documentation> getPluginsUnchecked :: (MonadDOM m) => HTMLDocument -> m HTMLCollection getPluginsUnchecked self@@ -87,6 +120,14 @@ getScripts self = liftDOM ((self ^. js "scripts") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.scripts Mozilla HTMLDocument.scripts documentation> +getScriptsUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLDocument -> m HTMLCollection+getScriptsUnsafe self+ = liftDOM+ (((self ^. js "scripts") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.scripts Mozilla HTMLDocument.scripts documentation> getScriptsUnchecked :: (MonadDOM m) => HTMLDocument -> m HTMLCollection getScriptsUnchecked self@@ -98,6 +139,14 @@ getAll self = liftDOM ((self ^. js "all") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.all Mozilla HTMLDocument.all documentation> +getAllUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLDocument -> m HTMLAllCollection+getAllUnsafe self+ = liftDOM+ (((self ^. js "all") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.all Mozilla HTMLDocument.all documentation> getAllUnchecked :: (MonadDOM m) => HTMLDocument -> m HTMLAllCollection getAllUnchecked self@@ -125,6 +174,15 @@ getDir self = liftDOM ((self ^. js "dir") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.dir Mozilla HTMLDocument.dir documentation> +getDirUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLDocument -> m result+getDirUnsafe self+ = liftDOM+ (((self ^. js "dir") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.dir Mozilla HTMLDocument.dir documentation> getDirUnchecked :: (MonadDOM m, FromJSString result) => HTMLDocument -> m result getDirUnchecked self@@ -144,6 +202,15 @@ = liftDOM ((self ^. js "designMode") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.designMode Mozilla HTMLDocument.designMode documentation> +getDesignModeUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLDocument -> m result+getDesignModeUnsafe self+ = liftDOM+ (((self ^. js "designMode") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.designMode Mozilla HTMLDocument.designMode documentation> getDesignModeUnchecked :: (MonadDOM m, FromJSString result) => HTMLDocument -> m result getDesignModeUnchecked self@@ -168,6 +235,15 @@ = liftDOM ((self ^. js "bgColor") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.bgColor Mozilla HTMLDocument.bgColor documentation> +getBgColorUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLDocument -> m result+getBgColorUnsafe self+ = liftDOM+ (((self ^. js "bgColor") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.bgColor Mozilla HTMLDocument.bgColor documentation> getBgColorUnchecked :: (MonadDOM m, FromJSString result) => HTMLDocument -> m result getBgColorUnchecked self@@ -186,6 +262,15 @@ = liftDOM ((self ^. js "fgColor") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.fgColor Mozilla HTMLDocument.fgColor documentation> +getFgColorUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLDocument -> m result+getFgColorUnsafe self+ = liftDOM+ (((self ^. js "fgColor") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.fgColor Mozilla HTMLDocument.fgColor documentation> getFgColorUnchecked :: (MonadDOM m, FromJSString result) => HTMLDocument -> m result getFgColorUnchecked self@@ -205,6 +290,15 @@ = liftDOM ((self ^. js "alinkColor") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.alinkColor Mozilla HTMLDocument.alinkColor documentation> +getAlinkColorUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLDocument -> m result+getAlinkColorUnsafe self+ = liftDOM+ (((self ^. js "alinkColor") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.alinkColor Mozilla HTMLDocument.alinkColor documentation> getAlinkColorUnchecked :: (MonadDOM m, FromJSString result) => HTMLDocument -> m result getAlinkColorUnchecked self@@ -224,6 +318,15 @@ = liftDOM ((self ^. js "linkColor") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.linkColor Mozilla HTMLDocument.linkColor documentation> +getLinkColorUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLDocument -> m result+getLinkColorUnsafe self+ = liftDOM+ (((self ^. js "linkColor") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.linkColor Mozilla HTMLDocument.linkColor documentation> getLinkColorUnchecked :: (MonadDOM m, FromJSString result) => HTMLDocument -> m result getLinkColorUnchecked self@@ -241,6 +344,15 @@ HTMLDocument -> m (Maybe result) getVlinkColor self = liftDOM ((self ^. js "vlinkColor") >>= fromMaybeJSString)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.vlinkColor Mozilla HTMLDocument.vlinkColor documentation> +getVlinkColorUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLDocument -> m result+getVlinkColorUnsafe self+ = liftDOM+ (((self ^. js "vlinkColor") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument.vlinkColor Mozilla HTMLDocument.vlinkColor documentation> getVlinkColorUnchecked ::
@@ -1,20 +1,26 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLElement (insertAdjacentElement, insertAdjacentElement_,- insertAdjacentElementUnchecked, insertAdjacentHTML,- insertAdjacentText, click, setTitle, getTitle, setLang, getLang,- setTranslate, getTranslate, setDir, getDir, setTabIndex,- getTabIndex, setDraggable, getDraggable, setWebkitdropzone,- getWebkitdropzone, setHidden, getHidden, setAccessKey,- getAccessKey, setInnerText, getInnerText, getInnerTextUnchecked,- setOuterText, getOuterText, getOuterTextUnchecked, getChildren,- getChildrenUnchecked, setContentEditable, getContentEditable,+ insertAdjacentElementUnsafe, insertAdjacentElementUnchecked,+ insertAdjacentHTML, insertAdjacentText, click, setTitle, getTitle,+ setLang, getLang, setTranslate, getTranslate, setDir, getDir,+ setTabIndex, getTabIndex, setDraggable, getDraggable,+ setWebkitdropzone, getWebkitdropzone, setHidden, getHidden,+ setAccessKey, getAccessKey, setInnerText, getInnerText,+ getInnerTextUnsafe, getInnerTextUnchecked, setOuterText,+ getOuterText, getOuterTextUnsafe, getOuterTextUnchecked,+ getChildren, getChildrenUnsafe, getChildrenUnchecked,+ setContentEditable, getContentEditable, getContentEditableUnsafe, getContentEditableUnchecked, getIsContentEditable, setSpellcheck,- getSpellcheck, HTMLElement, castToHTMLElement, gTypeHTMLElement,- IsHTMLElement, toHTMLElement)+ getSpellcheck, HTMLElement(..), gTypeHTMLElement, IsHTMLElement,+ toHTMLElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -25,6 +31,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.insertAdjacentElement Mozilla HTMLElement.insertAdjacentElement documentation> insertAdjacentElement ::@@ -49,6 +65,18 @@ [toJSVal where', toJSVal element])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.insertAdjacentElement Mozilla HTMLElement.insertAdjacentElement documentation> +insertAdjacentElementUnsafe ::+ (MonadDOM m, IsHTMLElement self, ToJSString where',+ IsElement element, HasCallStack) =>+ self -> where' -> Maybe element -> m Element+insertAdjacentElementUnsafe self where' element+ = liftDOM+ ((((toHTMLElement self) ^. jsf "insertAdjacentElement"+ [toJSVal where', toJSVal element])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.insertAdjacentElement Mozilla HTMLElement.insertAdjacentElement documentation> insertAdjacentElementUnchecked :: (MonadDOM m, IsHTMLElement self, ToJSString where', IsElement element) =>@@ -225,6 +253,16 @@ (((toHTMLElement self) ^. js "innerText") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.innerText Mozilla HTMLElement.innerText documentation> +getInnerTextUnsafe ::+ (MonadDOM m, IsHTMLElement self, HasCallStack,+ FromJSString result) =>+ self -> m result+getInnerTextUnsafe self+ = liftDOM+ ((((toHTMLElement self) ^. js "innerText") >>= fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.innerText Mozilla HTMLElement.innerText documentation> getInnerTextUnchecked :: (MonadDOM m, IsHTMLElement self, FromJSString result) => self -> m result@@ -248,6 +286,16 @@ (((toHTMLElement self) ^. js "outerText") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.outerText Mozilla HTMLElement.outerText documentation> +getOuterTextUnsafe ::+ (MonadDOM m, IsHTMLElement self, HasCallStack,+ FromJSString result) =>+ self -> m result+getOuterTextUnsafe self+ = liftDOM+ ((((toHTMLElement self) ^. js "outerText") >>= fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.outerText Mozilla HTMLElement.outerText documentation> getOuterTextUnchecked :: (MonadDOM m, IsHTMLElement self, FromJSString result) => self -> m result@@ -263,6 +311,15 @@ = liftDOM (((toHTMLElement self) ^. js "children") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.children Mozilla HTMLElement.children documentation> +getChildrenUnsafe ::+ (MonadDOM m, IsHTMLElement self, HasCallStack) =>+ self -> m HTMLCollection+getChildrenUnsafe self+ = liftDOM+ ((((toHTMLElement self) ^. js "children") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.children Mozilla HTMLElement.children documentation> getChildrenUnchecked :: (MonadDOM m, IsHTMLElement self) => self -> m HTMLCollection getChildrenUnchecked self@@ -285,6 +342,17 @@ = liftDOM (((toHTMLElement self) ^. js "contentEditable") >>= fromMaybeJSString)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.contentEditable Mozilla HTMLElement.contentEditable documentation> +getContentEditableUnsafe ::+ (MonadDOM m, IsHTMLElement self, HasCallStack,+ FromJSString result) =>+ self -> m result+getContentEditableUnsafe self+ = liftDOM+ ((((toHTMLElement self) ^. js "contentEditable") >>=+ fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.contentEditable Mozilla HTMLElement.contentEditable documentation> getContentEditableUnchecked ::
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLEmbedElement- (getSVGDocument, getSVGDocument_, getSVGDocumentUnchecked,- setAlign, getAlign, setHeight, getHeight, setName, getName, setSrc,- getSrc, setType, getType, setWidth, getWidth, HTMLEmbedElement,- castToHTMLEmbedElement, gTypeHTMLEmbedElement)+ (getSVGDocument, getSVGDocument_, getSVGDocumentUnsafe,+ getSVGDocumentUnchecked, setAlign, getAlign, setHeight, getHeight,+ setName, getName, setSrc, getSrc, setType, getType, setWidth,+ getWidth, HTMLEmbedElement(..), gTypeHTMLEmbedElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement.getSVGDocument Mozilla HTMLEmbedElement.getSVGDocument documentation> getSVGDocument ::@@ -28,6 +42,14 @@ getSVGDocument_ :: (MonadDOM m) => HTMLEmbedElement -> m () getSVGDocument_ self = liftDOM (void (self ^. jsf "getSVGDocument" ()))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement.getSVGDocument Mozilla HTMLEmbedElement.getSVGDocument documentation> +getSVGDocumentUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLEmbedElement -> m SVGDocument+getSVGDocumentUnsafe self+ = liftDOM+ (((self ^. jsf "getSVGDocument" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement.getSVGDocument Mozilla HTMLEmbedElement.getSVGDocument documentation> getSVGDocumentUnchecked ::
@@ -1,13 +1,18 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLFieldSetElement (checkValidity, checkValidity_, setCustomValidity, setDisabled,- getDisabled, getForm, getFormUnchecked, setName, getName, getType,- getElements, getElementsUnchecked, getWillValidate, getValidity,- getValidityUnchecked, getValidationMessage, HTMLFieldSetElement,- castToHTMLFieldSetElement, gTypeHTMLFieldSetElement)+ getDisabled, getForm, getFormUnsafe, getFormUnchecked, setName,+ getName, getType, getElements, getElementsUnsafe,+ getElementsUnchecked, getWillValidate, getValidity,+ getValidityUnsafe, getValidityUnchecked, getValidationMessage,+ HTMLFieldSetElement(..), gTypeHTMLFieldSetElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +23,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement.checkValidity Mozilla HTMLFieldSetElement.checkValidity documentation> checkValidity :: (MonadDOM m) => HTMLFieldSetElement -> m Bool@@ -51,6 +66,15 @@ getForm self = liftDOM ((self ^. js "form") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement.form Mozilla HTMLFieldSetElement.form documentation> +getFormUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLFieldSetElement -> m HTMLFormElement+getFormUnsafe self+ = liftDOM+ (((self ^. js "form") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement.form Mozilla HTMLFieldSetElement.form documentation> getFormUnchecked :: (MonadDOM m) => HTMLFieldSetElement -> m HTMLFormElement getFormUnchecked self@@ -79,6 +103,15 @@ getElements self = liftDOM ((self ^. js "elements") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement.elements Mozilla HTMLFieldSetElement.elements documentation> +getElementsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLFieldSetElement -> m HTMLCollection+getElementsUnsafe self+ = liftDOM+ (((self ^. js "elements") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement.elements Mozilla HTMLFieldSetElement.elements documentation> getElementsUnchecked :: (MonadDOM m) => HTMLFieldSetElement -> m HTMLCollection getElementsUnchecked self@@ -93,6 +126,15 @@ getValidity :: (MonadDOM m) => HTMLFieldSetElement -> m (Maybe ValidityState) getValidity self = liftDOM ((self ^. js "validity") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement.validity Mozilla HTMLFieldSetElement.validity documentation> +getValidityUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLFieldSetElement -> m ValidityState+getValidityUnsafe self+ = liftDOM+ (((self ^. js "validity") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement.validity Mozilla HTMLFieldSetElement.validity documentation> getValidityUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLFontElement (setColor, getColor, setFace, getFace, setSize, getSize,- HTMLFontElement, castToHTMLFontElement, gTypeHTMLFontElement)+ HTMLFontElement(..), gTypeHTMLFontElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement.color Mozilla HTMLFontElement.color documentation> setColor ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLFormControlsCollection- (_get, _get_, _getUnchecked, namedItem, namedItem_,- namedItemUnchecked, HTMLFormControlsCollection,- castToHTMLFormControlsCollection, gTypeHTMLFormControlsCollection)+ (_get, _get_, _getUnsafe, _getUnchecked, namedItem, namedItem_,+ namedItemUnsafe, namedItemUnchecked,+ HTMLFormControlsCollection(..), gTypeHTMLFormControlsCollection) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormControlsCollection._get Mozilla HTMLFormControlsCollection._get documentation> _get ::@@ -30,6 +44,15 @@ = liftDOM (void (self ^. jsf "_get" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormControlsCollection._get Mozilla HTMLFormControlsCollection._get documentation> +_getUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLFormControlsCollection -> Word -> m Node+_getUnsafe self index+ = liftDOM+ (((self ^. jsf "_get" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormControlsCollection._get Mozilla HTMLFormControlsCollection._get documentation> _getUnchecked :: (MonadDOM m) => HTMLFormControlsCollection -> Word -> m Node _getUnchecked self index@@ -49,6 +72,15 @@ HTMLFormControlsCollection -> name -> m () namedItem_ self name = liftDOM (void (self ^. jsf "namedItem" [toJSVal name]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormControlsCollection.namedItem Mozilla HTMLFormControlsCollection.namedItem documentation> +namedItemUnsafe ::+ (MonadDOM m, ToJSString name, HasCallStack) =>+ HTMLFormControlsCollection -> name -> m Node+namedItemUnsafe self name+ = liftDOM+ (((self ^. jsf "namedItem" [toJSVal name]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormControlsCollection.namedItem Mozilla HTMLFormControlsCollection.namedItem documentation> namedItemUnchecked ::
@@ -1,19 +1,24 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLFormElement- (_get, _get_, _getUnchecked, submit, reset, checkValidity,- checkValidity_, requestAutocomplete, setAcceptCharset,- getAcceptCharset, setAction, getAction, setAutocomplete,- getAutocomplete, setEnctype, getEnctype, getEnctypeUnchecked,- setEncoding, getEncoding, getEncodingUnchecked, setMethod,- getMethod, getMethodUnchecked, setName, getName, setNoValidate,- getNoValidate, setTarget, getTarget, getElements,- getElementsUnchecked, getLength, setAutocorrect, getAutocorrect,- setAutocapitalize, getAutocapitalize, getAutocapitalizeUnchecked,- autocomplete, autocompleteerror, HTMLFormElement,- castToHTMLFormElement, gTypeHTMLFormElement)+ (_get, _get_, _getUnsafe, _getUnchecked, submit, reset,+ checkValidity, checkValidity_, requestAutocomplete,+ setAcceptCharset, getAcceptCharset, setAction, getAction,+ setAutocomplete, getAutocomplete, setEnctype, getEnctype,+ getEnctypeUnsafe, getEnctypeUnchecked, setEncoding, getEncoding,+ getEncodingUnsafe, getEncodingUnchecked, setMethod, getMethod,+ getMethodUnsafe, getMethodUnchecked, setName, getName,+ setNoValidate, getNoValidate, setTarget, getTarget, getElements,+ getElementsUnsafe, getElementsUnchecked, getLength, setAutocorrect,+ getAutocorrect, setAutocapitalize, getAutocapitalize,+ getAutocapitalizeUnsafe, getAutocapitalizeUnchecked, autocomplete,+ autocompleteerror, HTMLFormElement(..), gTypeHTMLFormElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -24,6 +29,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement._get Mozilla HTMLFormElement._get documentation> _get ::@@ -37,6 +52,14 @@ = liftDOM (void (self ^. jsf "_get" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement._get Mozilla HTMLFormElement._get documentation> +_getUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLFormElement -> Word -> m Element+_getUnsafe self index+ = liftDOM+ (((self ^. jsf "_get" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement._get Mozilla HTMLFormElement._get documentation> _getUnchecked :: (MonadDOM m) => HTMLFormElement -> Word -> m Element _getUnchecked self index@@ -115,6 +138,15 @@ = liftDOM ((self ^. js "enctype") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement.enctype Mozilla HTMLFormElement.enctype documentation> +getEnctypeUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLFormElement -> m result+getEnctypeUnsafe self+ = liftDOM+ (((self ^. js "enctype") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement.enctype Mozilla HTMLFormElement.enctype documentation> getEnctypeUnchecked :: (MonadDOM m, FromJSString result) => HTMLFormElement -> m result getEnctypeUnchecked self@@ -135,6 +167,15 @@ = liftDOM ((self ^. js "encoding") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement.encoding Mozilla HTMLFormElement.encoding documentation> +getEncodingUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLFormElement -> m result+getEncodingUnsafe self+ = liftDOM+ (((self ^. js "encoding") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement.encoding Mozilla HTMLFormElement.encoding documentation> getEncodingUnchecked :: (MonadDOM m, FromJSString result) => HTMLFormElement -> m result getEncodingUnchecked self@@ -154,6 +195,15 @@ = liftDOM ((self ^. js "method") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement.method Mozilla HTMLFormElement.method documentation> +getMethodUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLFormElement -> m result+getMethodUnsafe self+ = liftDOM+ (((self ^. js "method") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement.method Mozilla HTMLFormElement.method documentation> getMethodUnchecked :: (MonadDOM m, FromJSString result) => HTMLFormElement -> m result getMethodUnchecked self@@ -196,6 +246,14 @@ getElements self = liftDOM ((self ^. js "elements") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement.elements Mozilla HTMLFormElement.elements documentation> +getElementsUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLFormElement -> m HTMLCollection+getElementsUnsafe self+ = liftDOM+ (((self ^. js "elements") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement.elements Mozilla HTMLFormElement.elements documentation> getElementsUnchecked :: (MonadDOM m) => HTMLFormElement -> m HTMLCollection getElementsUnchecked self@@ -229,6 +287,15 @@ HTMLFormElement -> m (Maybe result) getAutocapitalize self = liftDOM ((self ^. js "autocapitalize") >>= fromMaybeJSString)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement.autocapitalize Mozilla HTMLFormElement.autocapitalize documentation> +getAutocapitalizeUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLFormElement -> m result+getAutocapitalizeUnsafe self+ = liftDOM+ (((self ^. js "autocapitalize") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement.autocapitalize Mozilla HTMLFormElement.autocapitalize documentation> getAutocapitalizeUnchecked ::
@@ -1,17 +1,22 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLFrameElement- (getSVGDocument, getSVGDocument_, getSVGDocumentUnchecked,- setFrameBorder, getFrameBorder, setLongDesc, getLongDesc,- setMarginHeight, getMarginHeight, setMarginWidth, getMarginWidth,- setName, getName, setNoResize, getNoResize, setScrolling,- getScrolling, setSrc, getSrc, getContentDocument,+ (getSVGDocument, getSVGDocument_, getSVGDocumentUnsafe,+ getSVGDocumentUnchecked, setFrameBorder, getFrameBorder,+ setLongDesc, getLongDesc, setMarginHeight, getMarginHeight,+ setMarginWidth, getMarginWidth, setName, getName, setNoResize,+ getNoResize, setScrolling, getScrolling, setSrc, getSrc,+ getContentDocument, getContentDocumentUnsafe, getContentDocumentUnchecked, getContentWindow,- getContentWindowUnchecked, setLocation, getLocation,- getLocationUnchecked, getWidth, getHeight, HTMLFrameElement,- castToHTMLFrameElement, gTypeHTMLFrameElement)+ getContentWindowUnsafe, getContentWindowUnchecked, setLocation,+ getLocation, getLocationUnsafe, getLocationUnchecked, getWidth,+ getHeight, HTMLFrameElement(..), gTypeHTMLFrameElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -22,6 +27,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement.getSVGDocument Mozilla HTMLFrameElement.getSVGDocument documentation> getSVGDocument ::@@ -35,6 +50,14 @@ = liftDOM (void (self ^. jsf "getSVGDocument" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement.getSVGDocument Mozilla HTMLFrameElement.getSVGDocument documentation> +getSVGDocumentUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLFrameElement -> m SVGDocument+getSVGDocumentUnsafe self+ = liftDOM+ (((self ^. jsf "getSVGDocument" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement.getSVGDocument Mozilla HTMLFrameElement.getSVGDocument documentation> getSVGDocumentUnchecked :: (MonadDOM m) => HTMLFrameElement -> m SVGDocument getSVGDocumentUnchecked self@@ -137,6 +160,14 @@ = liftDOM ((self ^. js "contentDocument") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement.contentDocument Mozilla HTMLFrameElement.contentDocument documentation> +getContentDocumentUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLFrameElement -> m Document+getContentDocumentUnsafe self+ = liftDOM+ (((self ^. js "contentDocument") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement.contentDocument Mozilla HTMLFrameElement.contentDocument documentation> getContentDocumentUnchecked :: (MonadDOM m) => HTMLFrameElement -> m Document getContentDocumentUnchecked self@@ -149,6 +180,14 @@ = liftDOM ((self ^. js "contentWindow") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement.contentWindow Mozilla HTMLFrameElement.contentWindow documentation> +getContentWindowUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLFrameElement -> m Window+getContentWindowUnsafe self+ = liftDOM+ (((self ^. js "contentWindow") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement.contentWindow Mozilla HTMLFrameElement.contentWindow documentation> getContentWindowUnchecked :: (MonadDOM m) => HTMLFrameElement -> m Window getContentWindowUnchecked self@@ -167,6 +206,15 @@ HTMLFrameElement -> m (Maybe result) getLocation self = liftDOM ((self ^. js "location") >>= fromMaybeJSString)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement.location Mozilla HTMLFrameElement.location documentation> +getLocationUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLFrameElement -> m result+getLocationUnsafe self+ = liftDOM+ (((self ^. js "location") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement.location Mozilla HTMLFrameElement.location documentation> getLocationUnchecked ::
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLFrameSetElement (setCols, getCols, setRows, getRows, beforeUnload, hashChange, message, offline, online, popState, resize, storage, unload,- orientationChange, blur, error, focus, load, HTMLFrameSetElement,- castToHTMLFrameSetElement, gTypeHTMLFrameSetElement)+ orientationChange, blur, error, focus, load,+ HTMLFrameSetElement(..), gTypeHTMLFrameSetElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement.cols Mozilla HTMLFrameSetElement.cols documentation> setCols ::
@@ -1,11 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLHRElement (setAlign, getAlign, setNoShade, getNoShade, setSize, getSize,- setWidth, getWidth, HTMLHRElement, castToHTMLHRElement,- gTypeHTMLHRElement)+ setWidth, getWidth, HTMLHRElement(..), gTypeHTMLHRElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement.align Mozilla HTMLHRElement.align documentation> setAlign ::
@@ -1,10 +1,13 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLHeadElement- (setProfile, getProfile, HTMLHeadElement, castToHTMLHeadElement,- gTypeHTMLHeadElement)+ (setProfile, getProfile, HTMLHeadElement(..), gTypeHTMLHeadElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +18,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLHeadElement.profile Mozilla HTMLHeadElement.profile documentation> setProfile ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLHeadingElement- (setAlign, getAlign, HTMLHeadingElement, castToHTMLHeadingElement,+ (setAlign, getAlign, HTMLHeadingElement(..), gTypeHTMLHeadingElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLHeadingElement.align Mozilla HTMLHeadingElement.align documentation> setAlign ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLHtmlElement- (setVersion, getVersion, setManifest, getManifest, HTMLHtmlElement,- castToHTMLHtmlElement, gTypeHTMLHtmlElement)+ (setVersion, getVersion, setManifest, getManifest,+ HTMLHtmlElement(..), gTypeHTMLHtmlElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLHtmlElement.version Mozilla HTMLHtmlElement.version documentation> setVersion ::
@@ -1,17 +1,22 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLIFrameElement- (getSVGDocument, getSVGDocument_, getSVGDocumentUnchecked,- setAlign, getAlign, setFrameBorder, getFrameBorder, setHeight,- getHeight, setLongDesc, getLongDesc, setMarginHeight,- getMarginHeight, setMarginWidth, getMarginWidth, setName, getName,- setSandbox, getSandbox, setScrolling, getScrolling, setSrc, getSrc,- setSrcdoc, getSrcdoc, setWidth, getWidth, getContentDocument,+ (getSVGDocument, getSVGDocument_, getSVGDocumentUnsafe,+ getSVGDocumentUnchecked, setAlign, getAlign, setFrameBorder,+ getFrameBorder, setHeight, getHeight, setLongDesc, getLongDesc,+ setMarginHeight, getMarginHeight, setMarginWidth, getMarginWidth,+ setName, getName, setSandbox, getSandbox, setScrolling,+ getScrolling, setSrc, getSrc, setSrcdoc, getSrcdoc, setWidth,+ getWidth, getContentDocument, getContentDocumentUnsafe, getContentDocumentUnchecked, getContentWindow,- getContentWindowUnchecked, HTMLIFrameElement,- castToHTMLIFrameElement, gTypeHTMLIFrameElement)+ getContentWindowUnsafe, getContentWindowUnchecked,+ HTMLIFrameElement(..), gTypeHTMLIFrameElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -22,6 +27,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement.getSVGDocument Mozilla HTMLIFrameElement.getSVGDocument documentation> getSVGDocument ::@@ -35,6 +50,14 @@ = liftDOM (void (self ^. jsf "getSVGDocument" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement.getSVGDocument Mozilla HTMLIFrameElement.getSVGDocument documentation> +getSVGDocumentUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLIFrameElement -> m SVGDocument+getSVGDocumentUnsafe self+ = liftDOM+ (((self ^. jsf "getSVGDocument" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement.getSVGDocument Mozilla HTMLIFrameElement.getSVGDocument documentation> getSVGDocumentUnchecked :: (MonadDOM m) => HTMLIFrameElement -> m SVGDocument getSVGDocumentUnchecked self@@ -183,6 +206,14 @@ = liftDOM ((self ^. js "contentDocument") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement.contentDocument Mozilla HTMLIFrameElement.contentDocument documentation> +getContentDocumentUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLIFrameElement -> m Document+getContentDocumentUnsafe self+ = liftDOM+ (((self ^. js "contentDocument") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement.contentDocument Mozilla HTMLIFrameElement.contentDocument documentation> getContentDocumentUnchecked :: (MonadDOM m) => HTMLIFrameElement -> m Document getContentDocumentUnchecked self@@ -193,6 +224,14 @@ (MonadDOM m) => HTMLIFrameElement -> m (Maybe Window) getContentWindow self = liftDOM ((self ^. js "contentWindow") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement.contentWindow Mozilla HTMLIFrameElement.contentWindow documentation> +getContentWindowUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLIFrameElement -> m Window+getContentWindowUnsafe self+ = liftDOM+ (((self ^. js "contentWindow") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement.contentWindow Mozilla HTMLIFrameElement.contentWindow documentation> getContentWindowUnchecked ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLImageElement (setName, getName, setAlign, getAlign, setAlt, getAlt, setBorder,@@ -7,10 +10,11 @@ setSrc, getSrc, setSrcset, getSrcset, setSizes, getSizes, getCurrentSrc, setUseMap, getUseMap, setVspace, getVspace, setWidth, getWidth, getComplete, setLowsrc, getLowsrc,- getNaturalHeight, getNaturalWidth, getX, getY, HTMLImageElement,- castToHTMLImageElement, gTypeHTMLImageElement)+ getNaturalHeight, getNaturalWidth, getX, getY,+ HTMLImageElement(..), gTypeHTMLImageElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -21,6 +25,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement.name Mozilla HTMLImageElement.name documentation> setName ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLInputElement (stepUp, stepDown, checkValidity, checkValidity_,@@ -7,31 +10,35 @@ setAutocomplete, getAutocomplete, setAutofocus, getAutofocus, setDefaultChecked, getDefaultChecked, setChecked, getChecked, setDirName, getDirName, setDisabled, getDisabled, getForm,- getFormUnchecked, setFiles, getFiles, getFilesUnchecked,- setFormAction, getFormAction, setFormEnctype, getFormEnctype,+ getFormUnsafe, getFormUnchecked, setFiles, getFiles,+ getFilesUnsafe, getFilesUnchecked, setFormAction, getFormAction,+ setFormEnctype, getFormEnctype, getFormEnctypeUnsafe, getFormEnctypeUnchecked, setFormMethod, getFormMethod,- getFormMethodUnchecked, setFormNoValidate, getFormNoValidate,- setFormTarget, getFormTarget, setHeight, getHeight,- setIndeterminate, getIndeterminate, getList, getListUnchecked,- setMax, getMax, setMaxLength, getMaxLength, setMin, getMin,- setMultiple, getMultiple, setName, getName, setPattern, getPattern,- setPlaceholder, getPlaceholder, setReadOnly, getReadOnly,- setRequired, getRequired, setSize, getSize, setSrc, getSrc,- setStep, getStep, setType, getType, setDefaultValue,- getDefaultValue, getDefaultValueUnchecked, setValue, getValue,+ getFormMethodUnsafe, getFormMethodUnchecked, setFormNoValidate,+ getFormNoValidate, setFormTarget, getFormTarget, setHeight,+ getHeight, setIndeterminate, getIndeterminate, getList,+ getListUnsafe, getListUnchecked, setMax, getMax, setMaxLength,+ getMaxLength, setMin, getMin, setMultiple, getMultiple, setName,+ getName, setPattern, getPattern, setPlaceholder, getPlaceholder,+ setReadOnly, getReadOnly, setRequired, getRequired, setSize,+ getSize, setSrc, getSrc, setStep, getStep, setType, getType,+ setDefaultValue, getDefaultValue, getDefaultValueUnsafe,+ getDefaultValueUnchecked, setValue, getValue, getValueUnsafe, getValueUnchecked, setValueAsDate, getValueAsDate,- getValueAsDateUnchecked, setValueAsNumber, getValueAsNumber,- setWidth, getWidth, getWillValidate, getValidity,- getValidityUnchecked, getValidationMessage, getLabels,- getLabelsUnchecked, setSelectionStart, getSelectionStart,- setSelectionEnd, getSelectionEnd, setSelectionDirection,- getSelectionDirection, setAlign, getAlign, setUseMap, getUseMap,- setIncremental, getIncremental, setAutocorrect, getAutocorrect,- setAutocapitalize, getAutocapitalize, getAutocapitalizeUnchecked,- setCapture, getCapture, HTMLInputElement, castToHTMLInputElement,- gTypeHTMLInputElement)+ getValueAsDateUnsafe, getValueAsDateUnchecked, setValueAsNumber,+ getValueAsNumber, setWidth, getWidth, getWillValidate, getValidity,+ getValidityUnsafe, getValidityUnchecked, getValidationMessage,+ getLabels, getLabelsUnsafe, getLabelsUnchecked, setSelectionStart,+ getSelectionStart, setSelectionEnd, getSelectionEnd,+ setSelectionDirection, getSelectionDirection, setAlign, getAlign,+ setUseMap, getUseMap, setIncremental, getIncremental,+ setAutocorrect, getAutocorrect, setAutocapitalize,+ getAutocapitalize, getAutocapitalizeUnsafe,+ getAutocapitalizeUnchecked, setCapture, getCapture,+ HTMLInputElement(..), gTypeHTMLInputElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -42,6 +49,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.stepUp Mozilla HTMLInputElement.stepUp documentation> stepUp :: (MonadDOM m) => HTMLInputElement -> Int -> m ()@@ -190,6 +207,14 @@ getForm self = liftDOM ((self ^. js "form") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.form Mozilla HTMLInputElement.form documentation> +getFormUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLInputElement -> m HTMLFormElement+getFormUnsafe self+ = liftDOM+ (((self ^. js "form") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.form Mozilla HTMLInputElement.form documentation> getFormUnchecked :: (MonadDOM m) => HTMLInputElement -> m HTMLFormElement getFormUnchecked self@@ -205,6 +230,14 @@ getFiles self = liftDOM ((self ^. js "files") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.files Mozilla HTMLInputElement.files documentation> +getFilesUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLInputElement -> m FileList+getFilesUnsafe self+ = liftDOM+ (((self ^. js "files") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.files Mozilla HTMLInputElement.files documentation> getFilesUnchecked :: (MonadDOM m) => HTMLInputElement -> m FileList getFilesUnchecked self = liftDOM ((self ^. js "files") >>= fromJSValUnchecked)@@ -236,6 +269,15 @@ = liftDOM ((self ^. js "formEnctype") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.formEnctype Mozilla HTMLInputElement.formEnctype documentation> +getFormEnctypeUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLInputElement -> m result+getFormEnctypeUnsafe self+ = liftDOM+ (((self ^. js "formEnctype") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.formEnctype Mozilla HTMLInputElement.formEnctype documentation> getFormEnctypeUnchecked :: (MonadDOM m, FromJSString result) => HTMLInputElement -> m result getFormEnctypeUnchecked self@@ -256,6 +298,15 @@ = liftDOM ((self ^. js "formMethod") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.formMethod Mozilla HTMLInputElement.formMethod documentation> +getFormMethodUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLInputElement -> m result+getFormMethodUnsafe self+ = liftDOM+ (((self ^. js "formMethod") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.formMethod Mozilla HTMLInputElement.formMethod documentation> getFormMethodUnchecked :: (MonadDOM m, FromJSString result) => HTMLInputElement -> m result getFormMethodUnchecked self@@ -310,6 +361,14 @@ getList self = liftDOM ((self ^. js "list") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.list Mozilla HTMLInputElement.list documentation> +getListUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLInputElement -> m HTMLElement+getListUnsafe self+ = liftDOM+ (((self ^. js "list") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.list Mozilla HTMLInputElement.list documentation> getListUnchecked :: (MonadDOM m) => HTMLInputElement -> m HTMLElement getListUnchecked self@@ -459,6 +518,15 @@ = liftDOM ((self ^. js "defaultValue") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.defaultValue Mozilla HTMLInputElement.defaultValue documentation> +getDefaultValueUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLInputElement -> m result+getDefaultValueUnsafe self+ = liftDOM+ (((self ^. js "defaultValue") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.defaultValue Mozilla HTMLInputElement.defaultValue documentation> getDefaultValueUnchecked :: (MonadDOM m, FromJSString result) => HTMLInputElement -> m result getDefaultValueUnchecked self@@ -478,6 +546,15 @@ = liftDOM ((self ^. js "value") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.value Mozilla HTMLInputElement.value documentation> +getValueUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLInputElement -> m result+getValueUnsafe self+ = liftDOM+ (((self ^. js "value") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.value Mozilla HTMLInputElement.value documentation> getValueUnchecked :: (MonadDOM m, FromJSString result) => HTMLInputElement -> m result getValueUnchecked self@@ -496,6 +573,14 @@ = liftDOM ((self ^. js "valueAsDate") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.valueAsDate Mozilla HTMLInputElement.valueAsDate documentation> +getValueAsDateUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLInputElement -> m Date+getValueAsDateUnsafe self+ = liftDOM+ (((self ^. js "valueAsDate") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.valueAsDate Mozilla HTMLInputElement.valueAsDate documentation> getValueAsDateUnchecked :: (MonadDOM m) => HTMLInputElement -> m Date getValueAsDateUnchecked self@@ -532,6 +617,14 @@ getValidity self = liftDOM ((self ^. js "validity") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.validity Mozilla HTMLInputElement.validity documentation> +getValidityUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLInputElement -> m ValidityState+getValidityUnsafe self+ = liftDOM+ (((self ^. js "validity") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.validity Mozilla HTMLInputElement.validity documentation> getValidityUnchecked :: (MonadDOM m) => HTMLInputElement -> m ValidityState getValidityUnchecked self@@ -548,6 +641,14 @@ getLabels self = liftDOM ((self ^. js "labels") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.labels Mozilla HTMLInputElement.labels documentation> +getLabelsUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLInputElement -> m NodeList+getLabelsUnsafe self+ = liftDOM+ (((self ^. js "labels") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.labels Mozilla HTMLInputElement.labels documentation> getLabelsUnchecked :: (MonadDOM m) => HTMLInputElement -> m NodeList getLabelsUnchecked self@@ -643,6 +744,15 @@ HTMLInputElement -> m (Maybe result) getAutocapitalize self = liftDOM ((self ^. js "autocapitalize") >>= fromMaybeJSString)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.autocapitalize Mozilla HTMLInputElement.autocapitalize documentation> +getAutocapitalizeUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLInputElement -> m result+getAutocapitalizeUnsafe self+ = liftDOM+ (((self ^. js "autocapitalize") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement.autocapitalize Mozilla HTMLInputElement.autocapitalize documentation> getAutocapitalizeUnchecked ::
@@ -1,15 +1,19 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLKeygenElement (checkValidity, checkValidity_, setCustomValidity, setAutofocus, getAutofocus, setChallenge, getChallenge, setDisabled, getDisabled,- getForm, getFormUnchecked, setKeytype, getKeytype, setName,- getName, getType, getWillValidate, getValidity,- getValidityUnchecked, getValidationMessage, getLabels,- getLabelsUnchecked, HTMLKeygenElement, castToHTMLKeygenElement,- gTypeHTMLKeygenElement)+ getForm, getFormUnsafe, getFormUnchecked, setKeytype, getKeytype,+ setName, getName, getType, getWillValidate, getValidity,+ getValidityUnsafe, getValidityUnchecked, getValidationMessage,+ getLabels, getLabelsUnsafe, getLabelsUnchecked,+ HTMLKeygenElement(..), gTypeHTMLKeygenElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -20,6 +24,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLKeygenElement.checkValidity Mozilla HTMLKeygenElement.checkValidity documentation> checkValidity :: (MonadDOM m) => HTMLKeygenElement -> m Bool@@ -75,6 +89,15 @@ getForm self = liftDOM ((self ^. js "form") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLKeygenElement.form Mozilla HTMLKeygenElement.form documentation> +getFormUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLKeygenElement -> m HTMLFormElement+getFormUnsafe self+ = liftDOM+ (((self ^. js "form") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLKeygenElement.form Mozilla HTMLKeygenElement.form documentation> getFormUnchecked :: (MonadDOM m) => HTMLKeygenElement -> m HTMLFormElement getFormUnchecked self@@ -117,6 +140,14 @@ getValidity self = liftDOM ((self ^. js "validity") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLKeygenElement.validity Mozilla HTMLKeygenElement.validity documentation> +getValidityUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLKeygenElement -> m ValidityState+getValidityUnsafe self+ = liftDOM+ (((self ^. js "validity") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLKeygenElement.validity Mozilla HTMLKeygenElement.validity documentation> getValidityUnchecked :: (MonadDOM m) => HTMLKeygenElement -> m ValidityState getValidityUnchecked self@@ -132,6 +163,14 @@ getLabels :: (MonadDOM m) => HTMLKeygenElement -> m (Maybe NodeList) getLabels self = liftDOM ((self ^. js "labels") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLKeygenElement.labels Mozilla HTMLKeygenElement.labels documentation> +getLabelsUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLKeygenElement -> m NodeList+getLabelsUnsafe self+ = liftDOM+ (((self ^. js "labels") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLKeygenElement.labels Mozilla HTMLKeygenElement.labels documentation> getLabelsUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLLIElement- (setType, getType, setValue, getValue, HTMLLIElement,- castToHTMLLIElement, gTypeHTMLLIElement)+ (setType, getType, setValue, getValue, HTMLLIElement(..),+ gTypeHTMLLIElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLLIElement.type Mozilla HTMLLIElement.type documentation> setType ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLLabelElement- (getForm, getFormUnchecked, setHtmlFor, getHtmlFor, getControl,- getControlUnchecked, HTMLLabelElement, castToHTMLLabelElement,- gTypeHTMLLabelElement)+ (getForm, getFormUnsafe, getFormUnchecked, setHtmlFor, getHtmlFor,+ getControl, getControlUnsafe, getControlUnchecked,+ HTMLLabelElement(..), gTypeHTMLLabelElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement.form Mozilla HTMLLabelElement.form documentation> getForm ::@@ -23,6 +37,14 @@ getForm self = liftDOM ((self ^. js "form") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement.form Mozilla HTMLLabelElement.form documentation> +getFormUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLLabelElement -> m HTMLFormElement+getFormUnsafe self+ = liftDOM+ (((self ^. js "form") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement.form Mozilla HTMLLabelElement.form documentation> getFormUnchecked :: (MonadDOM m) => HTMLLabelElement -> m HTMLFormElement getFormUnchecked self@@ -43,6 +65,14 @@ getControl :: (MonadDOM m) => HTMLLabelElement -> m (Maybe HTMLElement) getControl self = liftDOM ((self ^. js "control") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement.control Mozilla HTMLLabelElement.control documentation> +getControlUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLLabelElement -> m HTMLElement+getControlUnsafe self+ = liftDOM+ (((self ^. js "control") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement.control Mozilla HTMLLabelElement.control documentation> getControlUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLLegendElement- (getForm, getFormUnchecked, setAlign, getAlign, HTMLLegendElement,- castToHTMLLegendElement, gTypeHTMLLegendElement)+ (getForm, getFormUnsafe, getFormUnchecked, setAlign, getAlign,+ HTMLLegendElement(..), gTypeHTMLLegendElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,11 +19,30 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLLegendElement.form Mozilla HTMLLegendElement.form documentation> getForm :: (MonadDOM m) => HTMLLegendElement -> m (Maybe HTMLFormElement) getForm self = liftDOM ((self ^. js "form") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLLegendElement.form Mozilla HTMLLegendElement.form documentation> +getFormUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLLegendElement -> m HTMLFormElement+getFormUnsafe self+ = liftDOM+ (((self ^. js "form") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLLegendElement.form Mozilla HTMLLegendElement.form documentation> getFormUnchecked ::
@@ -1,14 +1,19 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLLinkElement (setDisabled, getDisabled, setCharset, getCharset, setHref, getHref, setHreflang, getHreflang, setMedia, getMedia, setRel,- getRel, setRev, getRev, setSizes, getSizes, getSizesUnchecked,- setTarget, getTarget, setType, getType, getSheet,- getSheetUnchecked, getRelList, getRelListUnchecked,- HTMLLinkElement, castToHTMLLinkElement, gTypeHTMLLinkElement)+ getRel, setRev, getRev, setSizes, getSizes, getSizesUnsafe,+ getSizesUnchecked, setTarget, getTarget, setType, getType,+ getSheet, getSheetUnsafe, getSheetUnchecked, getRelList,+ getRelListUnsafe, getRelListUnchecked, HTMLLinkElement(..),+ gTypeHTMLLinkElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +24,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement.disabled Mozilla HTMLLinkElement.disabled documentation> setDisabled :: (MonadDOM m) => HTMLLinkElement -> Bool -> m ()@@ -105,6 +120,15 @@ getSizes self = liftDOM ((self ^. js "sizes") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement.sizes Mozilla HTMLLinkElement.sizes documentation> +getSizesUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLLinkElement -> m DOMSettableTokenList+getSizesUnsafe self+ = liftDOM+ (((self ^. js "sizes") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement.sizes Mozilla HTMLLinkElement.sizes documentation> getSizesUnchecked :: (MonadDOM m) => HTMLLinkElement -> m DOMSettableTokenList getSizesUnchecked self@@ -136,6 +160,14 @@ getSheet self = liftDOM ((self ^. js "sheet") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement.sheet Mozilla HTMLLinkElement.sheet documentation> +getSheetUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLLinkElement -> m StyleSheet+getSheetUnsafe self+ = liftDOM+ (((self ^. js "sheet") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement.sheet Mozilla HTMLLinkElement.sheet documentation> getSheetUnchecked :: (MonadDOM m) => HTMLLinkElement -> m StyleSheet getSheetUnchecked self@@ -145,6 +177,14 @@ getRelList :: (MonadDOM m) => HTMLLinkElement -> m (Maybe DOMTokenList) getRelList self = liftDOM ((self ^. js "relList") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement.relList Mozilla HTMLLinkElement.relList documentation> +getRelListUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLLinkElement -> m DOMTokenList+getRelListUnsafe self+ = liftDOM+ (((self ^. js "relList") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement.relList Mozilla HTMLLinkElement.relList documentation> getRelListUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLMapElement- (getAreas, getAreasUnchecked, setName, getName, HTMLMapElement,- castToHTMLMapElement, gTypeHTMLMapElement)+ (getAreas, getAreasUnsafe, getAreasUnchecked, setName, getName,+ HTMLMapElement(..), gTypeHTMLMapElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,11 +19,29 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement.areas Mozilla HTMLMapElement.areas documentation> getAreas :: (MonadDOM m) => HTMLMapElement -> m (Maybe HTMLCollection) getAreas self = liftDOM ((self ^. js "areas") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement.areas Mozilla HTMLMapElement.areas documentation> +getAreasUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLMapElement -> m HTMLCollection+getAreasUnsafe self+ = liftDOM+ (((self ^. js "areas") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement.areas Mozilla HTMLMapElement.areas documentation> getAreasUnchecked ::
@@ -1,14 +1,18 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLMarqueeElement (start, stop, setBehavior, getBehavior, setBgColor, getBgColor, setDirection, getDirection, setHeight, getHeight, setHspace, getHspace, setLoop, getLoop, setScrollAmount, getScrollAmount, setScrollDelay, getScrollDelay, setTrueSpeed, getTrueSpeed,- setVspace, getVspace, setWidth, getWidth, HTMLMarqueeElement,- castToHTMLMarqueeElement, gTypeHTMLMarqueeElement)+ setVspace, getVspace, setWidth, getWidth, HTMLMarqueeElement(..),+ gTypeHTMLMarqueeElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +23,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMarqueeElement.start Mozilla HTMLMarqueeElement.start documentation> start :: (MonadDOM m) => HTMLMarqueeElement -> m ()
@@ -1,44 +1,52 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLMediaElement (load, canPlayType, canPlayType_, play, pause, fastSeek, webkitGenerateKeyRequest, webkitAddKey, webkitCancelKeyRequest, webkitSetMediaKeys, addTextTrack, addTextTrack_,- addTextTrackUnchecked, getVideoPlaybackQuality,- getVideoPlaybackQuality_, getVideoPlaybackQualityUnchecked,- webkitShowPlaybackTargetPicker, pattern NETWORK_EMPTY,- pattern NETWORK_IDLE, pattern NETWORK_LOADING,- pattern NETWORK_NO_SOURCE, pattern HAVE_NOTHING,- pattern HAVE_METADATA, pattern HAVE_CURRENT_DATA,- pattern HAVE_FUTURE_DATA, pattern HAVE_ENOUGH_DATA, getError,+ addTextTrackUnsafe, addTextTrackUnchecked, getVideoPlaybackQuality,+ getVideoPlaybackQuality_, getVideoPlaybackQualityUnsafe,+ getVideoPlaybackQualityUnchecked, webkitShowPlaybackTargetPicker,+ pattern NETWORK_EMPTY, pattern NETWORK_IDLE,+ pattern NETWORK_LOADING, pattern NETWORK_NO_SOURCE,+ pattern HAVE_NOTHING, pattern HAVE_METADATA,+ pattern HAVE_CURRENT_DATA, pattern HAVE_FUTURE_DATA,+ pattern HAVE_ENOUGH_DATA, getError, getErrorUnsafe, getErrorUnchecked, setSrc, getSrc, getCurrentSrc, getNetworkState,- setPreload, getPreload, getBuffered, getBufferedUnchecked,- getReadyState, getSeeking, setCurrentTime, getCurrentTime,- getDuration, getPaused, setDefaultPlaybackRate,+ setPreload, getPreload, getBuffered, getBufferedUnsafe,+ getBufferedUnchecked, getReadyState, getSeeking, setCurrentTime,+ getCurrentTime, getDuration, getPaused, setDefaultPlaybackRate, getDefaultPlaybackRate, setPlaybackRate, getPlaybackRate,- getPlayed, getPlayedUnchecked, getSeekable, getSeekableUnchecked,- getEnded, setAutoplay, getAutoplay, setLoop, getLoop, setControls,- getControls, setVolume, getVolume, setMuted, getMuted,- setDefaultMuted, getDefaultMuted, emptied, loadedMetadata,- loadedData, canPlay, canPlayThrough, playing, ended, waiting,- durationChange, timeUpdate, playEvent, pauseEvent, rateChange,- volumeChange, setWebkitPreservesPitch, getWebkitPreservesPitch,- getWebkitHasClosedCaptions, setWebkitClosedCaptionsVisible,- getWebkitClosedCaptionsVisible, getWebkitAudioDecodedByteCount,- getWebkitVideoDecodedByteCount, webKitKeyAdded, webKitKeyError,- webKitKeyMessage, webKitNeedKey, getWebkitKeys,- getWebkitKeysUnchecked, getAudioTracks, getAudioTracksUnchecked,- getTextTracks, getTextTracksUnchecked, getVideoTracks,- getVideoTracksUnchecked, setMediaGroup, getMediaGroup,+ getPlayed, getPlayedUnsafe, getPlayedUnchecked, getSeekable,+ getSeekableUnsafe, getSeekableUnchecked, getEnded, setAutoplay,+ getAutoplay, setLoop, getLoop, setControls, getControls, setVolume,+ getVolume, setMuted, getMuted, setDefaultMuted, getDefaultMuted,+ emptied, loadedMetadata, loadedData, canPlay, canPlayThrough,+ playing, ended, waiting, durationChange, timeUpdate, playEvent,+ pauseEvent, rateChange, volumeChange, setWebkitPreservesPitch,+ getWebkitPreservesPitch, getWebkitHasClosedCaptions,+ setWebkitClosedCaptionsVisible, getWebkitClosedCaptionsVisible,+ getWebkitAudioDecodedByteCount, getWebkitVideoDecodedByteCount,+ webKitKeyAdded, webKitKeyError, webKitKeyMessage, webKitNeedKey,+ getWebkitKeys, getWebkitKeysUnsafe, getWebkitKeysUnchecked,+ getAudioTracks, getAudioTracksUnsafe, getAudioTracksUnchecked,+ getTextTracks, getTextTracksUnsafe, getTextTracksUnchecked,+ getVideoTracks, getVideoTracksUnsafe, getVideoTracksUnchecked,+ setMediaGroup, getMediaGroup, getMediaGroupUnsafe, getMediaGroupUnchecked, setController, getController,- getControllerUnchecked, getWebkitCurrentPlaybackTargetIsWireless,+ getControllerUnsafe, getControllerUnchecked,+ getWebkitCurrentPlaybackTargetIsWireless, webKitCurrentPlaybackTargetIsWirelessChanged, webKitPlaybackTargetAvailabilityChanged, setSrcObject,- getSrcObject, getSrcObjectUnchecked, HTMLMediaElement,- castToHTMLMediaElement, gTypeHTMLMediaElement, IsHTMLMediaElement,+ getSrcObject, getSrcObjectUnsafe, getSrcObjectUnchecked,+ HTMLMediaElement(..), gTypeHTMLMediaElement, IsHTMLMediaElement, toHTMLMediaElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -49,6 +57,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.load Mozilla HTMLMediaElement.load documentation> load :: (MonadDOM m, IsHTMLMediaElement self) => self -> m ()@@ -162,6 +180,18 @@ [toJSVal kind, toJSVal label, toJSVal language])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.addTextTrack Mozilla HTMLMediaElement.addTextTrack documentation> +addTextTrackUnsafe ::+ (MonadDOM m, IsHTMLMediaElement self, ToJSString kind,+ ToJSString label, ToJSString language, HasCallStack) =>+ self -> kind -> label -> language -> m TextTrack+addTextTrackUnsafe self kind label language+ = liftDOM+ ((((toHTMLMediaElement self) ^. jsf "addTextTrack"+ [toJSVal kind, toJSVal label, toJSVal language])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.addTextTrack Mozilla HTMLMediaElement.addTextTrack documentation> addTextTrackUnchecked :: (MonadDOM m, IsHTMLMediaElement self, ToJSString kind, ToJSString label, ToJSString language) =>@@ -190,6 +220,16 @@ ((toHTMLMediaElement self) ^. jsf "getVideoPlaybackQuality" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.getVideoPlaybackQuality Mozilla HTMLMediaElement.getVideoPlaybackQuality documentation> +getVideoPlaybackQualityUnsafe ::+ (MonadDOM m, IsHTMLMediaElement self, HasCallStack) =>+ self -> m VideoPlaybackQuality+getVideoPlaybackQualityUnsafe self+ = liftDOM+ ((((toHTMLMediaElement self) ^. jsf "getVideoPlaybackQuality" ())+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.getVideoPlaybackQuality Mozilla HTMLMediaElement.getVideoPlaybackQuality documentation> getVideoPlaybackQualityUnchecked :: (MonadDOM m, IsHTMLMediaElement self) => self -> m VideoPlaybackQuality@@ -224,6 +264,15 @@ = liftDOM (((toHTMLMediaElement self) ^. js "error") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.error Mozilla HTMLMediaElement.error documentation> +getErrorUnsafe ::+ (MonadDOM m, IsHTMLMediaElement self, HasCallStack) =>+ self -> m MediaError+getErrorUnsafe self+ = liftDOM+ ((((toHTMLMediaElement self) ^. js "error") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.error Mozilla HTMLMediaElement.error documentation> getErrorUnchecked :: (MonadDOM m, IsHTMLMediaElement self) => self -> m MediaError getErrorUnchecked self@@ -288,6 +337,15 @@ (((toHTMLMediaElement self) ^. js "buffered") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.buffered Mozilla HTMLMediaElement.buffered documentation> +getBufferedUnsafe ::+ (MonadDOM m, IsHTMLMediaElement self, HasCallStack) =>+ self -> m TimeRanges+getBufferedUnsafe self+ = liftDOM+ ((((toHTMLMediaElement self) ^. js "buffered") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.buffered Mozilla HTMLMediaElement.buffered documentation> getBufferedUnchecked :: (MonadDOM m, IsHTMLMediaElement self) => self -> m TimeRanges getBufferedUnchecked self@@ -377,6 +435,15 @@ (((toHTMLMediaElement self) ^. js "played") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.played Mozilla HTMLMediaElement.played documentation> +getPlayedUnsafe ::+ (MonadDOM m, IsHTMLMediaElement self, HasCallStack) =>+ self -> m TimeRanges+getPlayedUnsafe self+ = liftDOM+ ((((toHTMLMediaElement self) ^. js "played") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.played Mozilla HTMLMediaElement.played documentation> getPlayedUnchecked :: (MonadDOM m, IsHTMLMediaElement self) => self -> m TimeRanges getPlayedUnchecked self@@ -392,6 +459,15 @@ (((toHTMLMediaElement self) ^. js "seekable") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.seekable Mozilla HTMLMediaElement.seekable documentation> +getSeekableUnsafe ::+ (MonadDOM m, IsHTMLMediaElement self, HasCallStack) =>+ self -> m TimeRanges+getSeekableUnsafe self+ = liftDOM+ ((((toHTMLMediaElement self) ^. js "seekable") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.seekable Mozilla HTMLMediaElement.seekable documentation> getSeekableUnchecked :: (MonadDOM m, IsHTMLMediaElement self) => self -> m TimeRanges getSeekableUnchecked self@@ -656,6 +732,15 @@ (((toHTMLMediaElement self) ^. js "webkitKeys") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.webkitKeys Mozilla HTMLMediaElement.webkitKeys documentation> +getWebkitKeysUnsafe ::+ (MonadDOM m, IsHTMLMediaElement self, HasCallStack) =>+ self -> m MediaKeys+getWebkitKeysUnsafe self+ = liftDOM+ ((((toHTMLMediaElement self) ^. js "webkitKeys") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.webkitKeys Mozilla HTMLMediaElement.webkitKeys documentation> getWebkitKeysUnchecked :: (MonadDOM m, IsHTMLMediaElement self) => self -> m MediaKeys getWebkitKeysUnchecked self@@ -672,6 +757,15 @@ (((toHTMLMediaElement self) ^. js "audioTracks") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.audioTracks Mozilla HTMLMediaElement.audioTracks documentation> +getAudioTracksUnsafe ::+ (MonadDOM m, IsHTMLMediaElement self, HasCallStack) =>+ self -> m AudioTrackList+getAudioTracksUnsafe self+ = liftDOM+ ((((toHTMLMediaElement self) ^. js "audioTracks") >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.audioTracks Mozilla HTMLMediaElement.audioTracks documentation> getAudioTracksUnchecked :: (MonadDOM m, IsHTMLMediaElement self) => self -> m AudioTrackList getAudioTracksUnchecked self@@ -688,6 +782,15 @@ (((toHTMLMediaElement self) ^. js "textTracks") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.textTracks Mozilla HTMLMediaElement.textTracks documentation> +getTextTracksUnsafe ::+ (MonadDOM m, IsHTMLMediaElement self, HasCallStack) =>+ self -> m TextTrackList+getTextTracksUnsafe self+ = liftDOM+ ((((toHTMLMediaElement self) ^. js "textTracks") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.textTracks Mozilla HTMLMediaElement.textTracks documentation> getTextTracksUnchecked :: (MonadDOM m, IsHTMLMediaElement self) => self -> m TextTrackList getTextTracksUnchecked self@@ -704,6 +807,15 @@ (((toHTMLMediaElement self) ^. js "videoTracks") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.videoTracks Mozilla HTMLMediaElement.videoTracks documentation> +getVideoTracksUnsafe ::+ (MonadDOM m, IsHTMLMediaElement self, HasCallStack) =>+ self -> m VideoTrackList+getVideoTracksUnsafe self+ = liftDOM+ ((((toHTMLMediaElement self) ^. js "videoTracks") >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.videoTracks Mozilla HTMLMediaElement.videoTracks documentation> getVideoTracksUnchecked :: (MonadDOM m, IsHTMLMediaElement self) => self -> m VideoTrackList getVideoTracksUnchecked self@@ -729,6 +841,17 @@ fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.mediaGroup Mozilla HTMLMediaElement.mediaGroup documentation> +getMediaGroupUnsafe ::+ (MonadDOM m, IsHTMLMediaElement self, HasCallStack,+ FromJSString result) =>+ self -> m result+getMediaGroupUnsafe self+ = liftDOM+ ((((toHTMLMediaElement self) ^. js "mediaGroup") >>=+ fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.mediaGroup Mozilla HTMLMediaElement.mediaGroup documentation> getMediaGroupUnchecked :: (MonadDOM m, IsHTMLMediaElement self, FromJSString result) => self -> m result@@ -754,6 +877,15 @@ (((toHTMLMediaElement self) ^. js "controller") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.controller Mozilla HTMLMediaElement.controller documentation> +getControllerUnsafe ::+ (MonadDOM m, IsHTMLMediaElement self, HasCallStack) =>+ self -> m MediaController+getControllerUnsafe self+ = liftDOM+ ((((toHTMLMediaElement self) ^. js "controller") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.controller Mozilla HTMLMediaElement.controller documentation> getControllerUnchecked :: (MonadDOM m, IsHTMLMediaElement self) => self -> m MediaController getControllerUnchecked self@@ -801,6 +933,15 @@ getSrcObject self = liftDOM (((toHTMLMediaElement self) ^. js "srcObject") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.srcObject Mozilla HTMLMediaElement.srcObject documentation> +getSrcObjectUnsafe ::+ (MonadDOM m, IsHTMLMediaElement self, HasCallStack) =>+ self -> m MediaStream+getSrcObjectUnsafe self+ = liftDOM+ ((((toHTMLMediaElement self) ^. js "srcObject") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.srcObject Mozilla HTMLMediaElement.srcObject documentation> getSrcObjectUnchecked ::
@@ -1,10 +1,13 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLMenuElement- (setCompact, getCompact, HTMLMenuElement, castToHTMLMenuElement,- gTypeHTMLMenuElement)+ (setCompact, getCompact, HTMLMenuElement(..), gTypeHTMLMenuElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +18,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuElement.compact Mozilla HTMLMenuElement.compact documentation> setCompact :: (MonadDOM m) => HTMLMenuElement -> Bool -> m ()
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLMetaElement (setContent, getContent, setHttpEquiv, getHttpEquiv, setName,- getName, setScheme, getScheme, HTMLMetaElement,- castToHTMLMetaElement, gTypeHTMLMetaElement)+ getName, setScheme, getScheme, HTMLMetaElement(..),+ gTypeHTMLMetaElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement.content Mozilla HTMLMetaElement.content documentation> setContent ::
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLMeterElement (setValue, getValue, setMin, getMin, setMax, getMax, setLow, getLow, setHigh, getHigh, setOptimum, getOptimum, getLabels,- getLabelsUnchecked, HTMLMeterElement, castToHTMLMeterElement,+ getLabelsUnsafe, getLabelsUnchecked, HTMLMeterElement(..), gTypeHTMLMeterElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement.value Mozilla HTMLMeterElement.value documentation> setValue :: (MonadDOM m) => HTMLMeterElement -> Double -> m ()@@ -69,6 +83,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement.labels Mozilla HTMLMeterElement.labels documentation> getLabels :: (MonadDOM m) => HTMLMeterElement -> m (Maybe NodeList) getLabels self = liftDOM ((self ^. js "labels") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement.labels Mozilla HTMLMeterElement.labels documentation> +getLabelsUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLMeterElement -> m NodeList+getLabelsUnsafe self+ = liftDOM+ (((self ^. js "labels") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement.labels Mozilla HTMLMeterElement.labels documentation> getLabelsUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLModElement- (setCite, getCite, setDateTime, getDateTime, HTMLModElement,- castToHTMLModElement, gTypeHTMLModElement)+ (setCite, getCite, setDateTime, getDateTime, HTMLModElement(..),+ gTypeHTMLModElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLModElement.cite Mozilla HTMLModElement.cite documentation> setCite ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLOListElement (setCompact, getCompact, setStart, getStart, setReversed,- getReversed, setType, getType, HTMLOListElement,- castToHTMLOListElement, gTypeHTMLOListElement)+ getReversed, setType, getType, HTMLOListElement(..),+ gTypeHTMLOListElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement.compact Mozilla HTMLOListElement.compact documentation> setCompact :: (MonadDOM m) => HTMLOListElement -> Bool -> m ()
@@ -1,19 +1,24 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLObjectElement (checkValidity, checkValidity_, setCustomValidity, getSVGDocument,- getSVGDocument_, getSVGDocumentUnchecked, getForm,- getFormUnchecked, setCode, getCode, setAlign, getAlign, setArchive,- getArchive, setBorder, getBorder, setCodeBase, getCodeBase,- setCodeType, getCodeType, setData, getData, setDeclare, getDeclare,- setHeight, getHeight, setHspace, getHspace, setName, getName,- setStandby, getStandby, setType, getType, setUseMap, getUseMap,- setVspace, getVspace, setWidth, getWidth, getWillValidate,- getValidity, getValidityUnchecked, getValidationMessage,- getContentDocument, getContentDocumentUnchecked, HTMLObjectElement,- castToHTMLObjectElement, gTypeHTMLObjectElement)+ getSVGDocument_, getSVGDocumentUnsafe, getSVGDocumentUnchecked,+ getForm, getFormUnsafe, getFormUnchecked, setCode, getCode,+ setAlign, getAlign, setArchive, getArchive, setBorder, getBorder,+ setCodeBase, getCodeBase, setCodeType, getCodeType, setData,+ getData, setDeclare, getDeclare, setHeight, getHeight, setHspace,+ getHspace, setName, getName, setStandby, getStandby, setType,+ getType, setUseMap, getUseMap, setVspace, getVspace, setWidth,+ getWidth, getWillValidate, getValidity, getValidityUnsafe,+ getValidityUnchecked, getValidationMessage, getContentDocument,+ getContentDocumentUnsafe, getContentDocumentUnchecked,+ HTMLObjectElement(..), gTypeHTMLObjectElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -24,6 +29,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement.checkValidity Mozilla HTMLObjectElement.checkValidity documentation> checkValidity :: (MonadDOM m) => HTMLObjectElement -> m Bool@@ -54,6 +69,14 @@ = liftDOM (void (self ^. jsf "getSVGDocument" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement.getSVGDocument Mozilla HTMLObjectElement.getSVGDocument documentation> +getSVGDocumentUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLObjectElement -> m SVGDocument+getSVGDocumentUnsafe self+ = liftDOM+ (((self ^. jsf "getSVGDocument" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement.getSVGDocument Mozilla HTMLObjectElement.getSVGDocument documentation> getSVGDocumentUnchecked :: (MonadDOM m) => HTMLObjectElement -> m SVGDocument getSVGDocumentUnchecked self@@ -66,6 +89,15 @@ getForm self = liftDOM ((self ^. js "form") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement.form Mozilla HTMLObjectElement.form documentation> +getFormUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLObjectElement -> m HTMLFormElement+getFormUnsafe self+ = liftDOM+ (((self ^. js "form") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement.form Mozilla HTMLObjectElement.form documentation> getFormUnchecked :: (MonadDOM m) => HTMLObjectElement -> m HTMLFormElement getFormUnchecked self@@ -249,6 +281,14 @@ getValidity self = liftDOM ((self ^. js "validity") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement.validity Mozilla HTMLObjectElement.validity documentation> +getValidityUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLObjectElement -> m ValidityState+getValidityUnsafe self+ = liftDOM+ (((self ^. js "validity") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement.validity Mozilla HTMLObjectElement.validity documentation> getValidityUnchecked :: (MonadDOM m) => HTMLObjectElement -> m ValidityState getValidityUnchecked self@@ -265,6 +305,14 @@ (MonadDOM m) => HTMLObjectElement -> m (Maybe Document) getContentDocument self = liftDOM ((self ^. js "contentDocument") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement.contentDocument Mozilla HTMLObjectElement.contentDocument documentation> +getContentDocumentUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLObjectElement -> m Document+getContentDocumentUnsafe self+ = liftDOM+ (((self ^. js "contentDocument") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement.contentDocument Mozilla HTMLObjectElement.contentDocument documentation> getContentDocumentUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLOptGroupElement- (setDisabled, getDisabled, setLabel, getLabel, HTMLOptGroupElement,- castToHTMLOptGroupElement, gTypeHTMLOptGroupElement)+ (setDisabled, getDisabled, setLabel, getLabel,+ HTMLOptGroupElement(..), gTypeHTMLOptGroupElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptGroupElement.disabled Mozilla HTMLOptGroupElement.disabled documentation> setDisabled :: (MonadDOM m) => HTMLOptGroupElement -> Bool -> m ()
@@ -1,12 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLOptionElement- (setDisabled, getDisabled, getForm, getFormUnchecked, setLabel,- getLabel, setDefaultSelected, getDefaultSelected, setSelected,- getSelected, setValue, getValue, setText, getText, getIndex,- HTMLOptionElement, castToHTMLOptionElement, gTypeHTMLOptionElement)+ (setDisabled, getDisabled, getForm, getFormUnsafe,+ getFormUnchecked, setLabel, getLabel, setDefaultSelected,+ getDefaultSelected, setSelected, getSelected, setValue, getValue,+ setText, getText, getIndex, HTMLOptionElement(..),+ gTypeHTMLOptionElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement.disabled Mozilla HTMLOptionElement.disabled documentation> setDisabled :: (MonadDOM m) => HTMLOptionElement -> Bool -> m ()@@ -31,6 +46,15 @@ getForm :: (MonadDOM m) => HTMLOptionElement -> m (Maybe HTMLFormElement) getForm self = liftDOM ((self ^. js "form") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement.form Mozilla HTMLOptionElement.form documentation> +getFormUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLOptionElement -> m HTMLFormElement+getFormUnsafe self+ = liftDOM+ (((self ^. js "form") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement.form Mozilla HTMLOptionElement.form documentation> getFormUnchecked ::
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLOptionsCollection- (namedItem, namedItem_, namedItemUnchecked, addBefore, add, remove,- setSelectedIndex, getSelectedIndex, setLength, getLength,- HTMLOptionsCollection, castToHTMLOptionsCollection,+ (namedItem, namedItem_, namedItemUnsafe, namedItemUnchecked,+ addBefore, add, remove, setSelectedIndex, getSelectedIndex,+ setLength, getLength, HTMLOptionsCollection(..), gTypeHTMLOptionsCollection) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection.namedItem Mozilla HTMLOptionsCollection.namedItem documentation> namedItem ::@@ -31,6 +45,15 @@ HTMLOptionsCollection -> name -> m () namedItem_ self name = liftDOM (void (self ^. jsf "namedItem" [toJSVal name]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection.namedItem Mozilla HTMLOptionsCollection.namedItem documentation> +namedItemUnsafe ::+ (MonadDOM m, ToJSString name, HasCallStack) =>+ HTMLOptionsCollection -> name -> m Node+namedItemUnsafe self name+ = liftDOM+ (((self ^. jsf "namedItem" [toJSVal name]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection.namedItem Mozilla HTMLOptionsCollection.namedItem documentation> namedItemUnchecked ::
@@ -1,15 +1,21 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLOutputElement (checkValidity, checkValidity_, setCustomValidity, getHtmlFor,- getHtmlForUnchecked, getForm, getFormUnchecked, setName, getName,- getType, setDefaultValue, getDefaultValue,- getDefaultValueUnchecked, setValue, getValue, getValueUnchecked,- getWillValidate, getValidity, getValidityUnchecked,- getValidationMessage, getLabels, getLabelsUnchecked,- HTMLOutputElement, castToHTMLOutputElement, gTypeHTMLOutputElement)+ getHtmlForUnsafe, getHtmlForUnchecked, getForm, getFormUnsafe,+ getFormUnchecked, setName, getName, getType, setDefaultValue,+ getDefaultValue, getDefaultValueUnsafe, getDefaultValueUnchecked,+ setValue, getValue, getValueUnsafe, getValueUnchecked,+ getWillValidate, getValidity, getValidityUnsafe,+ getValidityUnchecked, getValidationMessage, getLabels,+ getLabelsUnsafe, getLabelsUnchecked, HTMLOutputElement(..),+ gTypeHTMLOutputElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -20,6 +26,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement.checkValidity Mozilla HTMLOutputElement.checkValidity documentation> checkValidity :: (MonadDOM m) => HTMLOutputElement -> m Bool@@ -44,6 +60,15 @@ getHtmlFor self = liftDOM ((self ^. js "htmlFor") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement.htmlFor Mozilla HTMLOutputElement.htmlFor documentation> +getHtmlForUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLOutputElement -> m DOMSettableTokenList+getHtmlForUnsafe self+ = liftDOM+ (((self ^. js "htmlFor") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement.htmlFor Mozilla HTMLOutputElement.htmlFor documentation> getHtmlForUnchecked :: (MonadDOM m) => HTMLOutputElement -> m DOMSettableTokenList getHtmlForUnchecked self@@ -55,6 +80,15 @@ getForm self = liftDOM ((self ^. js "form") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement.form Mozilla HTMLOutputElement.form documentation> +getFormUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLOutputElement -> m HTMLFormElement+getFormUnsafe self+ = liftDOM+ (((self ^. js "form") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement.form Mozilla HTMLOutputElement.form documentation> getFormUnchecked :: (MonadDOM m) => HTMLOutputElement -> m HTMLFormElement getFormUnchecked self@@ -90,6 +124,15 @@ = liftDOM ((self ^. js "defaultValue") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement.defaultValue Mozilla HTMLOutputElement.defaultValue documentation> +getDefaultValueUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLOutputElement -> m result+getDefaultValueUnsafe self+ = liftDOM+ (((self ^. js "defaultValue") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement.defaultValue Mozilla HTMLOutputElement.defaultValue documentation> getDefaultValueUnchecked :: (MonadDOM m, FromJSString result) => HTMLOutputElement -> m result getDefaultValueUnchecked self@@ -109,6 +152,15 @@ = liftDOM ((self ^. js "value") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement.value Mozilla HTMLOutputElement.value documentation> +getValueUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLOutputElement -> m result+getValueUnsafe self+ = liftDOM+ (((self ^. js "value") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement.value Mozilla HTMLOutputElement.value documentation> getValueUnchecked :: (MonadDOM m, FromJSString result) => HTMLOutputElement -> m result getValueUnchecked self@@ -125,6 +177,14 @@ getValidity self = liftDOM ((self ^. js "validity") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement.validity Mozilla HTMLOutputElement.validity documentation> +getValidityUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLOutputElement -> m ValidityState+getValidityUnsafe self+ = liftDOM+ (((self ^. js "validity") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement.validity Mozilla HTMLOutputElement.validity documentation> getValidityUnchecked :: (MonadDOM m) => HTMLOutputElement -> m ValidityState getValidityUnchecked self@@ -140,6 +200,14 @@ getLabels :: (MonadDOM m) => HTMLOutputElement -> m (Maybe NodeList) getLabels self = liftDOM ((self ^. js "labels") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement.labels Mozilla HTMLOutputElement.labels documentation> +getLabelsUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLOutputElement -> m NodeList+getLabelsUnsafe self+ = liftDOM+ (((self ^. js "labels") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement.labels Mozilla HTMLOutputElement.labels documentation> getLabelsUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLParagraphElement- (setAlign, getAlign, HTMLParagraphElement,- castToHTMLParagraphElement, gTypeHTMLParagraphElement)+ (setAlign, getAlign, HTMLParagraphElement(..),+ gTypeHTMLParagraphElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLParagraphElement.align Mozilla HTMLParagraphElement.align documentation> setAlign ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLParamElement (setName, getName, setType, getType, setValue, getValue,- setValueType, getValueType, HTMLParamElement,- castToHTMLParamElement, gTypeHTMLParamElement)+ setValueType, getValueType, HTMLParamElement(..),+ gTypeHTMLParamElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement.name Mozilla HTMLParamElement.name documentation> setName ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLPreElement- (setWidth, getWidth, setWrap, getWrap, HTMLPreElement,- castToHTMLPreElement, gTypeHTMLPreElement)+ (setWidth, getWidth, setWrap, getWrap, HTMLPreElement(..),+ gTypeHTMLPreElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLPreElement.width Mozilla HTMLPreElement.width documentation> setWidth :: (MonadDOM m) => HTMLPreElement -> Int -> m ()
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLProgressElement (setValue, getValue, setMax, getMax, getPosition, getLabels,- getLabelsUnchecked, HTMLProgressElement, castToHTMLProgressElement,+ getLabelsUnsafe, getLabelsUnchecked, HTMLProgressElement(..), gTypeHTMLProgressElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement.value Mozilla HTMLProgressElement.value documentation> setValue :: (MonadDOM m) => HTMLProgressElement -> Double -> m ()@@ -42,6 +56,14 @@ getLabels :: (MonadDOM m) => HTMLProgressElement -> m (Maybe NodeList) getLabels self = liftDOM ((self ^. js "labels") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement.labels Mozilla HTMLProgressElement.labels documentation> +getLabelsUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLProgressElement -> m NodeList+getLabelsUnsafe self+ = liftDOM+ (((self ^. js "labels") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement.labels Mozilla HTMLProgressElement.labels documentation> getLabelsUnchecked ::
@@ -1,10 +1,13 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLQuoteElement- (setCite, getCite, HTMLQuoteElement, castToHTMLQuoteElement,- gTypeHTMLQuoteElement)+ (setCite, getCite, HTMLQuoteElement(..), gTypeHTMLQuoteElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +18,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLQuoteElement.cite Mozilla HTMLQuoteElement.cite documentation> setCite ::
@@ -1,13 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLScriptElement- (setText, getText, getTextUnchecked, setHtmlFor, getHtmlFor,- setEvent, getEvent, setCharset, getCharset, setAsync, getAsync,- setDefer, getDefer, setSrc, getSrc, setType, getType,+ (setText, getText, getTextUnsafe, getTextUnchecked, setHtmlFor,+ getHtmlFor, setEvent, getEvent, setCharset, getCharset, setAsync,+ getAsync, setDefer, getDefer, setSrc, getSrc, setType, getType, setCrossOrigin, getCrossOrigin, setNonce, getNonce,- HTMLScriptElement, castToHTMLScriptElement, gTypeHTMLScriptElement)+ HTMLScriptElement(..), gTypeHTMLScriptElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement.text Mozilla HTMLScriptElement.text documentation> setText ::@@ -30,6 +44,15 @@ (MonadDOM m, FromJSString result) => HTMLScriptElement -> m (Maybe result) getText self = liftDOM ((self ^. js "text") >>= fromMaybeJSString)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement.text Mozilla HTMLScriptElement.text documentation> +getTextUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLScriptElement -> m result+getTextUnsafe self+ = liftDOM+ (((self ^. js "text") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement.text Mozilla HTMLScriptElement.text documentation> getTextUnchecked ::
@@ -1,20 +1,26 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLSelectElement- (item, item_, itemUnchecked, namedItem, namedItem_,- namedItemUnchecked, addBefore, add, remove, checkValidity,- checkValidity_, setCustomValidity, setAutofocus, getAutofocus,- setDisabled, getDisabled, getForm, getFormUnchecked, setMultiple,- getMultiple, setName, getName, setRequired, getRequired, setSize,- getSize, getType, getOptions, getOptionsUnchecked, setLength,- getLength, getSelectedOptions, getSelectedOptionsUnchecked,- setSelectedIndex, getSelectedIndex, setValue, getValue,- getValueUnchecked, getWillValidate, getValidity,+ (item, item_, itemUnsafe, itemUnchecked, namedItem, namedItem_,+ namedItemUnsafe, namedItemUnchecked, addBefore, add, remove,+ checkValidity, checkValidity_, setCustomValidity, setAutofocus,+ getAutofocus, setDisabled, getDisabled, getForm, getFormUnsafe,+ getFormUnchecked, setMultiple, getMultiple, setName, getName,+ setRequired, getRequired, setSize, getSize, getType, getOptions,+ getOptionsUnsafe, getOptionsUnchecked, setLength, getLength,+ getSelectedOptions, getSelectedOptionsUnsafe,+ getSelectedOptionsUnchecked, setSelectedIndex, getSelectedIndex,+ setValue, getValue, getValueUnsafe, getValueUnchecked,+ getWillValidate, getValidity, getValidityUnsafe, getValidityUnchecked, getValidationMessage, getLabels,- getLabelsUnchecked, HTMLSelectElement, castToHTMLSelectElement,+ getLabelsUnsafe, getLabelsUnchecked, HTMLSelectElement(..), gTypeHTMLSelectElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -25,6 +31,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement.item Mozilla HTMLSelectElement.item documentation> item :: (MonadDOM m) => HTMLSelectElement -> Word -> m (Maybe Node)@@ -37,6 +53,14 @@ = liftDOM (void (self ^. jsf "item" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement.item Mozilla HTMLSelectElement.item documentation> +itemUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLSelectElement -> Word -> m Node+itemUnsafe self index+ = liftDOM+ (((self ^. jsf "item" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement.item Mozilla HTMLSelectElement.item documentation> itemUnchecked :: (MonadDOM m) => HTMLSelectElement -> Word -> m Node itemUnchecked self index@@ -57,6 +81,15 @@ = liftDOM (void (self ^. jsf "namedItem" [toJSVal name])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement.namedItem Mozilla HTMLSelectElement.namedItem documentation> +namedItemUnsafe ::+ (MonadDOM m, ToJSString name, HasCallStack) =>+ HTMLSelectElement -> name -> m Node+namedItemUnsafe self name+ = liftDOM+ (((self ^. jsf "namedItem" [toJSVal name]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement.namedItem Mozilla HTMLSelectElement.namedItem documentation> namedItemUnchecked :: (MonadDOM m, ToJSString name) => HTMLSelectElement -> name -> m Node@@ -126,6 +159,15 @@ getForm self = liftDOM ((self ^. js "form") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement.form Mozilla HTMLSelectElement.form documentation> +getFormUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLSelectElement -> m HTMLFormElement+getFormUnsafe self+ = liftDOM+ (((self ^. js "form") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement.form Mozilla HTMLSelectElement.form documentation> getFormUnchecked :: (MonadDOM m) => HTMLSelectElement -> m HTMLFormElement getFormUnchecked self@@ -180,6 +222,15 @@ getOptions self = liftDOM ((self ^. js "options") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement.options Mozilla HTMLSelectElement.options documentation> +getOptionsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLSelectElement -> m HTMLOptionsCollection+getOptionsUnsafe self+ = liftDOM+ (((self ^. js "options") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement.options Mozilla HTMLSelectElement.options documentation> getOptionsUnchecked :: (MonadDOM m) => HTMLSelectElement -> m HTMLOptionsCollection getOptionsUnchecked self@@ -201,6 +252,14 @@ = liftDOM ((self ^. js "selectedOptions") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement.selectedOptions Mozilla HTMLSelectElement.selectedOptions documentation> +getSelectedOptionsUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLSelectElement -> m HTMLCollection+getSelectedOptionsUnsafe self+ = liftDOM+ (((self ^. js "selectedOptions") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement.selectedOptions Mozilla HTMLSelectElement.selectedOptions documentation> getSelectedOptionsUnchecked :: (MonadDOM m) => HTMLSelectElement -> m HTMLCollection getSelectedOptionsUnchecked self@@ -232,6 +291,15 @@ = liftDOM ((self ^. js "value") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement.value Mozilla HTMLSelectElement.value documentation> +getValueUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLSelectElement -> m result+getValueUnsafe self+ = liftDOM+ (((self ^. js "value") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement.value Mozilla HTMLSelectElement.value documentation> getValueUnchecked :: (MonadDOM m, FromJSString result) => HTMLSelectElement -> m result getValueUnchecked self@@ -248,6 +316,14 @@ getValidity self = liftDOM ((self ^. js "validity") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement.validity Mozilla HTMLSelectElement.validity documentation> +getValidityUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLSelectElement -> m ValidityState+getValidityUnsafe self+ = liftDOM+ (((self ^. js "validity") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement.validity Mozilla HTMLSelectElement.validity documentation> getValidityUnchecked :: (MonadDOM m) => HTMLSelectElement -> m ValidityState getValidityUnchecked self@@ -263,6 +339,14 @@ getLabels :: (MonadDOM m) => HTMLSelectElement -> m (Maybe NodeList) getLabels self = liftDOM ((self ^. js "labels") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement.labels Mozilla HTMLSelectElement.labels documentation> +getLabelsUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLSelectElement -> m NodeList+getLabelsUnsafe self+ = liftDOM+ (((self ^. js "labels") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement.labels Mozilla HTMLSelectElement.labels documentation> getLabelsUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLSourceElement (setSrc, getSrc, setType, getType, setMedia, getMedia,- HTMLSourceElement, castToHTMLSourceElement, gTypeHTMLSourceElement)+ HTMLSourceElement(..), gTypeHTMLSourceElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement.src Mozilla HTMLSourceElement.src documentation> setSrc ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLStyleElement (setDisabled, getDisabled, setMedia, getMedia, setType, getType,- getSheet, getSheetUnchecked, HTMLStyleElement,- castToHTMLStyleElement, gTypeHTMLStyleElement)+ getSheet, getSheetUnsafe, getSheetUnchecked, HTMLStyleElement(..),+ gTypeHTMLStyleElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement.disabled Mozilla HTMLStyleElement.disabled documentation> setDisabled :: (MonadDOM m) => HTMLStyleElement -> Bool -> m ()@@ -51,6 +65,14 @@ getSheet :: (MonadDOM m) => HTMLStyleElement -> m (Maybe StyleSheet) getSheet self = liftDOM ((self ^. js "sheet") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement.sheet Mozilla HTMLStyleElement.sheet documentation> +getSheetUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLStyleElement -> m StyleSheet+getSheetUnsafe self+ = liftDOM+ (((self ^. js "sheet") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement.sheet Mozilla HTMLStyleElement.sheet documentation> getSheetUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLTableCaptionElement- (setAlign, getAlign, HTMLTableCaptionElement,- castToHTMLTableCaptionElement, gTypeHTMLTableCaptionElement)+ (setAlign, getAlign, HTMLTableCaptionElement(..),+ gTypeHTMLTableCaptionElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCaptionElement.align Mozilla HTMLTableCaptionElement.align documentation> setAlign ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLTableCellElement (getCellIndex, setAbbr, getAbbr, setAlign, getAlign, setAxis,@@ -6,10 +9,10 @@ setColSpan, getColSpan, setHeaders, getHeaders, setHeight, getHeight, setNoWrap, getNoWrap, setRowSpan, getRowSpan, setScope, getScope, setVAlign, getVAlign, setWidth, getWidth,- HTMLTableCellElement, castToHTMLTableCellElement,- gTypeHTMLTableCellElement)+ HTMLTableCellElement(..), gTypeHTMLTableCellElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -20,6 +23,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement.cellIndex Mozilla HTMLTableCellElement.cellIndex documentation> getCellIndex :: (MonadDOM m) => HTMLTableCellElement -> m Int
@@ -1,12 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLTableColElement (setAlign, getAlign, setCh, getCh, setChOff, getChOff, setSpan, getSpan, setVAlign, getVAlign, setWidth, getWidth,- HTMLTableColElement, castToHTMLTableColElement,- gTypeHTMLTableColElement)+ HTMLTableColElement(..), gTypeHTMLTableColElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement.align Mozilla HTMLTableColElement.align documentation> setAlign ::
@@ -1,20 +1,28 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLTableElement- (createTHead, createTHead_, createTHeadUnchecked, deleteTHead,- createTFoot, createTFoot_, createTFootUnchecked, deleteTFoot,- createTBody, createTBody_, createTBodyUnchecked, createCaption,- createCaption_, createCaptionUnchecked, deleteCaption, insertRow,- insertRow_, insertRowUnchecked, deleteRow, setCaption, getCaption,- getCaptionUnchecked, setTHead, getTHead, getTHeadUnchecked,- setTFoot, getTFoot, getTFootUnchecked, getRows, getRowsUnchecked,- getTBodies, getTBodiesUnchecked, setAlign, getAlign, setBgColor,- getBgColor, setBorder, getBorder, setCellPadding, getCellPadding,+ (createTHead, createTHead_, createTHeadUnsafe,+ createTHeadUnchecked, deleteTHead, createTFoot, createTFoot_,+ createTFootUnsafe, createTFootUnchecked, deleteTFoot, createTBody,+ createTBody_, createTBodyUnsafe, createTBodyUnchecked,+ createCaption, createCaption_, createCaptionUnsafe,+ createCaptionUnchecked, deleteCaption, insertRow, insertRow_,+ insertRowUnsafe, insertRowUnchecked, deleteRow, setCaption,+ getCaption, getCaptionUnsafe, getCaptionUnchecked, setTHead,+ getTHead, getTHeadUnsafe, getTHeadUnchecked, setTFoot, getTFoot,+ getTFootUnsafe, getTFootUnchecked, getRows, getRowsUnsafe,+ getRowsUnchecked, getTBodies, getTBodiesUnsafe,+ getTBodiesUnchecked, setAlign, getAlign, setBgColor, getBgColor,+ setBorder, getBorder, setCellPadding, getCellPadding, setCellSpacing, getCellSpacing, setFrame, getFrame, setRules, getRules, setSummary, getSummary, setWidth, getWidth,- HTMLTableElement, castToHTMLTableElement, gTypeHTMLTableElement)+ HTMLTableElement(..), gTypeHTMLTableElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -25,6 +33,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.createTHead Mozilla HTMLTableElement.createTHead documentation> createTHead ::@@ -37,6 +55,14 @@ createTHead_ self = liftDOM (void (self ^. jsf "createTHead" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.createTHead Mozilla HTMLTableElement.createTHead documentation> +createTHeadUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLTableElement -> m HTMLElement+createTHeadUnsafe self+ = liftDOM+ (((self ^. jsf "createTHead" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.createTHead Mozilla HTMLTableElement.createTHead documentation> createTHeadUnchecked :: (MonadDOM m) => HTMLTableElement -> m HTMLElement createTHeadUnchecked self@@ -57,6 +83,14 @@ createTFoot_ self = liftDOM (void (self ^. jsf "createTFoot" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.createTFoot Mozilla HTMLTableElement.createTFoot documentation> +createTFootUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLTableElement -> m HTMLElement+createTFootUnsafe self+ = liftDOM+ (((self ^. jsf "createTFoot" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.createTFoot Mozilla HTMLTableElement.createTFoot documentation> createTFootUnchecked :: (MonadDOM m) => HTMLTableElement -> m HTMLElement createTFootUnchecked self@@ -77,6 +111,14 @@ createTBody_ self = liftDOM (void (self ^. jsf "createTBody" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.createTBody Mozilla HTMLTableElement.createTBody documentation> +createTBodyUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLTableElement -> m HTMLElement+createTBodyUnsafe self+ = liftDOM+ (((self ^. jsf "createTBody" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.createTBody Mozilla HTMLTableElement.createTBody documentation> createTBodyUnchecked :: (MonadDOM m) => HTMLTableElement -> m HTMLElement createTBodyUnchecked self@@ -94,6 +136,14 @@ = liftDOM (void (self ^. jsf "createCaption" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.createCaption Mozilla HTMLTableElement.createCaption documentation> +createCaptionUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLTableElement -> m HTMLElement+createCaptionUnsafe self+ = liftDOM+ (((self ^. jsf "createCaption" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.createCaption Mozilla HTMLTableElement.createCaption documentation> createCaptionUnchecked :: (MonadDOM m) => HTMLTableElement -> m HTMLElement createCaptionUnchecked self@@ -116,6 +166,15 @@ = liftDOM (void (self ^. jsf "insertRow" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.insertRow Mozilla HTMLTableElement.insertRow documentation> +insertRowUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLTableElement -> Int -> m HTMLElement+insertRowUnsafe self index+ = liftDOM+ (((self ^. jsf "insertRow" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.insertRow Mozilla HTMLTableElement.insertRow documentation> insertRowUnchecked :: (MonadDOM m) => HTMLTableElement -> Int -> m HTMLElement insertRowUnchecked self index@@ -140,6 +199,15 @@ getCaption self = liftDOM ((self ^. js "caption") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.caption Mozilla HTMLTableElement.caption documentation> +getCaptionUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLTableElement -> m HTMLTableCaptionElement+getCaptionUnsafe self+ = liftDOM+ (((self ^. js "caption") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.caption Mozilla HTMLTableElement.caption documentation> getCaptionUnchecked :: (MonadDOM m) => HTMLTableElement -> m HTMLTableCaptionElement getCaptionUnchecked self@@ -158,6 +226,15 @@ getTHead self = liftDOM ((self ^. js "tHead") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.tHead Mozilla HTMLTableElement.tHead documentation> +getTHeadUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLTableElement -> m HTMLTableSectionElement+getTHeadUnsafe self+ = liftDOM+ (((self ^. js "tHead") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.tHead Mozilla HTMLTableElement.tHead documentation> getTHeadUnchecked :: (MonadDOM m) => HTMLTableElement -> m HTMLTableSectionElement getTHeadUnchecked self@@ -176,6 +253,15 @@ getTFoot self = liftDOM ((self ^. js "tFoot") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.tFoot Mozilla HTMLTableElement.tFoot documentation> +getTFootUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLTableElement -> m HTMLTableSectionElement+getTFootUnsafe self+ = liftDOM+ (((self ^. js "tFoot") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.tFoot Mozilla HTMLTableElement.tFoot documentation> getTFootUnchecked :: (MonadDOM m) => HTMLTableElement -> m HTMLTableSectionElement getTFootUnchecked self@@ -187,6 +273,14 @@ getRows self = liftDOM ((self ^. js "rows") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.rows Mozilla HTMLTableElement.rows documentation> +getRowsUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLTableElement -> m HTMLCollection+getRowsUnsafe self+ = liftDOM+ (((self ^. js "rows") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.rows Mozilla HTMLTableElement.rows documentation> getRowsUnchecked :: (MonadDOM m) => HTMLTableElement -> m HTMLCollection getRowsUnchecked self@@ -196,6 +290,14 @@ getTBodies :: (MonadDOM m) => HTMLTableElement -> m (Maybe HTMLCollection) getTBodies self = liftDOM ((self ^. js "tBodies") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.tBodies Mozilla HTMLTableElement.tBodies documentation> +getTBodiesUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLTableElement -> m HTMLCollection+getTBodiesUnsafe self+ = liftDOM+ (((self ^. js "tBodies") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement.tBodies Mozilla HTMLTableElement.tBodies documentation> getTBodiesUnchecked ::
@@ -1,13 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLTableRowElement- (insertCell, insertCell_, insertCellUnchecked, deleteCell,- getRowIndex, getSectionRowIndex, getCells, getCellsUnchecked,- setAlign, getAlign, setBgColor, getBgColor, setCh, getCh, setChOff,- getChOff, setVAlign, getVAlign, HTMLTableRowElement,- castToHTMLTableRowElement, gTypeHTMLTableRowElement)+ (insertCell, insertCell_, insertCellUnsafe, insertCellUnchecked,+ deleteCell, getRowIndex, getSectionRowIndex, getCells,+ getCellsUnsafe, getCellsUnchecked, setAlign, getAlign, setBgColor,+ getBgColor, setCh, getCh, setChOff, getChOff, setVAlign, getVAlign,+ HTMLTableRowElement(..), gTypeHTMLTableRowElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement.insertCell Mozilla HTMLTableRowElement.insertCell documentation> insertCell ::@@ -32,6 +46,15 @@ = liftDOM (void (self ^. jsf "insertCell" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement.insertCell Mozilla HTMLTableRowElement.insertCell documentation> +insertCellUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLTableRowElement -> Int -> m HTMLElement+insertCellUnsafe self index+ = liftDOM+ (((self ^. jsf "insertCell" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement.insertCell Mozilla HTMLTableRowElement.insertCell documentation> insertCellUnchecked :: (MonadDOM m) => HTMLTableRowElement -> Int -> m HTMLElement insertCellUnchecked self index@@ -58,6 +81,15 @@ getCells :: (MonadDOM m) => HTMLTableRowElement -> m (Maybe HTMLCollection) getCells self = liftDOM ((self ^. js "cells") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement.cells Mozilla HTMLTableRowElement.cells documentation> +getCellsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLTableRowElement -> m HTMLCollection+getCellsUnsafe self+ = liftDOM+ (((self ^. js "cells") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement.cells Mozilla HTMLTableRowElement.cells documentation> getCellsUnchecked ::
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLTableSectionElement- (insertRow, insertRow_, insertRowUnchecked, deleteRow, setAlign,- getAlign, setCh, getCh, setChOff, getChOff, setVAlign, getVAlign,- getRows, getRowsUnchecked, HTMLTableSectionElement,- castToHTMLTableSectionElement, gTypeHTMLTableSectionElement)+ (insertRow, insertRow_, insertRowUnsafe, insertRowUnchecked,+ deleteRow, setAlign, getAlign, setCh, getCh, setChOff, getChOff,+ setVAlign, getVAlign, getRows, getRowsUnsafe, getRowsUnchecked,+ HTMLTableSectionElement(..), gTypeHTMLTableSectionElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement.insertRow Mozilla HTMLTableSectionElement.insertRow documentation> insertRow ::@@ -32,6 +46,15 @@ = liftDOM (void (self ^. jsf "insertRow" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement.insertRow Mozilla HTMLTableSectionElement.insertRow documentation> +insertRowUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLTableSectionElement -> Int -> m HTMLElement+insertRowUnsafe self index+ = liftDOM+ (((self ^. jsf "insertRow" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement.insertRow Mozilla HTMLTableSectionElement.insertRow documentation> insertRowUnchecked :: (MonadDOM m) => HTMLTableSectionElement -> Int -> m HTMLElement insertRowUnchecked self index@@ -98,6 +121,15 @@ getRows :: (MonadDOM m) => HTMLTableSectionElement -> m (Maybe HTMLCollection) getRows self = liftDOM ((self ^. js "rows") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement.rows Mozilla HTMLTableSectionElement.rows documentation> +getRowsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLTableSectionElement -> m HTMLCollection+getRowsUnsafe self+ = liftDOM+ (((self ^. js "rows") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement.rows Mozilla HTMLTableSectionElement.rows documentation> getRowsUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLTemplateElement- (getContent, getContentUnchecked, HTMLTemplateElement,- castToHTMLTemplateElement, gTypeHTMLTemplateElement)+ (getContent, getContentUnsafe, getContentUnchecked,+ HTMLTemplateElement(..), gTypeHTMLTemplateElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,11 +19,30 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTemplateElement.content Mozilla HTMLTemplateElement.content documentation> getContent :: (MonadDOM m) => HTMLTemplateElement -> m (Maybe DocumentFragment) getContent self = liftDOM ((self ^. js "content") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTemplateElement.content Mozilla HTMLTemplateElement.content documentation> +getContentUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLTemplateElement -> m DocumentFragment+getContentUnsafe self+ = liftDOM+ (((self ^. js "content") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTemplateElement.content Mozilla HTMLTemplateElement.content documentation> getContentUnchecked ::
@@ -1,24 +1,29 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLTextAreaElement (checkValidity, checkValidity_, setCustomValidity, select, setRangeText, setRangeText4, setSelectionRange, setAutofocus, getAutofocus, setCols, getCols, setDirName, getDirName,- setDisabled, getDisabled, getForm, getFormUnchecked, setMaxLength,- getMaxLength, setName, getName, setPlaceholder, getPlaceholder,- setReadOnly, getReadOnly, setRequired, getRequired, setRows,- getRows, setWrap, getWrap, getType, setDefaultValue,- getDefaultValue, getDefaultValueUnchecked, setValue, getValue,- getValueUnchecked, getTextLength, getWillValidate, getValidity,+ setDisabled, getDisabled, getForm, getFormUnsafe, getFormUnchecked,+ setMaxLength, getMaxLength, setName, getName, setPlaceholder,+ getPlaceholder, setReadOnly, getReadOnly, setRequired, getRequired,+ setRows, getRows, setWrap, getWrap, getType, setDefaultValue,+ getDefaultValue, getDefaultValueUnsafe, getDefaultValueUnchecked,+ setValue, getValue, getValueUnsafe, getValueUnchecked,+ getTextLength, getWillValidate, getValidity, getValidityUnsafe, getValidityUnchecked, getValidationMessage, getLabels,- getLabelsUnchecked, setSelectionStart, getSelectionStart,- setSelectionEnd, getSelectionEnd, setSelectionDirection,- getSelectionDirection, setAutocorrect, getAutocorrect,- setAutocapitalize, getAutocapitalize, getAutocapitalizeUnchecked,- HTMLTextAreaElement, castToHTMLTextAreaElement,- gTypeHTMLTextAreaElement)+ getLabelsUnsafe, getLabelsUnchecked, setSelectionStart,+ getSelectionStart, setSelectionEnd, getSelectionEnd,+ setSelectionDirection, getSelectionDirection, setAutocorrect,+ getAutocorrect, setAutocapitalize, getAutocapitalize,+ getAutocapitalizeUnsafe, getAutocapitalizeUnchecked,+ HTMLTextAreaElement(..), gTypeHTMLTextAreaElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -29,6 +34,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement.checkValidity Mozilla HTMLTextAreaElement.checkValidity documentation> checkValidity :: (MonadDOM m) => HTMLTextAreaElement -> m Bool@@ -126,6 +141,15 @@ getForm self = liftDOM ((self ^. js "form") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement.form Mozilla HTMLTextAreaElement.form documentation> +getFormUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLTextAreaElement -> m HTMLFormElement+getFormUnsafe self+ = liftDOM+ (((self ^. js "form") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement.form Mozilla HTMLTextAreaElement.form documentation> getFormUnchecked :: (MonadDOM m) => HTMLTextAreaElement -> m HTMLFormElement getFormUnchecked self@@ -224,6 +248,15 @@ = liftDOM ((self ^. js "defaultValue") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement.defaultValue Mozilla HTMLTextAreaElement.defaultValue documentation> +getDefaultValueUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLTextAreaElement -> m result+getDefaultValueUnsafe self+ = liftDOM+ (((self ^. js "defaultValue") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement.defaultValue Mozilla HTMLTextAreaElement.defaultValue documentation> getDefaultValueUnchecked :: (MonadDOM m, FromJSString result) => HTMLTextAreaElement -> m result@@ -244,6 +277,15 @@ = liftDOM ((self ^. js "value") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement.value Mozilla HTMLTextAreaElement.value documentation> +getValueUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLTextAreaElement -> m result+getValueUnsafe self+ = liftDOM+ (((self ^. js "value") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement.value Mozilla HTMLTextAreaElement.value documentation> getValueUnchecked :: (MonadDOM m, FromJSString result) => HTMLTextAreaElement -> m result@@ -266,6 +308,15 @@ getValidity self = liftDOM ((self ^. js "validity") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement.validity Mozilla HTMLTextAreaElement.validity documentation> +getValidityUnsafe ::+ (MonadDOM m, HasCallStack) =>+ HTMLTextAreaElement -> m ValidityState+getValidityUnsafe self+ = liftDOM+ (((self ^. js "validity") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement.validity Mozilla HTMLTextAreaElement.validity documentation> getValidityUnchecked :: (MonadDOM m) => HTMLTextAreaElement -> m ValidityState getValidityUnchecked self@@ -284,6 +335,14 @@ getLabels self = liftDOM ((self ^. js "labels") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement.labels Mozilla HTMLTextAreaElement.labels documentation> +getLabelsUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLTextAreaElement -> m NodeList+getLabelsUnsafe self+ = liftDOM+ (((self ^. js "labels") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement.labels Mozilla HTMLTextAreaElement.labels documentation> getLabelsUnchecked :: (MonadDOM m) => HTMLTextAreaElement -> m NodeList getLabelsUnchecked self@@ -350,6 +409,15 @@ HTMLTextAreaElement -> m (Maybe result) getAutocapitalize self = liftDOM ((self ^. js "autocapitalize") >>= fromMaybeJSString)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement.autocapitalize Mozilla HTMLTextAreaElement.autocapitalize documentation> +getAutocapitalizeUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLTextAreaElement -> m result+getAutocapitalizeUnsafe self+ = liftDOM+ (((self ^. js "autocapitalize") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement.autocapitalize Mozilla HTMLTextAreaElement.autocapitalize documentation> getAutocapitalizeUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLTitleElement- (setText, getText, getTextUnchecked, HTMLTitleElement,- castToHTMLTitleElement, gTypeHTMLTitleElement)+ (setText, getText, getTextUnsafe, getTextUnchecked,+ HTMLTitleElement(..), gTypeHTMLTitleElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTitleElement.text Mozilla HTMLTitleElement.text documentation> setText ::@@ -27,6 +41,15 @@ (MonadDOM m, FromJSString result) => HTMLTitleElement -> m (Maybe result) getText self = liftDOM ((self ^. js "text") >>= fromMaybeJSString)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTitleElement.text Mozilla HTMLTitleElement.text documentation> +getTextUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ HTMLTitleElement -> m result+getTextUnsafe self+ = liftDOM+ (((self ^. js "text") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTitleElement.text Mozilla HTMLTitleElement.text documentation> getTextUnchecked ::
@@ -1,13 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLTrackElement (pattern NONE, pattern LOADING, pattern LOADED, pattern ERROR, setKind, getKind, setSrc, getSrc, setSrclang, getSrclang, setLabel, getLabel, setDefault, getDefault, getReadyState, getTrack,- getTrackUnchecked, HTMLTrackElement, castToHTMLTrackElement,+ getTrackUnsafe, getTrackUnchecked, HTMLTrackElement(..), gTypeHTMLTrackElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern NONE = 0 pattern LOADING = 1 pattern LOADED = 2@@ -81,6 +95,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement.track Mozilla HTMLTrackElement.track documentation> getTrack :: (MonadDOM m) => HTMLTrackElement -> m (Maybe TextTrack) getTrack self = liftDOM ((self ^. js "track") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement.track Mozilla HTMLTrackElement.track documentation> +getTrackUnsafe ::+ (MonadDOM m, HasCallStack) => HTMLTrackElement -> m TextTrack+getTrackUnsafe self+ = liftDOM+ (((self ^. js "track") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement.track Mozilla HTMLTrackElement.track documentation> getTrackUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLUListElement- (setCompact, getCompact, setType, getType, HTMLUListElement,- castToHTMLUListElement, gTypeHTMLUListElement)+ (setCompact, getCompact, setType, getType, HTMLUListElement(..),+ gTypeHTMLUListElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLUListElement.compact Mozilla HTMLUListElement.compact documentation> setCompact :: (MonadDOM m) => HTMLUListElement -> Bool -> m ()
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HTMLVideoElement (webkitEnterFullscreen, webkitExitFullscreen,@@ -10,10 +13,11 @@ setWebkitWirelessVideoPlaybackDisabled, getWebkitWirelessVideoPlaybackDisabled, getWebkitDecodedFrameCount, getWebkitDroppedFrameCount, getWebkitPresentationMode,- webKitPresentationModeChanged, HTMLVideoElement,- castToHTMLVideoElement, gTypeHTMLVideoElement)+ webKitPresentationModeChanged, HTMLVideoElement(..),+ gTypeHTMLVideoElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -24,6 +28,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement.webkitEnterFullscreen Mozilla HTMLVideoElement.webkitEnterFullscreen documentation> webkitEnterFullscreen :: (MonadDOM m) => HTMLVideoElement -> m ()
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.HashChangeEvent- (initHashChangeEvent, getOldURL, getNewURL, HashChangeEvent,- castToHashChangeEvent, gTypeHashChangeEvent)+ (initHashChangeEvent, getOldURL, getNewURL, HashChangeEvent(..),+ gTypeHashChangeEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent.initHashChangeEvent Mozilla HashChangeEvent.initHashChangeEvent documentation> initHashChangeEvent ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.History (back, forward, go, pushState, replaceState, getLength, getState,- getStateUnchecked, History, castToHistory, gTypeHistory)+ getStateUnsafe, getStateUnchecked, History(..), gTypeHistory) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/History.back Mozilla History.back documentation> back :: (MonadDOM m) => History -> m ()@@ -58,6 +72,14 @@ getState :: (MonadDOM m) => History -> m (Maybe SerializedScriptValue) getState self = liftDOM ((self ^. js "state") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/History.state Mozilla History.state documentation> +getStateUnsafe ::+ (MonadDOM m, HasCallStack) => History -> m SerializedScriptValue+getStateUnsafe self+ = liftDOM+ (((self ^. js "state") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/History.state Mozilla History.state documentation> getStateUnchecked ::
@@ -1,12 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.IDBCursor- (update, update_, updateUnchecked, advance, continue, delete,- delete_, deleteUnchecked, getSource, getSourceUnchecked,- getDirection, getKey, getPrimaryKey, IDBCursor, castToIDBCursor,- gTypeIDBCursor, IsIDBCursor, toIDBCursor)+ (update, update_, updateUnsafe, updateUnchecked, advance, continue,+ delete, delete_, deleteUnsafe, deleteUnchecked, getSource,+ getSourceUnsafe, getSourceUnchecked, getDirection, getKey,+ getPrimaryKey, IDBCursor(..), gTypeIDBCursor, IsIDBCursor,+ toIDBCursor) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor.update Mozilla IDBCursor.update documentation> update ::@@ -34,6 +49,16 @@ (void ((toIDBCursor self) ^. jsf "update" [toJSVal value])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor.update Mozilla IDBCursor.update documentation> +updateUnsafe ::+ (MonadDOM m, IsIDBCursor self, HasCallStack) =>+ self -> JSVal -> m IDBRequest+updateUnsafe self value+ = liftDOM+ ((((toIDBCursor self) ^. jsf "update" [toJSVal value]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor.update Mozilla IDBCursor.update documentation> updateUnchecked :: (MonadDOM m, IsIDBCursor self) => self -> JSVal -> m IDBRequest updateUnchecked self value@@ -65,6 +90,15 @@ = liftDOM (void ((toIDBCursor self) ^. jsf "delete" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor.delete Mozilla IDBCursor.delete documentation> +deleteUnsafe ::+ (MonadDOM m, IsIDBCursor self, HasCallStack) =>+ self -> m IDBRequest+deleteUnsafe self+ = liftDOM+ ((((toIDBCursor self) ^. jsf "delete" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor.delete Mozilla IDBCursor.delete documentation> deleteUnchecked :: (MonadDOM m, IsIDBCursor self) => self -> m IDBRequest deleteUnchecked self@@ -76,6 +110,14 @@ (MonadDOM m, IsIDBCursor self) => self -> m (Maybe IDBAny) getSource self = liftDOM (((toIDBCursor self) ^. js "source") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor.source Mozilla IDBCursor.source documentation> +getSourceUnsafe ::+ (MonadDOM m, IsIDBCursor self, HasCallStack) => self -> m IDBAny+getSourceUnsafe self+ = liftDOM+ ((((toIDBCursor self) ^. js "source") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor.source Mozilla IDBCursor.source documentation> getSourceUnchecked ::
@@ -1,10 +1,12 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.IDBCursorWithValue- (getValue, IDBCursorWithValue, castToIDBCursorWithValue,- gTypeIDBCursorWithValue)- where+ (getValue, IDBCursorWithValue(..), gTypeIDBCursorWithValue) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +17,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBCursorWithValue.value Mozilla IDBCursorWithValue.value documentation> getValue :: (MonadDOM m) => IDBCursorWithValue -> m JSVal
@@ -1,14 +1,20 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.IDBDatabase- (createObjectStore, createObjectStore_, createObjectStoreUnchecked,- deleteObjectStore, transaction, transaction_, transactionUnchecked,- transaction', transaction'_, transaction'Unchecked, close, getName,- getVersion, getObjectStoreNames, getObjectStoreNamesUnchecked,- abort, error, versionChange, IDBDatabase, castToIDBDatabase,- gTypeIDBDatabase)+ (createObjectStore, createObjectStore_, createObjectStoreUnsafe,+ createObjectStoreUnchecked, deleteObjectStore, transaction,+ transaction_, transactionUnsafe, transactionUnchecked,+ transaction', transaction'_, transaction'Unsafe,+ transaction'Unchecked, close, getName, getVersion,+ getObjectStoreNames, getObjectStoreNamesUnsafe,+ getObjectStoreNamesUnchecked, abort, error, versionChange,+ IDBDatabase(..), gTypeIDBDatabase) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +25,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase.createObjectStore Mozilla IDBDatabase.createObjectStore documentation> createObjectStore ::@@ -39,6 +55,17 @@ (self ^. jsf "createObjectStore" [toJSVal name, toJSVal options])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase.createObjectStore Mozilla IDBDatabase.createObjectStore documentation> +createObjectStoreUnsafe ::+ (MonadDOM m, ToJSString name, IsDictionary options,+ HasCallStack) =>+ IDBDatabase -> name -> Maybe options -> m IDBObjectStore+createObjectStoreUnsafe self name options+ = liftDOM+ (((self ^. jsf "createObjectStore" [toJSVal name, toJSVal options])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase.createObjectStore Mozilla IDBDatabase.createObjectStore documentation> createObjectStoreUnchecked :: (MonadDOM m, ToJSString name, IsDictionary options) => IDBDatabase -> name -> Maybe options -> m IDBObjectStore@@ -72,6 +99,17 @@ (self ^. jsf "transaction" [toJSVal storeName, toJSVal mode])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase.transaction Mozilla IDBDatabase.transaction documentation> +transactionUnsafe ::+ (MonadDOM m, ToJSString storeName, ToJSString mode,+ HasCallStack) =>+ IDBDatabase -> storeName -> mode -> m IDBTransaction+transactionUnsafe self storeName mode+ = liftDOM+ (((self ^. jsf "transaction" [toJSVal storeName, toJSVal mode]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase.transaction Mozilla IDBDatabase.transaction documentation> transactionUnchecked :: (MonadDOM m, ToJSString storeName, ToJSString mode) => IDBDatabase -> storeName -> mode -> m IDBTransaction@@ -101,6 +139,18 @@ [toJSVal (array storeNames), toJSVal mode])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase.transaction Mozilla IDBDatabase.transaction documentation> +transaction'Unsafe ::+ (MonadDOM m, ToJSString storeNames, ToJSString mode,+ HasCallStack) =>+ IDBDatabase -> [storeNames] -> mode -> m IDBTransaction+transaction'Unsafe self storeNames mode+ = liftDOM+ (((self ^. jsf "transaction"+ [toJSVal (array storeNames), toJSVal mode])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase.transaction Mozilla IDBDatabase.transaction documentation> transaction'Unchecked :: (MonadDOM m, ToJSString storeNames, ToJSString mode) => IDBDatabase -> [storeNames] -> mode -> m IDBTransaction@@ -129,6 +179,14 @@ (MonadDOM m) => IDBDatabase -> m (Maybe DOMStringList) getObjectStoreNames self = liftDOM ((self ^. js "objectStoreNames") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase.objectStoreNames Mozilla IDBDatabase.objectStoreNames documentation> +getObjectStoreNamesUnsafe ::+ (MonadDOM m, HasCallStack) => IDBDatabase -> m DOMStringList+getObjectStoreNamesUnsafe self+ = liftDOM+ (((self ^. js "objectStoreNames") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase.objectStoreNames Mozilla IDBDatabase.objectStoreNames documentation> getObjectStoreNamesUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.IDBFactory- (open, open_, openUnchecked, deleteDatabase, deleteDatabase_,- deleteDatabaseUnchecked, cmp, cmp_, IDBFactory, castToIDBFactory,- gTypeIDBFactory)+ (open, open_, openUnsafe, openUnchecked, deleteDatabase,+ deleteDatabase_, deleteDatabaseUnsafe, deleteDatabaseUnchecked,+ cmp, cmp_, IDBFactory(..), gTypeIDBFactory) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory.open Mozilla IDBFactory.open documentation> open ::@@ -35,6 +49,16 @@ (void (self ^. jsf "open" [toJSVal name, toJSVal version])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory.open Mozilla IDBFactory.open documentation> +openUnsafe ::+ (MonadDOM m, ToJSString name, HasCallStack) =>+ IDBFactory -> name -> Word64 -> m IDBOpenDBRequest+openUnsafe self name version+ = liftDOM+ (((self ^. jsf "open" [toJSVal name, toJSVal version]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory.open Mozilla IDBFactory.open documentation> openUnchecked :: (MonadDOM m, ToJSString name) => IDBFactory -> name -> Word64 -> m IDBOpenDBRequest@@ -56,6 +80,15 @@ (MonadDOM m, ToJSString name) => IDBFactory -> name -> m () deleteDatabase_ self name = liftDOM (void (self ^. jsf "deleteDatabase" [toJSVal name]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory.deleteDatabase Mozilla IDBFactory.deleteDatabase documentation> +deleteDatabaseUnsafe ::+ (MonadDOM m, ToJSString name, HasCallStack) =>+ IDBFactory -> name -> m IDBOpenDBRequest+deleteDatabaseUnsafe self name+ = liftDOM+ (((self ^. jsf "deleteDatabase" [toJSVal name]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory.deleteDatabase Mozilla IDBFactory.deleteDatabase documentation> deleteDatabaseUnchecked ::
@@ -1,18 +1,27 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.IDBIndex- (openCursorRange, openCursorRange_, openCursorRangeUnchecked,- openCursor, openCursor_, openCursorUnchecked, openKeyCursorRange,- openKeyCursorRange_, openKeyCursorRangeUnchecked, openKeyCursor,- openKeyCursor_, openKeyCursorUnchecked, getRange, getRange_,- getRangeUnchecked, get, get_, getUnchecked, getKeyRange,- getKeyRange_, getKeyRangeUnchecked, getKey, getKey_,- getKeyUnchecked, countRange, countRange_, countRangeUnchecked,- count, count_, countUnchecked, getName, getObjectStore,- getObjectStoreUnchecked, getKeyPath, getKeyPathUnchecked,- getMultiEntry, getUnique, IDBIndex, castToIDBIndex, gTypeIDBIndex)+ (openCursorRange, openCursorRange_, openCursorRangeUnsafe,+ openCursorRangeUnchecked, openCursor, openCursor_,+ openCursorUnsafe, openCursorUnchecked, openKeyCursorRange,+ openKeyCursorRange_, openKeyCursorRangeUnsafe,+ openKeyCursorRangeUnchecked, openKeyCursor, openKeyCursor_,+ openKeyCursorUnsafe, openKeyCursorUnchecked, getRange, getRange_,+ getRangeUnsafe, getRangeUnchecked, get, get_, getUnsafe,+ getUnchecked, getKeyRange, getKeyRange_, getKeyRangeUnsafe,+ getKeyRangeUnchecked, getKey, getKey_, getKeyUnsafe,+ getKeyUnchecked, countRange, countRange_, countRangeUnsafe,+ countRangeUnchecked, count, count_, countUnsafe, countUnchecked,+ getName, getObjectStore, getObjectStoreUnsafe,+ getObjectStoreUnchecked, getKeyPath, getKeyPathUnsafe,+ getKeyPathUnchecked, getMultiEntry, getUnique, IDBIndex(..),+ gTypeIDBIndex) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -23,6 +32,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.openCursor Mozilla IDBIndex.openCursor documentation> openCursorRange ::@@ -43,6 +62,16 @@ (self ^. jsf "openCursor" [toJSVal range, toJSVal direction])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.openCursor Mozilla IDBIndex.openCursor documentation> +openCursorRangeUnsafe ::+ (MonadDOM m, ToJSString direction, HasCallStack) =>+ IDBIndex -> Maybe IDBKeyRange -> direction -> m IDBRequest+openCursorRangeUnsafe self range direction+ = liftDOM+ (((self ^. jsf "openCursor" [toJSVal range, toJSVal direction]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.openCursor Mozilla IDBIndex.openCursor documentation> openCursorRangeUnchecked :: (MonadDOM m, ToJSString direction) => IDBIndex -> Maybe IDBKeyRange -> direction -> m IDBRequest@@ -69,6 +98,16 @@ (void (self ^. jsf "openCursor" [toJSVal key, toJSVal direction])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.openCursor Mozilla IDBIndex.openCursor documentation> +openCursorUnsafe ::+ (MonadDOM m, ToJSString direction, HasCallStack) =>+ IDBIndex -> JSVal -> direction -> m IDBRequest+openCursorUnsafe self key direction+ = liftDOM+ (((self ^. jsf "openCursor" [toJSVal key, toJSVal direction]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.openCursor Mozilla IDBIndex.openCursor documentation> openCursorUnchecked :: (MonadDOM m, ToJSString direction) => IDBIndex -> JSVal -> direction -> m IDBRequest@@ -96,6 +135,16 @@ (self ^. jsf "openKeyCursor" [toJSVal range, toJSVal direction])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.openKeyCursor Mozilla IDBIndex.openKeyCursor documentation> +openKeyCursorRangeUnsafe ::+ (MonadDOM m, ToJSString direction, HasCallStack) =>+ IDBIndex -> Maybe IDBKeyRange -> direction -> m IDBRequest+openKeyCursorRangeUnsafe self range direction+ = liftDOM+ (((self ^. jsf "openKeyCursor" [toJSVal range, toJSVal direction])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.openKeyCursor Mozilla IDBIndex.openKeyCursor documentation> openKeyCursorRangeUnchecked :: (MonadDOM m, ToJSString direction) => IDBIndex -> Maybe IDBKeyRange -> direction -> m IDBRequest@@ -123,6 +172,16 @@ (self ^. jsf "openKeyCursor" [toJSVal key, toJSVal direction])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.openKeyCursor Mozilla IDBIndex.openKeyCursor documentation> +openKeyCursorUnsafe ::+ (MonadDOM m, ToJSString direction, HasCallStack) =>+ IDBIndex -> JSVal -> direction -> m IDBRequest+openKeyCursorUnsafe self key direction+ = liftDOM+ (((self ^. jsf "openKeyCursor" [toJSVal key, toJSVal direction])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.openKeyCursor Mozilla IDBIndex.openKeyCursor documentation> openKeyCursorUnchecked :: (MonadDOM m, ToJSString direction) => IDBIndex -> JSVal -> direction -> m IDBRequest@@ -144,6 +203,15 @@ = liftDOM (void (self ^. jsf "get" [toJSVal key])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.get Mozilla IDBIndex.get documentation> +getRangeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ IDBIndex -> Maybe IDBKeyRange -> m IDBRequest+getRangeUnsafe self key+ = liftDOM+ (((self ^. jsf "get" [toJSVal key]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.get Mozilla IDBIndex.get documentation> getRangeUnchecked :: (MonadDOM m) => IDBIndex -> Maybe IDBKeyRange -> m IDBRequest getRangeUnchecked self key@@ -160,6 +228,14 @@ get_ self key = liftDOM (void (self ^. jsf "get" [toJSVal key])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.get Mozilla IDBIndex.get documentation> +getUnsafe ::+ (MonadDOM m, HasCallStack) => IDBIndex -> JSVal -> m IDBRequest+getUnsafe self key+ = liftDOM+ (((self ^. jsf "get" [toJSVal key]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.get Mozilla IDBIndex.get documentation> getUnchecked :: (MonadDOM m) => IDBIndex -> JSVal -> m IDBRequest getUnchecked self key = liftDOM@@ -179,6 +255,15 @@ = liftDOM (void (self ^. jsf "getKey" [toJSVal key])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.getKey Mozilla IDBIndex.getKey documentation> +getKeyRangeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ IDBIndex -> Maybe IDBKeyRange -> m IDBRequest+getKeyRangeUnsafe self key+ = liftDOM+ (((self ^. jsf "getKey" [toJSVal key]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.getKey Mozilla IDBIndex.getKey documentation> getKeyRangeUnchecked :: (MonadDOM m) => IDBIndex -> Maybe IDBKeyRange -> m IDBRequest getKeyRangeUnchecked self key@@ -196,6 +281,14 @@ = liftDOM (void (self ^. jsf "getKey" [toJSVal key])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.getKey Mozilla IDBIndex.getKey documentation> +getKeyUnsafe ::+ (MonadDOM m, HasCallStack) => IDBIndex -> JSVal -> m IDBRequest+getKeyUnsafe self key+ = liftDOM+ (((self ^. jsf "getKey" [toJSVal key]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.getKey Mozilla IDBIndex.getKey documentation> getKeyUnchecked :: (MonadDOM m) => IDBIndex -> JSVal -> m IDBRequest getKeyUnchecked self key@@ -216,6 +309,15 @@ = liftDOM (void (self ^. jsf "count" [toJSVal range])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.count Mozilla IDBIndex.count documentation> +countRangeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ IDBIndex -> Maybe IDBKeyRange -> m IDBRequest+countRangeUnsafe self range+ = liftDOM+ (((self ^. jsf "count" [toJSVal range]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.count Mozilla IDBIndex.count documentation> countRangeUnchecked :: (MonadDOM m) => IDBIndex -> Maybe IDBKeyRange -> m IDBRequest countRangeUnchecked self range@@ -233,6 +335,14 @@ = liftDOM (void (self ^. jsf "count" [toJSVal key])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.count Mozilla IDBIndex.count documentation> +countUnsafe ::+ (MonadDOM m, HasCallStack) => IDBIndex -> JSVal -> m IDBRequest+countUnsafe self key+ = liftDOM+ (((self ^. jsf "count" [toJSVal key]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.count Mozilla IDBIndex.count documentation> countUnchecked :: (MonadDOM m) => IDBIndex -> JSVal -> m IDBRequest countUnchecked self key = liftDOM@@ -250,6 +360,14 @@ = liftDOM ((self ^. js "objectStore") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.objectStore Mozilla IDBIndex.objectStore documentation> +getObjectStoreUnsafe ::+ (MonadDOM m, HasCallStack) => IDBIndex -> m IDBObjectStore+getObjectStoreUnsafe self+ = liftDOM+ (((self ^. js "objectStore") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.objectStore Mozilla IDBIndex.objectStore documentation> getObjectStoreUnchecked :: (MonadDOM m) => IDBIndex -> m IDBObjectStore getObjectStoreUnchecked self@@ -258,6 +376,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.keyPath Mozilla IDBIndex.keyPath documentation> getKeyPath :: (MonadDOM m) => IDBIndex -> m (Maybe IDBAny) getKeyPath self = liftDOM ((self ^. js "keyPath") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.keyPath Mozilla IDBIndex.keyPath documentation> +getKeyPathUnsafe ::+ (MonadDOM m, HasCallStack) => IDBIndex -> m IDBAny+getKeyPathUnsafe self+ = liftDOM+ (((self ^. js "keyPath") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex.keyPath Mozilla IDBIndex.keyPath documentation> getKeyPathUnchecked :: (MonadDOM m) => IDBIndex -> m IDBAny
@@ -1,12 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.IDBKeyRange- (only, only_, onlyUnchecked, lowerBound, lowerBound_,- lowerBoundUnchecked, upperBound, upperBound_, upperBoundUnchecked,- bound, bound_, boundUnchecked, getLower, getUpper, getLowerOpen,- getUpperOpen, IDBKeyRange, castToIDBKeyRange, gTypeIDBKeyRange)+ (only, only_, onlyUnsafe, onlyUnchecked, lowerBound, lowerBound_,+ lowerBoundUnsafe, lowerBoundUnchecked, upperBound, upperBound_,+ upperBoundUnsafe, upperBoundUnchecked, bound, bound_, boundUnsafe,+ boundUnchecked, getLower, getUpper, getLowerOpen, getUpperOpen,+ IDBKeyRange(..), gTypeIDBKeyRange) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange.only Mozilla IDBKeyRange.only documentation> only ::@@ -30,6 +45,14 @@ = liftDOM (void (self ^. jsf "only" [toJSVal value])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange.only Mozilla IDBKeyRange.only documentation> +onlyUnsafe ::+ (MonadDOM m, HasCallStack) => IDBKeyRange -> JSVal -> m IDBKeyRange+onlyUnsafe self value+ = liftDOM+ (((self ^. jsf "only" [toJSVal value]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange.only Mozilla IDBKeyRange.only documentation> onlyUnchecked :: (MonadDOM m) => IDBKeyRange -> JSVal -> m IDBKeyRange onlyUnchecked self value@@ -52,6 +75,16 @@ (void (self ^. jsf "lowerBound" [toJSVal lower, toJSVal open])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange.lowerBound Mozilla IDBKeyRange.lowerBound documentation> +lowerBoundUnsafe ::+ (MonadDOM m, HasCallStack) =>+ IDBKeyRange -> JSVal -> Bool -> m IDBKeyRange+lowerBoundUnsafe self lower open+ = liftDOM+ (((self ^. jsf "lowerBound" [toJSVal lower, toJSVal open]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange.lowerBound Mozilla IDBKeyRange.lowerBound documentation> lowerBoundUnchecked :: (MonadDOM m) => IDBKeyRange -> JSVal -> Bool -> m IDBKeyRange lowerBoundUnchecked self lower open@@ -75,6 +108,16 @@ (void (self ^. jsf "upperBound" [toJSVal upper, toJSVal open])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange.upperBound Mozilla IDBKeyRange.upperBound documentation> +upperBoundUnsafe ::+ (MonadDOM m, HasCallStack) =>+ IDBKeyRange -> JSVal -> Bool -> m IDBKeyRange+upperBoundUnsafe self upper open+ = liftDOM+ (((self ^. jsf "upperBound" [toJSVal upper, toJSVal open]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange.upperBound Mozilla IDBKeyRange.upperBound documentation> upperBoundUnchecked :: (MonadDOM m) => IDBKeyRange -> JSVal -> Bool -> m IDBKeyRange upperBoundUnchecked self upper open@@ -104,6 +147,18 @@ (self ^. jsf "bound" [toJSVal lower, toJSVal upper, toJSVal lowerOpen, toJSVal upperOpen]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange.bound Mozilla IDBKeyRange.bound documentation> +boundUnsafe ::+ (MonadDOM m, HasCallStack) =>+ IDBKeyRange -> JSVal -> JSVal -> Bool -> Bool -> m IDBKeyRange+boundUnsafe self lower upper lowerOpen upperOpen+ = liftDOM+ (((self ^. jsf "bound"+ [toJSVal lower, toJSVal upper, toJSVal lowerOpen,+ toJSVal upperOpen])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange.bound Mozilla IDBKeyRange.bound documentation> boundUnchecked ::
@@ -1,21 +1,30 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.IDBObjectStore- (put, put_, putUnchecked, add, add_, addUnchecked, deleteRange,- deleteRange_, deleteRangeUnchecked, delete, delete_,- deleteUnchecked, getRange, getRange_, getRangeUnchecked, get, get_,- getUnchecked, clear, clear_, clearUnchecked, openCursorRange,- openCursorRange_, openCursorRangeUnchecked, openCursor,- openCursor_, openCursorUnchecked, createIndex', createIndex'_,+ (put, put_, putUnsafe, putUnchecked, add, add_, addUnsafe,+ addUnchecked, deleteRange, deleteRange_, deleteRangeUnsafe,+ deleteRangeUnchecked, delete, delete_, deleteUnsafe,+ deleteUnchecked, getRange, getRange_, getRangeUnsafe,+ getRangeUnchecked, get, get_, getUnsafe, getUnchecked, clear,+ clear_, clearUnsafe, clearUnchecked, openCursorRange,+ openCursorRange_, openCursorRangeUnsafe, openCursorRangeUnchecked,+ openCursor, openCursor_, openCursorUnsafe, openCursorUnchecked,+ createIndex', createIndex'_, createIndex'Unsafe, createIndex'Unchecked, createIndex, createIndex_,- createIndexUnchecked, index, index_, indexUnchecked, deleteIndex,- countRange, countRange_, countRangeUnchecked, count, count_,- countUnchecked, getName, getNameUnchecked, getKeyPath,- getKeyPathUnchecked, getIndexNames, getIndexNamesUnchecked,- getTransaction, getTransactionUnchecked, getAutoIncrement,- IDBObjectStore, castToIDBObjectStore, gTypeIDBObjectStore)+ createIndexUnsafe, createIndexUnchecked, index, index_,+ indexUnsafe, indexUnchecked, deleteIndex, countRange, countRange_,+ countRangeUnsafe, countRangeUnchecked, count, count_, countUnsafe,+ countUnchecked, getName, getNameUnsafe, getNameUnchecked,+ getKeyPath, getKeyPathUnsafe, getKeyPathUnchecked, getIndexNames,+ getIndexNamesUnsafe, getIndexNamesUnchecked, getTransaction,+ getTransactionUnsafe, getTransactionUnchecked, getAutoIncrement,+ IDBObjectStore(..), gTypeIDBObjectStore) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -26,6 +35,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.put Mozilla IDBObjectStore.put documentation> put ::@@ -41,6 +60,15 @@ = liftDOM (void (self ^. jsf "put" [toJSVal value, toJSVal key])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.put Mozilla IDBObjectStore.put documentation> +putUnsafe ::+ (MonadDOM m, HasCallStack) =>+ IDBObjectStore -> JSVal -> JSVal -> m IDBRequest+putUnsafe self value key+ = liftDOM+ (((self ^. jsf "put" [toJSVal value, toJSVal key]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.put Mozilla IDBObjectStore.put documentation> putUnchecked :: (MonadDOM m) => IDBObjectStore -> JSVal -> JSVal -> m IDBRequest putUnchecked self value key@@ -62,6 +90,15 @@ = liftDOM (void (self ^. jsf "add" [toJSVal value, toJSVal key])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.add Mozilla IDBObjectStore.add documentation> +addUnsafe ::+ (MonadDOM m, HasCallStack) =>+ IDBObjectStore -> JSVal -> JSVal -> m IDBRequest+addUnsafe self value key+ = liftDOM+ (((self ^. jsf "add" [toJSVal value, toJSVal key]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.add Mozilla IDBObjectStore.add documentation> addUnchecked :: (MonadDOM m) => IDBObjectStore -> JSVal -> JSVal -> m IDBRequest addUnchecked self value key@@ -83,6 +120,15 @@ = liftDOM (void (self ^. jsf "delete" [toJSVal keyRange])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.delete Mozilla IDBObjectStore.delete documentation> +deleteRangeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ IDBObjectStore -> Maybe IDBKeyRange -> m IDBRequest+deleteRangeUnsafe self keyRange+ = liftDOM+ (((self ^. jsf "delete" [toJSVal keyRange]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.delete Mozilla IDBObjectStore.delete documentation> deleteRangeUnchecked :: (MonadDOM m) => IDBObjectStore -> Maybe IDBKeyRange -> m IDBRequest deleteRangeUnchecked self keyRange@@ -101,6 +147,15 @@ = liftDOM (void (self ^. jsf "delete" [toJSVal key])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.delete Mozilla IDBObjectStore.delete documentation> +deleteUnsafe ::+ (MonadDOM m, HasCallStack) =>+ IDBObjectStore -> JSVal -> m IDBRequest+deleteUnsafe self key+ = liftDOM+ (((self ^. jsf "delete" [toJSVal key]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.delete Mozilla IDBObjectStore.delete documentation> deleteUnchecked :: (MonadDOM m) => IDBObjectStore -> JSVal -> m IDBRequest deleteUnchecked self key@@ -121,6 +176,15 @@ = liftDOM (void (self ^. jsf "get" [toJSVal key])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.get Mozilla IDBObjectStore.get documentation> +getRangeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ IDBObjectStore -> Maybe IDBKeyRange -> m IDBRequest+getRangeUnsafe self key+ = liftDOM+ (((self ^. jsf "get" [toJSVal key]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.get Mozilla IDBObjectStore.get documentation> getRangeUnchecked :: (MonadDOM m) => IDBObjectStore -> Maybe IDBKeyRange -> m IDBRequest getRangeUnchecked self key@@ -138,6 +202,15 @@ get_ self key = liftDOM (void (self ^. jsf "get" [toJSVal key])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.get Mozilla IDBObjectStore.get documentation> +getUnsafe ::+ (MonadDOM m, HasCallStack) =>+ IDBObjectStore -> JSVal -> m IDBRequest+getUnsafe self key+ = liftDOM+ (((self ^. jsf "get" [toJSVal key]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.get Mozilla IDBObjectStore.get documentation> getUnchecked :: (MonadDOM m) => IDBObjectStore -> JSVal -> m IDBRequest getUnchecked self key@@ -153,6 +226,14 @@ clear_ self = liftDOM (void (self ^. jsf "clear" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.clear Mozilla IDBObjectStore.clear documentation> +clearUnsafe ::+ (MonadDOM m, HasCallStack) => IDBObjectStore -> m IDBRequest+clearUnsafe self+ = liftDOM+ (((self ^. jsf "clear" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.clear Mozilla IDBObjectStore.clear documentation> clearUnchecked :: (MonadDOM m) => IDBObjectStore -> m IDBRequest clearUnchecked self = liftDOM ((self ^. jsf "clear" ()) >>= fromJSValUnchecked)@@ -177,6 +258,16 @@ (self ^. jsf "openCursor" [toJSVal range, toJSVal direction])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.openCursor Mozilla IDBObjectStore.openCursor documentation> +openCursorRangeUnsafe ::+ (MonadDOM m, ToJSString direction, HasCallStack) =>+ IDBObjectStore -> Maybe IDBKeyRange -> direction -> m IDBRequest+openCursorRangeUnsafe self range direction+ = liftDOM+ (((self ^. jsf "openCursor" [toJSVal range, toJSVal direction]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.openCursor Mozilla IDBObjectStore.openCursor documentation> openCursorRangeUnchecked :: (MonadDOM m, ToJSString direction) => IDBObjectStore -> Maybe IDBKeyRange -> direction -> m IDBRequest@@ -203,6 +294,16 @@ (void (self ^. jsf "openCursor" [toJSVal key, toJSVal direction])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.openCursor Mozilla IDBObjectStore.openCursor documentation> +openCursorUnsafe ::+ (MonadDOM m, ToJSString direction, HasCallStack) =>+ IDBObjectStore -> JSVal -> direction -> m IDBRequest+openCursorUnsafe self key direction+ = liftDOM+ (((self ^. jsf "openCursor" [toJSVal key, toJSVal direction]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.openCursor Mozilla IDBObjectStore.openCursor documentation> openCursorUnchecked :: (MonadDOM m, ToJSString direction) => IDBObjectStore -> JSVal -> direction -> m IDBRequest@@ -235,6 +336,18 @@ [toJSVal name, toJSVal (array keyPath), toJSVal options])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.createIndex Mozilla IDBObjectStore.createIndex documentation> +createIndex'Unsafe ::+ (MonadDOM m, ToJSString name, ToJSString keyPath,+ IsDictionary options, HasCallStack) =>+ IDBObjectStore -> name -> [keyPath] -> Maybe options -> m IDBIndex+createIndex'Unsafe self name keyPath options+ = liftDOM+ (((self ^. jsf "createIndex"+ [toJSVal name, toJSVal (array keyPath), toJSVal options])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.createIndex Mozilla IDBObjectStore.createIndex documentation> createIndex'Unchecked :: (MonadDOM m, ToJSString name, ToJSString keyPath, IsDictionary options) =>@@ -269,6 +382,18 @@ [toJSVal name, toJSVal keyPath, toJSVal options])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.createIndex Mozilla IDBObjectStore.createIndex documentation> +createIndexUnsafe ::+ (MonadDOM m, ToJSString name, ToJSString keyPath,+ IsDictionary options, HasCallStack) =>+ IDBObjectStore -> name -> keyPath -> Maybe options -> m IDBIndex+createIndexUnsafe self name keyPath options+ = liftDOM+ (((self ^. jsf "createIndex"+ [toJSVal name, toJSVal keyPath, toJSVal options])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.createIndex Mozilla IDBObjectStore.createIndex documentation> createIndexUnchecked :: (MonadDOM m, ToJSString name, ToJSString keyPath, IsDictionary options) =>@@ -293,6 +418,15 @@ = liftDOM (void (self ^. jsf "index" [toJSVal name])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.index Mozilla IDBObjectStore.index documentation> +indexUnsafe ::+ (MonadDOM m, ToJSString name, HasCallStack) =>+ IDBObjectStore -> name -> m IDBIndex+indexUnsafe self name+ = liftDOM+ (((self ^. jsf "index" [toJSVal name]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.index Mozilla IDBObjectStore.index documentation> indexUnchecked :: (MonadDOM m, ToJSString name) => IDBObjectStore -> name -> m IDBIndex@@ -320,6 +454,15 @@ = liftDOM (void (self ^. jsf "count" [toJSVal range])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.count Mozilla IDBObjectStore.count documentation> +countRangeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ IDBObjectStore -> Maybe IDBKeyRange -> m IDBRequest+countRangeUnsafe self range+ = liftDOM+ (((self ^. jsf "count" [toJSVal range]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.count Mozilla IDBObjectStore.count documentation> countRangeUnchecked :: (MonadDOM m) => IDBObjectStore -> Maybe IDBKeyRange -> m IDBRequest countRangeUnchecked self range@@ -338,6 +481,15 @@ = liftDOM (void (self ^. jsf "count" [toJSVal key])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.count Mozilla IDBObjectStore.count documentation> +countUnsafe ::+ (MonadDOM m, HasCallStack) =>+ IDBObjectStore -> JSVal -> m IDBRequest+countUnsafe self key+ = liftDOM+ (((self ^. jsf "count" [toJSVal key]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.count Mozilla IDBObjectStore.count documentation> countUnchecked :: (MonadDOM m) => IDBObjectStore -> JSVal -> m IDBRequest countUnchecked self key@@ -351,6 +503,15 @@ getName self = liftDOM ((self ^. js "name") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.name Mozilla IDBObjectStore.name documentation> +getNameUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ IDBObjectStore -> m result+getNameUnsafe self+ = liftDOM+ (((self ^. js "name") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.name Mozilla IDBObjectStore.name documentation> getNameUnchecked :: (MonadDOM m, FromJSString result) => IDBObjectStore -> m result getNameUnchecked self@@ -361,6 +522,14 @@ getKeyPath self = liftDOM ((self ^. js "keyPath") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.keyPath Mozilla IDBObjectStore.keyPath documentation> +getKeyPathUnsafe ::+ (MonadDOM m, HasCallStack) => IDBObjectStore -> m IDBAny+getKeyPathUnsafe self+ = liftDOM+ (((self ^. js "keyPath") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.keyPath Mozilla IDBObjectStore.keyPath documentation> getKeyPathUnchecked :: (MonadDOM m) => IDBObjectStore -> m IDBAny getKeyPathUnchecked self = liftDOM ((self ^. js "keyPath") >>= fromJSValUnchecked)@@ -372,6 +541,14 @@ = liftDOM ((self ^. js "indexNames") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.indexNames Mozilla IDBObjectStore.indexNames documentation> +getIndexNamesUnsafe ::+ (MonadDOM m, HasCallStack) => IDBObjectStore -> m DOMStringList+getIndexNamesUnsafe self+ = liftDOM+ (((self ^. js "indexNames") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.indexNames Mozilla IDBObjectStore.indexNames documentation> getIndexNamesUnchecked :: (MonadDOM m) => IDBObjectStore -> m DOMStringList getIndexNamesUnchecked self@@ -382,6 +559,14 @@ (MonadDOM m) => IDBObjectStore -> m (Maybe IDBTransaction) getTransaction self = liftDOM ((self ^. js "transaction") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.transaction Mozilla IDBObjectStore.transaction documentation> +getTransactionUnsafe ::+ (MonadDOM m, HasCallStack) => IDBObjectStore -> m IDBTransaction+getTransactionUnsafe self+ = liftDOM+ (((self ^. js "transaction") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore.transaction Mozilla IDBObjectStore.transaction documentation> getTransactionUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.IDBOpenDBRequest- (blocked, upgradeNeeded, IDBOpenDBRequest, castToIDBOpenDBRequest,+ (blocked, upgradeNeeded, IDBOpenDBRequest(..), gTypeIDBOpenDBRequest) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBOpenDBRequest.onblocked Mozilla IDBOpenDBRequest.onblocked documentation> blocked :: EventName IDBOpenDBRequest IDBVersionChangeEvent
@@ -1,12 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.IDBRequest- (getResult, getResultUnchecked, getError, getErrorUnchecked,- getSource, getSourceUnchecked, getTransaction,- getTransactionUnchecked, getReadyState, success, error, IDBRequest,- castToIDBRequest, gTypeIDBRequest, IsIDBRequest, toIDBRequest)+ (getResult, getResultUnsafe, getResultUnchecked, getError,+ getErrorUnsafe, getErrorUnchecked, getSource, getSourceUnsafe,+ getSourceUnchecked, getTransaction, getTransactionUnsafe,+ getTransactionUnchecked, getReadyState, success, error,+ IDBRequest(..), gTypeIDBRequest, IsIDBRequest, toIDBRequest) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest.result Mozilla IDBRequest.result documentation> getResult ::@@ -25,6 +40,14 @@ = liftDOM (((toIDBRequest self) ^. js "result") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest.result Mozilla IDBRequest.result documentation> +getResultUnsafe ::+ (MonadDOM m, IsIDBRequest self, HasCallStack) => self -> m IDBAny+getResultUnsafe self+ = liftDOM+ ((((toIDBRequest self) ^. js "result") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest.result Mozilla IDBRequest.result documentation> getResultUnchecked :: (MonadDOM m, IsIDBRequest self) => self -> m IDBAny getResultUnchecked self@@ -38,6 +61,14 @@ = liftDOM (((toIDBRequest self) ^. js "error") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest.error Mozilla IDBRequest.error documentation> +getErrorUnsafe ::+ (MonadDOM m, IsIDBRequest self, HasCallStack) => self -> m DOMError+getErrorUnsafe self+ = liftDOM+ ((((toIDBRequest self) ^. js "error") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest.error Mozilla IDBRequest.error documentation> getErrorUnchecked :: (MonadDOM m, IsIDBRequest self) => self -> m DOMError getErrorUnchecked self@@ -51,6 +82,14 @@ = liftDOM (((toIDBRequest self) ^. js "source") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest.source Mozilla IDBRequest.source documentation> +getSourceUnsafe ::+ (MonadDOM m, IsIDBRequest self, HasCallStack) => self -> m IDBAny+getSourceUnsafe self+ = liftDOM+ ((((toIDBRequest self) ^. js "source") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest.source Mozilla IDBRequest.source documentation> getSourceUnchecked :: (MonadDOM m, IsIDBRequest self) => self -> m IDBAny getSourceUnchecked self@@ -62,6 +101,15 @@ (MonadDOM m, IsIDBRequest self) => self -> m (Maybe IDBTransaction) getTransaction self = liftDOM (((toIDBRequest self) ^. js "transaction") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest.transaction Mozilla IDBRequest.transaction documentation> +getTransactionUnsafe ::+ (MonadDOM m, IsIDBRequest self, HasCallStack) =>+ self -> m IDBTransaction+getTransactionUnsafe self+ = liftDOM+ ((((toIDBRequest self) ^. js "transaction") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest.transaction Mozilla IDBRequest.transaction documentation> getTransactionUnchecked ::
@@ -1,12 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.IDBTransaction- (objectStore, objectStore_, objectStoreUnchecked, abort, getMode,- getDb, getDbUnchecked, getError, getErrorUnchecked, abortEvent,- complete, error, IDBTransaction, castToIDBTransaction,+ (objectStore, objectStore_, objectStoreUnsafe,+ objectStoreUnchecked, abort, getMode, getDb, getDbUnsafe,+ getDbUnchecked, getError, getErrorUnsafe, getErrorUnchecked,+ abortEvent, complete, error, IDBTransaction(..), gTypeIDBTransaction) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction.objectStore Mozilla IDBTransaction.objectStore documentation> objectStore ::@@ -33,6 +48,15 @@ = liftDOM (void (self ^. jsf "objectStore" [toJSVal name])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction.objectStore Mozilla IDBTransaction.objectStore documentation> +objectStoreUnsafe ::+ (MonadDOM m, ToJSString name, HasCallStack) =>+ IDBTransaction -> name -> m IDBObjectStore+objectStoreUnsafe self name+ = liftDOM+ (((self ^. jsf "objectStore" [toJSVal name]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction.objectStore Mozilla IDBTransaction.objectStore documentation> objectStoreUnchecked :: (MonadDOM m, ToJSString name) => IDBTransaction -> name -> m IDBObjectStore@@ -54,6 +78,14 @@ getDb self = liftDOM ((self ^. js "db") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction.db Mozilla IDBTransaction.db documentation> +getDbUnsafe ::+ (MonadDOM m, HasCallStack) => IDBTransaction -> m IDBDatabase+getDbUnsafe self+ = liftDOM+ (((self ^. js "db") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction.db Mozilla IDBTransaction.db documentation> getDbUnchecked :: (MonadDOM m) => IDBTransaction -> m IDBDatabase getDbUnchecked self = liftDOM ((self ^. js "db") >>= fromJSValUnchecked)@@ -61,6 +93,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction.error Mozilla IDBTransaction.error documentation> getError :: (MonadDOM m) => IDBTransaction -> m (Maybe DOMError) getError self = liftDOM ((self ^. js "error") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction.error Mozilla IDBTransaction.error documentation> +getErrorUnsafe ::+ (MonadDOM m, HasCallStack) => IDBTransaction -> m DOMError+getErrorUnsafe self+ = liftDOM+ (((self ^. js "error") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction.error Mozilla IDBTransaction.error documentation> getErrorUnchecked :: (MonadDOM m) => IDBTransaction -> m DOMError
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.IDBVersionChangeEvent- (getOldVersion, getNewVersion, getNewVersionUnchecked,- IDBVersionChangeEvent, castToIDBVersionChangeEvent,+ (getOldVersion, getNewVersion, getNewVersionUnsafe,+ getNewVersionUnchecked, IDBVersionChangeEvent(..), gTypeIDBVersionChangeEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBVersionChangeEvent.oldVersion Mozilla IDBVersionChangeEvent.oldVersion documentation> getOldVersion :: (MonadDOM m) => IDBVersionChangeEvent -> m Word64@@ -27,6 +41,14 @@ (MonadDOM m) => IDBVersionChangeEvent -> m (Maybe Word64) getNewVersion self = liftDOM ((self ^. js "newVersion") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBVersionChangeEvent.newVersion Mozilla IDBVersionChangeEvent.newVersion documentation> +getNewVersionUnsafe ::+ (MonadDOM m, HasCallStack) => IDBVersionChangeEvent -> m Word64+getNewVersionUnsafe self+ = liftDOM+ (((self ^. js "newVersion") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/IDBVersionChangeEvent.newVersion Mozilla IDBVersionChangeEvent.newVersion documentation> getNewVersionUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.ImageData- (newImageData, newImageData', getWidth, getHeight, ImageData,- castToImageData, gTypeImageData)+ (newImageData, newImageData', getWidth, getHeight, ImageData(..),+ gTypeImageData) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/ImageData Mozilla ImageData documentation> newImageData ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.InspectorFrontendHost (loaded, closeWindow, bringToFront, setZoomFactor,@@ -9,10 +12,11 @@ append, close, platform, platform_, port, port_, showContextMenu, dispatchEventAsContextMenuEvent, sendMessageToBackend, unbufferedLog, isUnderTest, isUnderTest_, beep, canInspectWorkers,- canInspectWorkers_, canSaveAs, canSaveAs_, InspectorFrontendHost,- castToInspectorFrontendHost, gTypeInspectorFrontendHost)+ canInspectWorkers_, canSaveAs, canSaveAs_,+ InspectorFrontendHost(..), gTypeInspectorFrontendHost) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -23,6 +27,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/InspectorFrontendHost.loaded Mozilla InspectorFrontendHost.loaded documentation> loaded :: (MonadDOM m) => InspectorFrontendHost -> m ()
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.InternalSettings (setTouchEventEmulationEnabled, setStandardFontFamily,@@ -19,9 +22,10 @@ setAutoscrollForDragAndDropEnabled, setBackgroundShouldExtendBeyondPage, setScrollingTreeIncludesFrames, setMinimumTimerInterval,- InternalSettings, castToInternalSettings, gTypeInternalSettings)+ InternalSettings(..), gTypeInternalSettings) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -32,6 +36,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/InternalSettings.setTouchEventEmulationEnabled Mozilla InternalSettings.setTouchEventEmulationEnabled documentation> setTouchEventEmulationEnabled ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Internals (address, address_, nodeNeedsStyleRecalc, nodeNeedsStyleRecalc_,@@ -11,15 +14,18 @@ clearPageCache, pageCacheSize, pageCacheSize_, computedStyleIncludingVisitedInfo, computedStyleIncludingVisitedInfo_,+ computedStyleIncludingVisitedInfoUnsafe, computedStyleIncludingVisitedInfoUnchecked, ensureShadowRoot,- ensureShadowRoot_, ensureShadowRootUnchecked, createShadowRoot,- createShadowRoot_, createShadowRootUnchecked, shadowRoot,- shadowRoot_, shadowRootUnchecked, shadowRootType, shadowRootType_,- includerFor, includerFor_, includerForUnchecked, shadowPseudoId,- shadowPseudoId_, setShadowPseudoId, treeScopeRootNode,- treeScopeRootNode_, treeScopeRootNodeUnchecked, parentTreeScope,- parentTreeScope_, parentTreeScopeUnchecked,- lastSpatialNavigationCandidateCount,+ ensureShadowRoot_, ensureShadowRootUnsafe,+ ensureShadowRootUnchecked, createShadowRoot, createShadowRoot_,+ createShadowRootUnsafe, createShadowRootUnchecked, shadowRoot,+ shadowRoot_, shadowRootUnsafe, shadowRootUnchecked, shadowRootType,+ shadowRootType_, includerFor, includerFor_, includerForUnsafe,+ includerForUnchecked, shadowPseudoId, shadowPseudoId_,+ setShadowPseudoId, treeScopeRootNode, treeScopeRootNode_,+ treeScopeRootNodeUnsafe, treeScopeRootNodeUnchecked,+ parentTreeScope, parentTreeScope_, parentTreeScopeUnsafe,+ parentTreeScopeUnchecked, lastSpatialNavigationCandidateCount, lastSpatialNavigationCandidateCount_, numberOfActiveAnimations, numberOfActiveAnimations_, suspendAnimations, resumeAnimations, animationsAreSuspended, animationsAreSuspended_,@@ -33,26 +39,29 @@ formControlStateOfPreviousHistoryItem, formControlStateOfPreviousHistoryItem_, setFormControlStateOfPreviousHistoryItem, absoluteCaretBounds,- absoluteCaretBounds_, absoluteCaretBoundsUnchecked, boundingBox,- boundingBox_, boundingBoxUnchecked, inspectorHighlightRects,- inspectorHighlightRects_, inspectorHighlightRectsUnchecked,- inspectorHighlightObject, inspectorHighlightObject_,- markerCountForNode, markerCountForNode_, markerRangeForNode,- markerRangeForNode_, markerRangeForNodeUnchecked,- markerDescriptionForNode, markerDescriptionForNode_,- addTextMatchMarker, setMarkedTextMatchesAreHighlighted,- invalidateFontCache, setScrollViewPosition, setPagination,- configurationForViewport, configurationForViewport_,- wasLastChangeUserEdit, wasLastChangeUserEdit_,- elementShouldAutoComplete, elementShouldAutoComplete_,- setEditingValue, setAutofilled, countMatchesForText,- countMatchesForText_, paintControlTints, scrollElementToRect,- rangeFromLocationAndLength, rangeFromLocationAndLength_,+ absoluteCaretBounds_, absoluteCaretBoundsUnsafe,+ absoluteCaretBoundsUnchecked, boundingBox, boundingBox_,+ boundingBoxUnsafe, boundingBoxUnchecked, inspectorHighlightRects,+ inspectorHighlightRects_, inspectorHighlightRectsUnsafe,+ inspectorHighlightRectsUnchecked, inspectorHighlightObject,+ inspectorHighlightObject_, markerCountForNode, markerCountForNode_,+ markerRangeForNode, markerRangeForNode_, markerRangeForNodeUnsafe,+ markerRangeForNodeUnchecked, markerDescriptionForNode,+ markerDescriptionForNode_, addTextMatchMarker,+ setMarkedTextMatchesAreHighlighted, invalidateFontCache,+ setScrollViewPosition, setPagination, configurationForViewport,+ configurationForViewport_, wasLastChangeUserEdit,+ wasLastChangeUserEdit_, elementShouldAutoComplete,+ elementShouldAutoComplete_, setEditingValue, setAutofilled,+ countMatchesForText, countMatchesForText_, paintControlTints,+ scrollElementToRect, rangeFromLocationAndLength,+ rangeFromLocationAndLength_, rangeFromLocationAndLengthUnsafe, rangeFromLocationAndLengthUnchecked, locationFromRange, locationFromRange_, lengthFromRange, lengthFromRange_, rangeAsText,- rangeAsText_, subrange, subrange_, subrangeUnchecked,- rangeForDictionaryLookupAtLocation,+ rangeAsText_, subrange, subrange_, subrangeUnsafe,+ subrangeUnchecked, rangeForDictionaryLookupAtLocation, rangeForDictionaryLookupAtLocation_,+ rangeForDictionaryLookupAtLocationUnsafe, rangeForDictionaryLookupAtLocationUnchecked, setDelegatesScrolling, lastSpellCheckRequestSequence, lastSpellCheckRequestSequence_, lastSpellCheckProcessedSequence, lastSpellCheckProcessedSequence_,@@ -60,8 +69,8 @@ setUserPreferredLanguages, wheelEventHandlerCount, wheelEventHandlerCount_, touchEventHandlerCount, touchEventHandlerCount_, nodesFromRect, nodesFromRect_,- nodesFromRectUnchecked, parserMetaData, parserMetaData_,- updateEditorUINowIfScheduled, hasSpellingMarker,+ nodesFromRectUnsafe, nodesFromRectUnchecked, parserMetaData,+ parserMetaData_, updateEditorUINowIfScheduled, hasSpellingMarker, hasSpellingMarker_, hasGrammarMarker, hasGrammarMarker_, hasAutocorrectedMarker, hasAutocorrectedMarker_, setContinuousSpellCheckingEnabled,@@ -76,14 +85,15 @@ layerTreeAsText_, scrollingStateTreeAsText, scrollingStateTreeAsText_, mainThreadScrollingReasons, mainThreadScrollingReasons_, nonFastScrollableRects,- nonFastScrollableRects_, nonFastScrollableRectsUnchecked,- repaintRectsAsText, repaintRectsAsText_,- garbageCollectDocumentResources, allowRoundingHacks,- insertAuthorCSS, insertUserCSS, setBatteryStatus,- setDeviceProximity, numberOfLiveNodes, numberOfLiveNodes_,- numberOfLiveDocuments, numberOfLiveDocuments_,+ nonFastScrollableRects_, nonFastScrollableRectsUnsafe,+ nonFastScrollableRectsUnchecked, repaintRectsAsText,+ repaintRectsAsText_, garbageCollectDocumentResources,+ allowRoundingHacks, insertAuthorCSS, insertUserCSS,+ setBatteryStatus, setDeviceProximity, numberOfLiveNodes,+ numberOfLiveNodes_, numberOfLiveDocuments, numberOfLiveDocuments_, consoleMessageArgumentCounts, consoleMessageArgumentCounts_, openDummyInspectorFrontend, openDummyInspectorFrontend_,+ openDummyInspectorFrontendUnsafe, openDummyInspectorFrontendUnchecked, closeDummyInspectorFrontend, setJavaScriptProfilingEnabled, setInspectorIsUnderTest, counterValue, counterValue_, pageNumber, pageNumber_,@@ -98,35 +108,38 @@ webkitDidExitFullScreenForElement, setApplicationCacheOriginQuota, registerURLSchemeAsBypassingContentSecurityPolicy, removeURLSchemeRegisteredAsBypassingContentSecurityPolicy,- mallocStatistics, mallocStatistics_, mallocStatisticsUnchecked,- typeConversions, typeConversions_, typeConversionsUnchecked,- memoryInfo, memoryInfo_, memoryInfoUnchecked,+ mallocStatistics, mallocStatistics_, mallocStatisticsUnsafe,+ mallocStatisticsUnchecked, typeConversions, typeConversions_,+ typeConversionsUnsafe, typeConversionsUnchecked, memoryInfo,+ memoryInfo_, memoryInfoUnsafe, memoryInfoUnchecked, getReferencedFilePaths, getReferencedFilePaths_, startTrackingRepaints, stopTrackingRepaints, isTimerThrottled, isTimerThrottled_, updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks, getCurrentCursorInfo, getCurrentCursorInfo_, markerTextForListItem, markerTextForListItem_, toolTipFromElement, toolTipFromElement_,- deserializeBuffer, deserializeBuffer_, deserializeBufferUnchecked,- serializeObject, serializeObject_, serializeObjectUnchecked,+ deserializeBuffer, deserializeBuffer_, deserializeBufferUnsafe,+ deserializeBufferUnchecked, serializeObject, serializeObject_,+ serializeObjectUnsafe, serializeObjectUnchecked, setUsesOverlayScrollbars, forceReload, simulateAudioInterruption, mediaElementHasCharacteristic, mediaElementHasCharacteristic_, initializeMockCDM, enableMockSpeechSynthesizer, getImageSourceURL, getImageSourceURL_, captionsStyleSheetOverride, captionsStyleSheetOverride_, setCaptionsStyleSheetOverride, setPrimaryAudioTrackLanguageOverride, setCaptionDisplayMode,- createTimeRanges, createTimeRanges_, createTimeRangesUnchecked,- closestTimeToTimeRanges, closestTimeToTimeRanges_,- isSelectPopupVisible, isSelectPopupVisible_, isVibrating,- isVibrating_, isPluginUnavailabilityIndicatorObscured,+ createTimeRanges, createTimeRanges_, createTimeRangesUnsafe,+ createTimeRangesUnchecked, closestTimeToTimeRanges,+ closestTimeToTimeRanges_, isSelectPopupVisible,+ isSelectPopupVisible_, isVibrating, isVibrating_,+ isPluginUnavailabilityIndicatorObscured, isPluginUnavailabilityIndicatorObscured_, isPluginSnapshotted, isPluginSnapshotted_, selectionBounds, selectionBounds_,- selectionBoundsUnchecked, initializeMockMediaSource,- bufferedSamplesForTrackID, bufferedSamplesForTrackID_,- beginMediaSessionInterruption, endMediaSessionInterruption,- applicationWillEnterForeground, applicationWillEnterBackground,- setMediaSessionRestrictions, postRemoteControlCommand,- simulateSystemSleep, simulateSystemWake,+ selectionBoundsUnsafe, selectionBoundsUnchecked,+ initializeMockMediaSource, bufferedSamplesForTrackID,+ bufferedSamplesForTrackID_, beginMediaSessionInterruption,+ endMediaSessionInterruption, applicationWillEnterForeground,+ applicationWillEnterBackground, setMediaSessionRestrictions,+ postRemoteControlCommand, simulateSystemSleep, simulateSystemWake, elementIsBlockingDisplaySleep, elementIsBlockingDisplaySleep_, installMockPageOverlay, pageOverlayLayerTreeAsText, pageOverlayLayerTreeAsText_, setPageMuted, isPagePlayingAudio,@@ -135,10 +148,11 @@ pattern LAYER_TREE_INCLUDES_REPAINT_RECTS, pattern LAYER_TREE_INCLUDES_PAINTING_PHASES, pattern LAYER_TREE_INCLUDES_CONTENT_LAYERS, getSettings,- getSettingsUnchecked, getWorkerThreadCount, getConsoleProfiles,- Internals, castToInternals, gTypeInternals)+ getSettingsUnsafe, getSettingsUnchecked, getWorkerThreadCount,+ getConsoleProfiles, Internals(..), gTypeInternals) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -149,6 +163,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.address Mozilla Internals.address documentation> address ::@@ -323,6 +347,16 @@ (self ^. jsf "computedStyleIncludingVisitedInfo" [toJSVal node])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.computedStyleIncludingVisitedInfo Mozilla Internals.computedStyleIncludingVisitedInfo documentation> +computedStyleIncludingVisitedInfoUnsafe ::+ (MonadDOM m, IsNode node, HasCallStack) =>+ Internals -> Maybe node -> m CSSStyleDeclaration+computedStyleIncludingVisitedInfoUnsafe self node+ = liftDOM+ (((self ^. jsf "computedStyleIncludingVisitedInfo" [toJSVal node])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.computedStyleIncludingVisitedInfo Mozilla Internals.computedStyleIncludingVisitedInfo documentation> computedStyleIncludingVisitedInfoUnchecked :: (MonadDOM m, IsNode node) => Internals -> Maybe node -> m CSSStyleDeclaration@@ -346,6 +380,15 @@ = liftDOM (void (self ^. jsf "ensureShadowRoot" [toJSVal host])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.ensureShadowRoot Mozilla Internals.ensureShadowRoot documentation> +ensureShadowRootUnsafe ::+ (MonadDOM m, IsElement host, HasCallStack) =>+ Internals -> Maybe host -> m Node+ensureShadowRootUnsafe self host+ = liftDOM+ (((self ^. jsf "ensureShadowRoot" [toJSVal host]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.ensureShadowRoot Mozilla Internals.ensureShadowRoot documentation> ensureShadowRootUnchecked :: (MonadDOM m, IsElement host) => Internals -> Maybe host -> m Node ensureShadowRootUnchecked self host@@ -368,6 +411,15 @@ = liftDOM (void (self ^. jsf "createShadowRoot" [toJSVal host])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.createShadowRoot Mozilla Internals.createShadowRoot documentation> +createShadowRootUnsafe ::+ (MonadDOM m, IsElement host, HasCallStack) =>+ Internals -> Maybe host -> m Node+createShadowRootUnsafe self host+ = liftDOM+ (((self ^. jsf "createShadowRoot" [toJSVal host]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.createShadowRoot Mozilla Internals.createShadowRoot documentation> createShadowRootUnchecked :: (MonadDOM m, IsElement host) => Internals -> Maybe host -> m Node createShadowRootUnchecked self host@@ -389,6 +441,15 @@ = liftDOM (void (self ^. jsf "shadowRoot" [toJSVal host])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.shadowRoot Mozilla Internals.shadowRoot documentation> +shadowRootUnsafe ::+ (MonadDOM m, IsElement host, HasCallStack) =>+ Internals -> Maybe host -> m Node+shadowRootUnsafe self host+ = liftDOM+ (((self ^. jsf "shadowRoot" [toJSVal host]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.shadowRoot Mozilla Internals.shadowRoot documentation> shadowRootUnchecked :: (MonadDOM m, IsElement host) => Internals -> Maybe host -> m Node shadowRootUnchecked self host@@ -425,6 +486,15 @@ = liftDOM (void (self ^. jsf "includerFor" [toJSVal node])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.includerFor Mozilla Internals.includerFor documentation> +includerForUnsafe ::+ (MonadDOM m, IsNode node, HasCallStack) =>+ Internals -> Maybe node -> m Element+includerForUnsafe self node+ = liftDOM+ (((self ^. jsf "includerFor" [toJSVal node]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.includerFor Mozilla Internals.includerFor documentation> includerForUnchecked :: (MonadDOM m, IsNode node) => Internals -> Maybe node -> m Element includerForUnchecked self node@@ -471,6 +541,15 @@ = liftDOM (void (self ^. jsf "treeScopeRootNode" [toJSVal node])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.treeScopeRootNode Mozilla Internals.treeScopeRootNode documentation> +treeScopeRootNodeUnsafe ::+ (MonadDOM m, IsNode node, HasCallStack) =>+ Internals -> Maybe node -> m Node+treeScopeRootNodeUnsafe self node+ = liftDOM+ (((self ^. jsf "treeScopeRootNode" [toJSVal node]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.treeScopeRootNode Mozilla Internals.treeScopeRootNode documentation> treeScopeRootNodeUnchecked :: (MonadDOM m, IsNode node) => Internals -> Maybe node -> m Node treeScopeRootNodeUnchecked self node@@ -493,6 +572,15 @@ = liftDOM (void (self ^. jsf "parentTreeScope" [toJSVal node])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.parentTreeScope Mozilla Internals.parentTreeScope documentation> +parentTreeScopeUnsafe ::+ (MonadDOM m, IsNode node, HasCallStack) =>+ Internals -> Maybe node -> m Node+parentTreeScopeUnsafe self node+ = liftDOM+ (((self ^. jsf "parentTreeScope" [toJSVal node]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.parentTreeScope Mozilla Internals.parentTreeScope documentation> parentTreeScopeUnchecked :: (MonadDOM m, IsNode node) => Internals -> Maybe node -> m Node parentTreeScopeUnchecked self node@@ -722,6 +810,14 @@ = liftDOM (void (self ^. jsf "absoluteCaretBounds" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.absoluteCaretBounds Mozilla Internals.absoluteCaretBounds documentation> +absoluteCaretBoundsUnsafe ::+ (MonadDOM m, HasCallStack) => Internals -> m ClientRect+absoluteCaretBoundsUnsafe self+ = liftDOM+ (((self ^. jsf "absoluteCaretBounds" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.absoluteCaretBounds Mozilla Internals.absoluteCaretBounds documentation> absoluteCaretBoundsUnchecked :: (MonadDOM m) => Internals -> m ClientRect absoluteCaretBoundsUnchecked self@@ -744,6 +840,15 @@ = liftDOM (void (self ^. jsf "boundingBox" [toJSVal element])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.boundingBox Mozilla Internals.boundingBox documentation> +boundingBoxUnsafe ::+ (MonadDOM m, IsElement element, HasCallStack) =>+ Internals -> Maybe element -> m ClientRect+boundingBoxUnsafe self element+ = liftDOM+ (((self ^. jsf "boundingBox" [toJSVal element]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.boundingBox Mozilla Internals.boundingBox documentation> boundingBoxUnchecked :: (MonadDOM m, IsElement element) => Internals -> Maybe element -> m ClientRect@@ -765,6 +870,14 @@ = liftDOM (void (self ^. jsf "inspectorHighlightRects" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.inspectorHighlightRects Mozilla Internals.inspectorHighlightRects documentation> +inspectorHighlightRectsUnsafe ::+ (MonadDOM m, HasCallStack) => Internals -> m ClientRectList+inspectorHighlightRectsUnsafe self+ = liftDOM+ (((self ^. jsf "inspectorHighlightRects" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.inspectorHighlightRects Mozilla Internals.inspectorHighlightRects documentation> inspectorHighlightRectsUnchecked :: (MonadDOM m) => Internals -> m ClientRectList inspectorHighlightRectsUnchecked self@@ -826,6 +939,17 @@ [toJSVal node, toJSVal markerType, toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.markerRangeForNode Mozilla Internals.markerRangeForNode documentation> +markerRangeForNodeUnsafe ::+ (MonadDOM m, IsNode node, ToJSString markerType, HasCallStack) =>+ Internals -> Maybe node -> markerType -> Word -> m Range+markerRangeForNodeUnsafe self node markerType index+ = liftDOM+ (((self ^. jsf "markerRangeForNode"+ [toJSVal node, toJSVal markerType, toJSVal index])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.markerRangeForNode Mozilla Internals.markerRangeForNode documentation> markerRangeForNodeUnchecked :: (MonadDOM m, IsNode node, ToJSString markerType) => Internals -> Maybe node -> markerType -> Word -> m Range@@ -1033,6 +1157,18 @@ [toJSVal scope, toJSVal rangeLocation, toJSVal rangeLength])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.rangeFromLocationAndLength Mozilla Internals.rangeFromLocationAndLength documentation> +rangeFromLocationAndLengthUnsafe ::+ (MonadDOM m, IsElement scope, HasCallStack) =>+ Internals -> Maybe scope -> Int -> Int -> m Range+rangeFromLocationAndLengthUnsafe self scope rangeLocation+ rangeLength+ = liftDOM+ (((self ^. jsf "rangeFromLocationAndLength"+ [toJSVal scope, toJSVal rangeLocation, toJSVal rangeLength])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.rangeFromLocationAndLength Mozilla Internals.rangeFromLocationAndLength documentation> rangeFromLocationAndLengthUnchecked :: (MonadDOM m, IsElement scope) => Internals -> Maybe scope -> Int -> Int -> m Range@@ -1115,6 +1251,17 @@ [toJSVal range, toJSVal rangeLocation, toJSVal rangeLength])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.subrange Mozilla Internals.subrange documentation> +subrangeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ Internals -> Maybe Range -> Int -> Int -> m Range+subrangeUnsafe self range rangeLocation rangeLength+ = liftDOM+ (((self ^. jsf "subrange"+ [toJSVal range, toJSVal rangeLocation, toJSVal rangeLength])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.subrange Mozilla Internals.subrange documentation> subrangeUnchecked :: (MonadDOM m) => Internals -> Maybe Range -> Int -> Int -> m Range subrangeUnchecked self range rangeLocation rangeLength@@ -1142,6 +1289,17 @@ [toJSVal x, toJSVal y])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.rangeForDictionaryLookupAtLocation Mozilla Internals.rangeForDictionaryLookupAtLocation documentation> +rangeForDictionaryLookupAtLocationUnsafe ::+ (MonadDOM m, HasCallStack) =>+ Internals -> Int -> Int -> m Range+rangeForDictionaryLookupAtLocationUnsafe self x y+ = liftDOM+ (((self ^. jsf "rangeForDictionaryLookupAtLocation"+ [toJSVal x, toJSVal y])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.rangeForDictionaryLookupAtLocation Mozilla Internals.rangeForDictionaryLookupAtLocation documentation> rangeForDictionaryLookupAtLocationUnchecked :: (MonadDOM m) => Internals -> Int -> Int -> m Range rangeForDictionaryLookupAtLocationUnchecked self x y@@ -1269,6 +1427,26 @@ toJSVal allowChildFrameContent])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.nodesFromRect Mozilla Internals.nodesFromRect documentation> +nodesFromRectUnsafe ::+ (MonadDOM m, IsDocument document, HasCallStack) =>+ Internals ->+ Maybe document ->+ Int ->+ Int ->+ Word -> Word -> Word -> Word -> Bool -> Bool -> Bool -> m NodeList+nodesFromRectUnsafe self document x y topPadding rightPadding+ bottomPadding leftPadding ignoreClipping allowShadowContent+ allowChildFrameContent+ = liftDOM+ (((self ^. jsf "nodesFromRect"+ [toJSVal document, toJSVal x, toJSVal y, toJSVal topPadding,+ toJSVal rightPadding, toJSVal bottomPadding, toJSVal leftPadding,+ toJSVal ignoreClipping, toJSVal allowShadowContent,+ toJSVal allowChildFrameContent])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.nodesFromRect Mozilla Internals.nodesFromRect documentation> nodesFromRectUnchecked :: (MonadDOM m, IsDocument document) => Internals ->@@ -1504,6 +1682,14 @@ = liftDOM (void (self ^. jsf "nonFastScrollableRects" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.nonFastScrollableRects Mozilla Internals.nonFastScrollableRects documentation> +nonFastScrollableRectsUnsafe ::+ (MonadDOM m, HasCallStack) => Internals -> m ClientRectList+nonFastScrollableRectsUnsafe self+ = liftDOM+ (((self ^. jsf "nonFastScrollableRects" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.nonFastScrollableRects Mozilla Internals.nonFastScrollableRects documentation> nonFastScrollableRectsUnchecked :: (MonadDOM m) => Internals -> m ClientRectList nonFastScrollableRectsUnchecked self@@ -1621,6 +1807,16 @@ (void (self ^. jsf "openDummyInspectorFrontend" [toJSVal url])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.openDummyInspectorFrontend Mozilla Internals.openDummyInspectorFrontend documentation> +openDummyInspectorFrontendUnsafe ::+ (MonadDOM m, ToJSString url, HasCallStack) =>+ Internals -> url -> m Window+openDummyInspectorFrontendUnsafe self url+ = liftDOM+ (((self ^. jsf "openDummyInspectorFrontend" [toJSVal url]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.openDummyInspectorFrontend Mozilla Internals.openDummyInspectorFrontend documentation> openDummyInspectorFrontendUnchecked :: (MonadDOM m, ToJSString url) => Internals -> url -> m Window openDummyInspectorFrontendUnchecked self url@@ -1887,6 +2083,14 @@ = liftDOM (void (self ^. jsf "mallocStatistics" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.mallocStatistics Mozilla Internals.mallocStatistics documentation> +mallocStatisticsUnsafe ::+ (MonadDOM m, HasCallStack) => Internals -> m MallocStatistics+mallocStatisticsUnsafe self+ = liftDOM+ (((self ^. jsf "mallocStatistics" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.mallocStatistics Mozilla Internals.mallocStatistics documentation> mallocStatisticsUnchecked :: (MonadDOM m) => Internals -> m MallocStatistics mallocStatisticsUnchecked self@@ -1905,6 +2109,14 @@ = liftDOM (void (self ^. jsf "typeConversions" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.typeConversions Mozilla Internals.typeConversions documentation> +typeConversionsUnsafe ::+ (MonadDOM m, HasCallStack) => Internals -> m TypeConversions+typeConversionsUnsafe self+ = liftDOM+ (((self ^. jsf "typeConversions" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.typeConversions Mozilla Internals.typeConversions documentation> typeConversionsUnchecked :: (MonadDOM m) => Internals -> m TypeConversions typeConversionsUnchecked self@@ -1921,6 +2133,14 @@ memoryInfo_ self = liftDOM (void (self ^. jsf "memoryInfo" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.memoryInfo Mozilla Internals.memoryInfo documentation> +memoryInfoUnsafe ::+ (MonadDOM m, HasCallStack) => Internals -> m MemoryInfo+memoryInfoUnsafe self+ = liftDOM+ (((self ^. jsf "memoryInfo" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.memoryInfo Mozilla Internals.memoryInfo documentation> memoryInfoUnchecked :: (MonadDOM m) => Internals -> m MemoryInfo memoryInfoUnchecked self = liftDOM ((self ^. jsf "memoryInfo" ()) >>= fromJSValUnchecked)@@ -2034,6 +2254,15 @@ = liftDOM (void (self ^. jsf "deserializeBuffer" [toJSVal buffer])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.deserializeBuffer Mozilla Internals.deserializeBuffer documentation> +deserializeBufferUnsafe ::+ (MonadDOM m, IsArrayBuffer buffer, HasCallStack) =>+ Internals -> Maybe buffer -> m SerializedScriptValue+deserializeBufferUnsafe self buffer+ = liftDOM+ (((self ^. jsf "deserializeBuffer" [toJSVal buffer]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.deserializeBuffer Mozilla Internals.deserializeBuffer documentation> deserializeBufferUnchecked :: (MonadDOM m, IsArrayBuffer buffer) => Internals -> Maybe buffer -> m SerializedScriptValue@@ -2058,6 +2287,15 @@ = liftDOM (void (self ^. jsf "serializeObject" [toJSVal obj])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.serializeObject Mozilla Internals.serializeObject documentation> +serializeObjectUnsafe ::+ (MonadDOM m, IsSerializedScriptValue obj, HasCallStack) =>+ Internals -> Maybe obj -> m ArrayBuffer+serializeObjectUnsafe self obj+ = liftDOM+ (((self ^. jsf "serializeObject" [toJSVal obj]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.serializeObject Mozilla Internals.serializeObject documentation> serializeObjectUnchecked :: (MonadDOM m, IsSerializedScriptValue obj) => Internals -> Maybe obj -> m ArrayBuffer@@ -2192,6 +2430,18 @@ [toJSVal startTimes, toJSVal endTimes])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.createTimeRanges Mozilla Internals.createTimeRanges documentation> +createTimeRangesUnsafe ::+ (MonadDOM m, IsFloat32Array startTimes, IsFloat32Array endTimes,+ HasCallStack) =>+ Internals -> Maybe startTimes -> Maybe endTimes -> m TimeRanges+createTimeRangesUnsafe self startTimes endTimes+ = liftDOM+ (((self ^. jsf "createTimeRanges"+ [toJSVal startTimes, toJSVal endTimes])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.createTimeRanges Mozilla Internals.createTimeRanges documentation> createTimeRangesUnchecked :: (MonadDOM m, IsFloat32Array startTimes, IsFloat32Array endTimes) => Internals -> Maybe startTimes -> Maybe endTimes -> m TimeRanges@@ -2291,6 +2541,14 @@ = liftDOM (void (self ^. jsf "selectionBounds" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.selectionBounds Mozilla Internals.selectionBounds documentation> +selectionBoundsUnsafe ::+ (MonadDOM m, HasCallStack) => Internals -> m ClientRect+selectionBoundsUnsafe self+ = liftDOM+ (((self ^. jsf "selectionBounds" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.selectionBounds Mozilla Internals.selectionBounds documentation> selectionBoundsUnchecked :: (MonadDOM m) => Internals -> m ClientRect selectionBoundsUnchecked self@@ -2433,6 +2691,14 @@ getSettings :: (MonadDOM m) => Internals -> m (Maybe InternalSettings) getSettings self = liftDOM ((self ^. js "settings") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.settings Mozilla Internals.settings documentation> +getSettingsUnsafe ::+ (MonadDOM m, HasCallStack) => Internals -> m InternalSettings+getSettingsUnsafe self+ = liftDOM+ (((self ^. js "settings") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Internals.settings Mozilla Internals.settings documentation> getSettingsUnchecked ::
@@ -1,14 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.KeyboardEvent (initKeyboardEvent, pattern DOM_KEY_LOCATION_STANDARD, pattern DOM_KEY_LOCATION_LEFT, pattern DOM_KEY_LOCATION_RIGHT, pattern DOM_KEY_LOCATION_NUMPAD, getKeyIdentifier, getLocation, getKeyLocation, getCtrlKey, getShiftKey, getAltKey, getMetaKey,- getAltGraphKey, KeyboardEvent, castToKeyboardEvent,- gTypeKeyboardEvent)+ getAltGraphKey, KeyboardEvent(..), gTypeKeyboardEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent.initKeyboardEvent Mozilla KeyboardEvent.initKeyboardEvent documentation> initKeyboardEvent ::
@@ -1,14 +1,18 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Location (assign, replace, reload, toString, toString_, setHref, getHref, setProtocol, getProtocol, setHost, getHost, setHostname, getHostname, setPort, getPort, setPathname, getPathname, setSearch, getSearch, setHash, getHash, getOrigin, getAncestorOrigins,- getAncestorOriginsUnchecked, Location, castToLocation,- gTypeLocation)+ getAncestorOriginsUnsafe, getAncestorOriginsUnchecked,+ Location(..), gTypeLocation) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +23,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Location.assign Mozilla Location.assign documentation> assign :: (MonadDOM m, ToJSString url) => Location -> url -> m ()@@ -138,6 +152,14 @@ (MonadDOM m) => Location -> m (Maybe DOMStringList) getAncestorOrigins self = liftDOM ((self ^. js "ancestorOrigins") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Location.ancestorOrigins Mozilla Location.ancestorOrigins documentation> +getAncestorOriginsUnsafe ::+ (MonadDOM m, HasCallStack) => Location -> m DOMStringList+getAncestorOriginsUnsafe self+ = liftDOM+ (((self ^. js "ancestorOrigins") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Location.ancestorOrigins Mozilla Location.ancestorOrigins documentation> getAncestorOriginsUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MallocStatistics (getReservedVMBytes, getCommittedVMBytes, getFreeListBytes,- MallocStatistics, castToMallocStatistics, gTypeMallocStatistics)+ MallocStatistics(..), gTypeMallocStatistics) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MallocStatistics.reservedVMBytes Mozilla MallocStatistics.reservedVMBytes documentation> getReservedVMBytes :: (MonadDOM m) => MallocStatistics -> m Word
@@ -1,15 +1,20 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaController (newMediaController, play, pause, unpause, getBuffered,- getBufferedUnchecked, getSeekable, getSeekableUnchecked,- getDuration, setCurrentTime, getCurrentTime, getPaused, getPlayed,- getPlayedUnchecked, getPlaybackState, setDefaultPlaybackRate,- getDefaultPlaybackRate, setPlaybackRate, getPlaybackRate,- setVolume, getVolume, setMuted, getMuted, MediaController,- castToMediaController, gTypeMediaController)+ getBufferedUnsafe, getBufferedUnchecked, getSeekable,+ getSeekableUnsafe, getSeekableUnchecked, getDuration,+ setCurrentTime, getCurrentTime, getPaused, getPlayed,+ getPlayedUnsafe, getPlayedUnchecked, getPlaybackState,+ setDefaultPlaybackRate, getDefaultPlaybackRate, setPlaybackRate,+ getPlaybackRate, setVolume, getVolume, setMuted, getMuted,+ MediaController(..), gTypeMediaController) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -20,6 +25,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaController Mozilla MediaController documentation> newMediaController :: (MonadDOM m) => m MediaController@@ -44,6 +59,14 @@ getBuffered self = liftDOM ((self ^. js "buffered") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaController.buffered Mozilla MediaController.buffered documentation> +getBufferedUnsafe ::+ (MonadDOM m, HasCallStack) => MediaController -> m TimeRanges+getBufferedUnsafe self+ = liftDOM+ (((self ^. js "buffered") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaController.buffered Mozilla MediaController.buffered documentation> getBufferedUnchecked :: (MonadDOM m) => MediaController -> m TimeRanges getBufferedUnchecked self@@ -55,6 +78,14 @@ getSeekable self = liftDOM ((self ^. js "seekable") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaController.seekable Mozilla MediaController.seekable documentation> +getSeekableUnsafe ::+ (MonadDOM m, HasCallStack) => MediaController -> m TimeRanges+getSeekableUnsafe self+ = liftDOM+ (((self ^. js "seekable") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaController.seekable Mozilla MediaController.seekable documentation> getSeekableUnchecked :: (MonadDOM m) => MediaController -> m TimeRanges getSeekableUnchecked self@@ -83,6 +114,14 @@ getPlayed :: (MonadDOM m) => MediaController -> m (Maybe TimeRanges) getPlayed self = liftDOM ((self ^. js "played") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaController.played Mozilla MediaController.played documentation> +getPlayedUnsafe ::+ (MonadDOM m, HasCallStack) => MediaController -> m TimeRanges+getPlayedUnsafe self+ = liftDOM+ (((self ^. js "played") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaController.played Mozilla MediaController.played documentation> getPlayedUnchecked ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaControlsHost (sortedTrackListForMenu, sortedTrackListForMenu_,@@ -8,16 +11,19 @@ setSelectedTextTrack, updateTextTrackContainer, enteredFullscreen, exitedFullscreen, enterFullscreenOptimized, mediaUIImageData, mediaUIImageData_, getCaptionMenuOffItem,- getCaptionMenuOffItemUnchecked, getCaptionMenuAutomaticItem,+ getCaptionMenuOffItemUnsafe, getCaptionMenuOffItemUnchecked,+ getCaptionMenuAutomaticItem, getCaptionMenuAutomaticItemUnsafe, getCaptionMenuAutomaticItemUnchecked, getCaptionDisplayMode,- getTextTrackContainer, getTextTrackContainerUnchecked,- getMediaPlaybackAllowsInline, getSupportsFullscreen,- getUserGestureRequired, getExternalDeviceDisplayName,- getExternalDeviceType, setControlsDependOnPageScaleFactor,- getControlsDependOnPageScaleFactor, MediaControlsHost,- castToMediaControlsHost, gTypeMediaControlsHost)+ getTextTrackContainer, getTextTrackContainerUnsafe,+ getTextTrackContainerUnchecked, getMediaPlaybackAllowsInline,+ getSupportsFullscreen, getUserGestureRequired,+ getExternalDeviceDisplayName, getExternalDeviceType,+ setControlsDependOnPageScaleFactor,+ getControlsDependOnPageScaleFactor, MediaControlsHost(..),+ gTypeMediaControlsHost) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -28,6 +34,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaControlsHost.sortedTrackListForMenu Mozilla MediaControlsHost.sortedTrackListForMenu documentation> sortedTrackListForMenu ::@@ -144,6 +160,14 @@ = liftDOM ((self ^. js "captionMenuOffItem") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaControlsHost.captionMenuOffItem Mozilla MediaControlsHost.captionMenuOffItem documentation> +getCaptionMenuOffItemUnsafe ::+ (MonadDOM m, HasCallStack) => MediaControlsHost -> m TextTrack+getCaptionMenuOffItemUnsafe self+ = liftDOM+ (((self ^. js "captionMenuOffItem") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaControlsHost.captionMenuOffItem Mozilla MediaControlsHost.captionMenuOffItem documentation> getCaptionMenuOffItemUnchecked :: (MonadDOM m) => MediaControlsHost -> m TextTrack getCaptionMenuOffItemUnchecked self@@ -157,6 +181,14 @@ = liftDOM ((self ^. js "captionMenuAutomaticItem") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaControlsHost.captionMenuAutomaticItem Mozilla MediaControlsHost.captionMenuAutomaticItem documentation> +getCaptionMenuAutomaticItemUnsafe ::+ (MonadDOM m, HasCallStack) => MediaControlsHost -> m TextTrack+getCaptionMenuAutomaticItemUnsafe self+ = liftDOM+ (((self ^. js "captionMenuAutomaticItem") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaControlsHost.captionMenuAutomaticItem Mozilla MediaControlsHost.captionMenuAutomaticItem documentation> getCaptionMenuAutomaticItemUnchecked :: (MonadDOM m) => MediaControlsHost -> m TextTrack getCaptionMenuAutomaticItemUnchecked self@@ -175,6 +207,14 @@ (MonadDOM m) => MediaControlsHost -> m (Maybe HTMLElement) getTextTrackContainer self = liftDOM ((self ^. js "textTrackContainer") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaControlsHost.textTrackContainer Mozilla MediaControlsHost.textTrackContainer documentation> +getTextTrackContainerUnsafe ::+ (MonadDOM m, HasCallStack) => MediaControlsHost -> m HTMLElement+getTextTrackContainerUnsafe self+ = liftDOM+ (((self ^. js "textTrackContainer") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaControlsHost.textTrackContainer Mozilla MediaControlsHost.textTrackContainer documentation> getTextTrackContainerUnchecked ::
@@ -1,11 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaElementAudioSourceNode- (getMediaElement, getMediaElementUnchecked,- MediaElementAudioSourceNode, castToMediaElementAudioSourceNode,- gTypeMediaElementAudioSourceNode)+ (getMediaElement, getMediaElementUnsafe, getMediaElementUnchecked,+ MediaElementAudioSourceNode(..), gTypeMediaElementAudioSourceNode) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaElementAudioSourceNode.mediaElement Mozilla MediaElementAudioSourceNode.mediaElement documentation> getMediaElement ::@@ -23,6 +36,15 @@ MediaElementAudioSourceNode -> m (Maybe HTMLMediaElement) getMediaElement self = liftDOM ((self ^. js "mediaElement") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaElementAudioSourceNode.mediaElement Mozilla MediaElementAudioSourceNode.mediaElement documentation> +getMediaElementUnsafe ::+ (MonadDOM m, HasCallStack) =>+ MediaElementAudioSourceNode -> m HTMLMediaElement+getMediaElementUnsafe self+ = liftDOM+ (((self ^. js "mediaElement") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaElementAudioSourceNode.mediaElement Mozilla MediaElementAudioSourceNode.mediaElement documentation> getMediaElementUnchecked ::
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaError (pattern MEDIA_ERR_ABORTED, pattern MEDIA_ERR_NETWORK, pattern MEDIA_ERR_DECODE, pattern MEDIA_ERR_SRC_NOT_SUPPORTED,- pattern MEDIA_ERR_ENCRYPTED, getCode, MediaError, castToMediaError,+ pattern MEDIA_ERR_ENCRYPTED, getCode, MediaError(..), gTypeMediaError) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern MEDIA_ERR_ABORTED = 1 pattern MEDIA_ERR_NETWORK = 2 pattern MEDIA_ERR_DECODE = 3
@@ -1,13 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaKeyError (pattern MEDIA_KEYERR_UNKNOWN, pattern MEDIA_KEYERR_CLIENT, pattern MEDIA_KEYERR_SERVICE, pattern MEDIA_KEYERR_OUTPUT, pattern MEDIA_KEYERR_HARDWARECHANGE, pattern MEDIA_KEYERR_DOMAIN,- getCode, getSystemCode, MediaKeyError, castToMediaKeyError,- gTypeMediaKeyError)+ getCode, getSystemCode, MediaKeyError(..), gTypeMediaKeyError) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern MEDIA_KEYERR_UNKNOWN = 1 pattern MEDIA_KEYERR_CLIENT = 2 pattern MEDIA_KEYERR_SERVICE = 3
@@ -1,12 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaKeyEvent- (getKeySystem, getSessionId, getInitData, getInitDataUnchecked,- getMessage, getMessageUnchecked, getDefaultURL, getErrorCode,- getErrorCodeUnchecked, getSystemCode, MediaKeyEvent,- castToMediaKeyEvent, gTypeMediaKeyEvent)+ (getKeySystem, getSessionId, getInitData, getInitDataUnsafe,+ getInitDataUnchecked, getMessage, getMessageUnsafe,+ getMessageUnchecked, getDefaultURL, getErrorCode,+ getErrorCodeUnsafe, getErrorCodeUnchecked, getSystemCode,+ MediaKeyEvent(..), gTypeMediaKeyEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyEvent.keySystem Mozilla MediaKeyEvent.keySystem documentation> getKeySystem ::@@ -36,6 +51,14 @@ getInitData self = liftDOM ((self ^. js "initData") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyEvent.initData Mozilla MediaKeyEvent.initData documentation> +getInitDataUnsafe ::+ (MonadDOM m, HasCallStack) => MediaKeyEvent -> m Uint8Array+getInitDataUnsafe self+ = liftDOM+ (((self ^. js "initData") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyEvent.initData Mozilla MediaKeyEvent.initData documentation> getInitDataUnchecked :: (MonadDOM m) => MediaKeyEvent -> m Uint8Array getInitDataUnchecked self@@ -46,6 +69,14 @@ getMessage self = liftDOM ((self ^. js "message") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyEvent.message Mozilla MediaKeyEvent.message documentation> +getMessageUnsafe ::+ (MonadDOM m, HasCallStack) => MediaKeyEvent -> m Uint8Array+getMessageUnsafe self+ = liftDOM+ (((self ^. js "message") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyEvent.message Mozilla MediaKeyEvent.message documentation> getMessageUnchecked :: (MonadDOM m) => MediaKeyEvent -> m Uint8Array getMessageUnchecked self@@ -62,6 +93,14 @@ (MonadDOM m) => MediaKeyEvent -> m (Maybe MediaKeyError) getErrorCode self = liftDOM ((self ^. js "errorCode") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyEvent.errorCode Mozilla MediaKeyEvent.errorCode documentation> +getErrorCodeUnsafe ::+ (MonadDOM m, HasCallStack) => MediaKeyEvent -> m MediaKeyError+getErrorCodeUnsafe self+ = liftDOM+ (((self ^. js "errorCode") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyEvent.errorCode Mozilla MediaKeyEvent.errorCode documentation> getErrorCodeUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaKeyMessageEvent- (getMessage, getMessageUnchecked, getDestinationURL,- MediaKeyMessageEvent, castToMediaKeyMessageEvent,+ (getMessage, getMessageUnsafe, getMessageUnchecked,+ getDestinationURL, MediaKeyMessageEvent(..), gTypeMediaKeyMessageEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,11 +20,29 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/WebKitMediaKeyMessageEvent.message Mozilla WebKitMediaKeyMessageEvent.message documentation> getMessage :: (MonadDOM m) => MediaKeyMessageEvent -> m (Maybe Uint8Array) getMessage self = liftDOM ((self ^. js "message") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/WebKitMediaKeyMessageEvent.message Mozilla WebKitMediaKeyMessageEvent.message documentation> +getMessageUnsafe ::+ (MonadDOM m, HasCallStack) => MediaKeyMessageEvent -> m Uint8Array+getMessageUnsafe self+ = liftDOM+ (((self ^. js "message") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/WebKitMediaKeyMessageEvent.message Mozilla WebKitMediaKeyMessageEvent.message documentation> getMessageUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaKeyNeededEvent- (getInitData, getInitDataUnchecked, MediaKeyNeededEvent,- castToMediaKeyNeededEvent, gTypeMediaKeyNeededEvent)+ (getInitData, getInitDataUnsafe, getInitDataUnchecked,+ MediaKeyNeededEvent(..), gTypeMediaKeyNeededEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,11 +19,29 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyNeededEvent.initData Mozilla MediaKeyNeededEvent.initData documentation> getInitData :: (MonadDOM m) => MediaKeyNeededEvent -> m (Maybe Uint8Array) getInitData self = liftDOM ((self ^. js "initData") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyNeededEvent.initData Mozilla MediaKeyNeededEvent.initData documentation> +getInitDataUnsafe ::+ (MonadDOM m, HasCallStack) => MediaKeyNeededEvent -> m Uint8Array+getInitDataUnsafe self+ = liftDOM+ (((self ^. js "initData") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyNeededEvent.initData Mozilla MediaKeyNeededEvent.initData documentation> getInitDataUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaKeySession- (update, close, getError, getErrorUnchecked, getKeySystem,- getSessionId, webKitKeyAdded, webKitKeyError, webKitKeyMessage,- MediaKeySession, castToMediaKeySession, gTypeMediaKeySession)+ (update, close, getError, getErrorUnsafe, getErrorUnchecked,+ getKeySystem, getSessionId, webKitKeyAdded, webKitKeyError,+ webKitKeyMessage, MediaKeySession(..), gTypeMediaKeySession) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/WebKitMediaKeySession.update Mozilla WebKitMediaKeySession.update documentation> update ::@@ -32,6 +46,14 @@ getError :: (MonadDOM m) => MediaKeySession -> m (Maybe MediaKeyError) getError self = liftDOM ((self ^. js "error") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/WebKitMediaKeySession.error Mozilla WebKitMediaKeySession.error documentation> +getErrorUnsafe ::+ (MonadDOM m, HasCallStack) => MediaKeySession -> m MediaKeyError+getErrorUnsafe self+ = liftDOM+ (((self ^. js "error") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/WebKitMediaKeySession.error Mozilla WebKitMediaKeySession.error documentation> getErrorUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaKeys- (newMediaKeys, createSession, createSession_,+ (newMediaKeys, createSession, createSession_, createSessionUnsafe, createSessionUnchecked, isTypeSupported, isTypeSupported_,- getKeySystem, MediaKeys, castToMediaKeys, gTypeMediaKeys)+ getKeySystem, MediaKeys(..), gTypeMediaKeys) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/WebKitMediaKeys Mozilla WebKitMediaKeys documentation> newMediaKeys ::@@ -40,6 +54,17 @@ = liftDOM (void (self ^. jsf "createSession" [toJSVal type', toJSVal initData]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/WebKitMediaKeys.createSession Mozilla WebKitMediaKeys.createSession documentation> +createSessionUnsafe ::+ (MonadDOM m, ToJSString type', IsUint8Array initData,+ HasCallStack) =>+ MediaKeys -> type' -> Maybe initData -> m MediaKeySession+createSessionUnsafe self type' initData+ = liftDOM+ (((self ^. jsf "createSession" [toJSVal type', toJSVal initData])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/WebKitMediaKeys.createSession Mozilla WebKitMediaKeys.createSession documentation> createSessionUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaList- (item, item_, itemUnchecked, deleteMedium, appendMedium,- setMediaText, getMediaText, getMediaTextUnchecked, getLength,- MediaList, castToMediaList, gTypeMediaList)+ (item, item_, itemUnsafe, itemUnchecked, deleteMedium,+ appendMedium, setMediaText, getMediaText, getMediaTextUnsafe,+ getMediaTextUnchecked, getLength, MediaList(..), gTypeMediaList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaList.item Mozilla MediaList.item documentation> item ::@@ -31,6 +45,15 @@ = liftDOM (void (self ^. jsf "item" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaList.item Mozilla MediaList.item documentation> +itemUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ MediaList -> Word -> m result+itemUnsafe self index+ = liftDOM+ (((self ^. jsf "item" [toJSVal index]) >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaList.item Mozilla MediaList.item documentation> itemUnchecked :: (MonadDOM m, FromJSString result) => MediaList -> Word -> m result itemUnchecked self index@@ -62,6 +85,15 @@ (MonadDOM m, FromJSString result) => MediaList -> m (Maybe result) getMediaText self = liftDOM ((self ^. js "mediaText") >>= fromMaybeJSString)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaList.mediaText Mozilla MediaList.mediaText documentation> +getMediaTextUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ MediaList -> m result+getMediaTextUnsafe self+ = liftDOM+ (((self ^. js "mediaText") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaList.mediaText Mozilla MediaList.mediaText documentation> getMediaTextUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaQueryList- (addListener, removeListener, getMedia, getMatches, MediaQueryList,- castToMediaQueryList, gTypeMediaQueryList)+ (addListener, removeListener, getMedia, getMatches,+ MediaQueryList(..), gTypeMediaQueryList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList.addListener Mozilla MediaQueryList.addListener documentation> addListener ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaQueryListListener (newMediaQueryListListener, newMediaQueryListListenerSync, newMediaQueryListListenerAsync, MediaQueryListListener) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListListener Mozilla MediaQueryListListener documentation> newMediaQueryListListener ::
@@ -1,14 +1,20 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaSource (newMediaSource, addSourceBuffer, addSourceBuffer_,- addSourceBufferUnchecked, removeSourceBuffer, endOfStream,- isTypeSupported, isTypeSupported_, getSourceBuffers,+ addSourceBufferUnsafe, addSourceBufferUnchecked,+ removeSourceBuffer, endOfStream, isTypeSupported, isTypeSupported_,+ getSourceBuffers, getSourceBuffersUnsafe, getSourceBuffersUnchecked, getActiveSourceBuffers,- getActiveSourceBuffersUnchecked, setDuration, getDuration,- getReadyState, MediaSource, castToMediaSource, gTypeMediaSource)+ getActiveSourceBuffersUnsafe, getActiveSourceBuffersUnchecked,+ setDuration, getDuration, getReadyState, MediaSource(..),+ gTypeMediaSource) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +25,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSource Mozilla MediaSource documentation> newMediaSource :: (MonadDOM m) => m MediaSource@@ -40,6 +56,15 @@ = liftDOM (void (self ^. jsf "addSourceBuffer" [toJSVal type'])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSource.addSourceBuffer Mozilla MediaSource.addSourceBuffer documentation> +addSourceBufferUnsafe ::+ (MonadDOM m, ToJSString type', HasCallStack) =>+ MediaSource -> type' -> m SourceBuffer+addSourceBufferUnsafe self type'+ = liftDOM+ (((self ^. jsf "addSourceBuffer" [toJSVal type']) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSource.addSourceBuffer Mozilla MediaSource.addSourceBuffer documentation> addSourceBufferUnchecked :: (MonadDOM m, ToJSString type') => MediaSource -> type' -> m SourceBuffer@@ -81,6 +106,14 @@ = liftDOM ((self ^. js "sourceBuffers") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSource.sourceBuffers Mozilla MediaSource.sourceBuffers documentation> +getSourceBuffersUnsafe ::+ (MonadDOM m, HasCallStack) => MediaSource -> m SourceBufferList+getSourceBuffersUnsafe self+ = liftDOM+ (((self ^. js "sourceBuffers") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSource.sourceBuffers Mozilla MediaSource.sourceBuffers documentation> getSourceBuffersUnchecked :: (MonadDOM m) => MediaSource -> m SourceBufferList getSourceBuffersUnchecked self@@ -91,6 +124,14 @@ (MonadDOM m) => MediaSource -> m (Maybe SourceBufferList) getActiveSourceBuffers self = liftDOM ((self ^. js "activeSourceBuffers") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSource.activeSourceBuffers Mozilla MediaSource.activeSourceBuffers documentation> +getActiveSourceBuffersUnsafe ::+ (MonadDOM m, HasCallStack) => MediaSource -> m SourceBufferList+getActiveSourceBuffersUnsafe self+ = liftDOM+ (((self ^. js "activeSourceBuffers") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSource.activeSourceBuffers Mozilla MediaSource.activeSourceBuffers documentation> getActiveSourceBuffersUnchecked ::
@@ -1,13 +1,19 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaSourceStates- (getSourceType, getSourceId, getWidth, getWidthUnchecked,- getHeight, getHeightUnchecked, getFrameRate, getFrameRateUnchecked,- getAspectRatio, getAspectRatioUnchecked, getFacingMode,- getFacingModeUnchecked, getVolume, getVolumeUnchecked,- MediaSourceStates, castToMediaSourceStates, gTypeMediaSourceStates)+ (getSourceType, getSourceId, getWidth, getWidthUnsafe,+ getWidthUnchecked, getHeight, getHeightUnsafe, getHeightUnchecked,+ getFrameRate, getFrameRateUnsafe, getFrameRateUnchecked,+ getAspectRatio, getAspectRatioUnsafe, getAspectRatioUnchecked,+ getFacingMode, getFacingModeUnsafe, getFacingModeUnchecked,+ getVolume, getVolumeUnsafe, getVolumeUnchecked,+ MediaSourceStates(..), gTypeMediaSourceStates) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +24,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSourceStates.sourceType Mozilla MediaSourceStates.sourceType documentation> getSourceType ::@@ -36,6 +52,14 @@ getWidth self = liftDOM ((self ^. js "width") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSourceStates.width Mozilla MediaSourceStates.width documentation> +getWidthUnsafe ::+ (MonadDOM m, HasCallStack) => MediaSourceStates -> m Word+getWidthUnsafe self+ = liftDOM+ (((self ^. js "width") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSourceStates.width Mozilla MediaSourceStates.width documentation> getWidthUnchecked :: (MonadDOM m) => MediaSourceStates -> m Word getWidthUnchecked self = liftDOM ((self ^. js "width") >>= fromJSValUnchecked)@@ -45,6 +69,14 @@ getHeight self = liftDOM ((self ^. js "height") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSourceStates.height Mozilla MediaSourceStates.height documentation> +getHeightUnsafe ::+ (MonadDOM m, HasCallStack) => MediaSourceStates -> m Word+getHeightUnsafe self+ = liftDOM+ (((self ^. js "height") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSourceStates.height Mozilla MediaSourceStates.height documentation> getHeightUnchecked :: (MonadDOM m) => MediaSourceStates -> m Word getHeightUnchecked self = liftDOM ((self ^. js "height") >>= fromJSValUnchecked)@@ -56,6 +88,14 @@ = liftDOM ((self ^. js "frameRate") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSourceStates.frameRate Mozilla MediaSourceStates.frameRate documentation> +getFrameRateUnsafe ::+ (MonadDOM m, HasCallStack) => MediaSourceStates -> m Float+getFrameRateUnsafe self+ = liftDOM+ (((self ^. js "frameRate") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSourceStates.frameRate Mozilla MediaSourceStates.frameRate documentation> getFrameRateUnchecked :: (MonadDOM m) => MediaSourceStates -> m Float getFrameRateUnchecked self@@ -68,6 +108,14 @@ = liftDOM ((self ^. js "aspectRatio") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSourceStates.aspectRatio Mozilla MediaSourceStates.aspectRatio documentation> +getAspectRatioUnsafe ::+ (MonadDOM m, HasCallStack) => MediaSourceStates -> m Float+getAspectRatioUnsafe self+ = liftDOM+ (((self ^. js "aspectRatio") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSourceStates.aspectRatio Mozilla MediaSourceStates.aspectRatio documentation> getAspectRatioUnchecked :: (MonadDOM m) => MediaSourceStates -> m Float getAspectRatioUnchecked self@@ -80,6 +128,15 @@ = liftDOM ((self ^. js "facingMode") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSourceStates.facingMode Mozilla MediaSourceStates.facingMode documentation> +getFacingModeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ MediaSourceStates -> m VideoFacingModeEnum+getFacingModeUnsafe self+ = liftDOM+ (((self ^. js "facingMode") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSourceStates.facingMode Mozilla MediaSourceStates.facingMode documentation> getFacingModeUnchecked :: (MonadDOM m) => MediaSourceStates -> m VideoFacingModeEnum getFacingModeUnchecked self@@ -88,6 +145,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSourceStates.volume Mozilla MediaSourceStates.volume documentation> getVolume :: (MonadDOM m) => MediaSourceStates -> m (Maybe Word) getVolume self = liftDOM ((self ^. js "volume") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSourceStates.volume Mozilla MediaSourceStates.volume documentation> +getVolumeUnsafe ::+ (MonadDOM m, HasCallStack) => MediaSourceStates -> m Word+getVolumeUnsafe self+ = liftDOM+ (((self ^. js "volume") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaSourceStates.volume Mozilla MediaSourceStates.volume documentation> getVolumeUnchecked :: (MonadDOM m) => MediaSourceStates -> m Word
@@ -1,14 +1,18 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaStream (newMediaStream, newMediaStream', newMediaStream'', getAudioTracks, getAudioTracks_, getVideoTracks, getVideoTracks_, getTracks, getTracks_, addTrack, removeTrack, getTrackById, getTrackById_,- getTrackByIdUnchecked, clone, clone_, cloneUnchecked, getId,- getActive, active, inactive, addTrackEvent, removeTrackEvent,- MediaStream, castToMediaStream, gTypeMediaStream)+ getTrackByIdUnsafe, getTrackByIdUnchecked, clone, clone_,+ cloneUnsafe, cloneUnchecked, getId, getActive, active, inactive,+ addTrackEvent, removeTrackEvent, MediaStream(..), gTypeMediaStream) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +23,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitMediaStream Mozilla webkitMediaStream documentation> newMediaStream :: (MonadDOM m) => m MediaStream@@ -101,6 +115,15 @@ = liftDOM (void (self ^. jsf "getTrackById" [toJSVal trackId])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitMediaStream.getTrackById Mozilla webkitMediaStream.getTrackById documentation> +getTrackByIdUnsafe ::+ (MonadDOM m, ToJSString trackId, HasCallStack) =>+ MediaStream -> trackId -> m MediaStreamTrack+getTrackByIdUnsafe self trackId+ = liftDOM+ (((self ^. jsf "getTrackById" [toJSVal trackId]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitMediaStream.getTrackById Mozilla webkitMediaStream.getTrackById documentation> getTrackByIdUnchecked :: (MonadDOM m, ToJSString trackId) => MediaStream -> trackId -> m MediaStreamTrack@@ -116,6 +139,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitMediaStream.clone Mozilla webkitMediaStream.clone documentation> clone_ :: (MonadDOM m) => MediaStream -> m () clone_ self = liftDOM (void (self ^. jsf "clone" ()))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitMediaStream.clone Mozilla webkitMediaStream.clone documentation> +cloneUnsafe ::+ (MonadDOM m, HasCallStack) => MediaStream -> m MediaStream+cloneUnsafe self+ = liftDOM+ (((self ^. jsf "clone" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitMediaStream.clone Mozilla webkitMediaStream.clone documentation> cloneUnchecked :: (MonadDOM m) => MediaStream -> m MediaStream
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaStreamAudioDestinationNode- (getStream, getStreamUnchecked, MediaStreamAudioDestinationNode,- castToMediaStreamAudioDestinationNode,+ (getStream, getStreamUnsafe, getStreamUnchecked,+ MediaStreamAudioDestinationNode(..), gTypeMediaStreamAudioDestinationNode) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,12 +20,31 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioDestinationNode.stream Mozilla MediaStreamAudioDestinationNode.stream documentation> getStream :: (MonadDOM m) => MediaStreamAudioDestinationNode -> m (Maybe MediaStream) getStream self = liftDOM ((self ^. js "stream") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioDestinationNode.stream Mozilla MediaStreamAudioDestinationNode.stream documentation> +getStreamUnsafe ::+ (MonadDOM m, HasCallStack) =>+ MediaStreamAudioDestinationNode -> m MediaStream+getStreamUnsafe self+ = liftDOM+ (((self ^. js "stream") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioDestinationNode.stream Mozilla MediaStreamAudioDestinationNode.stream documentation> getStreamUnchecked ::
@@ -1,11 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaStreamAudioSourceNode- (getMediaStream, getMediaStreamUnchecked,- MediaStreamAudioSourceNode, castToMediaStreamAudioSourceNode,- gTypeMediaStreamAudioSourceNode)+ (getMediaStream, getMediaStreamUnsafe, getMediaStreamUnchecked,+ MediaStreamAudioSourceNode(..), gTypeMediaStreamAudioSourceNode) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,12 +19,31 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioSourceNode.mediaStream Mozilla MediaStreamAudioSourceNode.mediaStream documentation> getMediaStream :: (MonadDOM m) => MediaStreamAudioSourceNode -> m (Maybe MediaStream) getMediaStream self = liftDOM ((self ^. js "mediaStream") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioSourceNode.mediaStream Mozilla MediaStreamAudioSourceNode.mediaStream documentation> +getMediaStreamUnsafe ::+ (MonadDOM m, HasCallStack) =>+ MediaStreamAudioSourceNode -> m MediaStream+getMediaStreamUnsafe self+ = liftDOM+ (((self ^. js "mediaStream") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioSourceNode.mediaStream Mozilla MediaStreamAudioSourceNode.mediaStream documentation> getMediaStreamUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaStreamEvent- (getStream, getStreamUnchecked, MediaStreamEvent,- castToMediaStreamEvent, gTypeMediaStreamEvent)+ (getStream, getStreamUnsafe, getStreamUnchecked,+ MediaStreamEvent(..), gTypeMediaStreamEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,11 +19,29 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamEvent.stream Mozilla MediaStreamEvent.stream documentation> getStream :: (MonadDOM m) => MediaStreamEvent -> m (Maybe MediaStream) getStream self = liftDOM ((self ^. js "stream") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamEvent.stream Mozilla MediaStreamEvent.stream documentation> +getStreamUnsafe ::+ (MonadDOM m, HasCallStack) => MediaStreamEvent -> m MediaStream+getStreamUnsafe self+ = liftDOM+ (((self ^. js "stream") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamEvent.stream Mozilla MediaStreamEvent.stream documentation> getStreamUnchecked ::
@@ -1,16 +1,21 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaStreamTrack- (getSources, getConstraints, getConstraints_,- getConstraintsUnchecked, states, states_, statesUnchecked,- getCapabilities, getCapabilities_, getCapabilitiesUnchecked,- applyConstraints, clone, clone_, cloneUnchecked, stop, getKind,- getId, getLabel, setEnabled, getEnabled, getMuted, mute, unmute,+ (getSources, getConstraints, getConstraints_, getConstraintsUnsafe,+ getConstraintsUnchecked, states, states_, statesUnsafe,+ statesUnchecked, getCapabilities, getCapabilities_,+ getCapabilitiesUnsafe, getCapabilitiesUnchecked, applyConstraints,+ clone, clone_, cloneUnsafe, cloneUnchecked, stop, getKind, getId,+ getLabel, setEnabled, getEnabled, getMuted, mute, unmute, get_readonly, getRemote, getReadyState, started, ended,- overConstrained, MediaStreamTrack, castToMediaStreamTrack,- gTypeMediaStreamTrack, IsMediaStreamTrack, toMediaStreamTrack)+ overConstrained, MediaStreamTrack(..), gTypeMediaStreamTrack,+ IsMediaStreamTrack, toMediaStreamTrack) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -21,6 +26,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack.getSources Mozilla MediaStreamTrack.getSources documentation> getSources ::@@ -48,6 +63,16 @@ (void ((toMediaStreamTrack self) ^. jsf "getConstraints" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack.getConstraints Mozilla MediaStreamTrack.getConstraints documentation> +getConstraintsUnsafe ::+ (MonadDOM m, IsMediaStreamTrack self, HasCallStack) =>+ self -> m MediaTrackConstraints+getConstraintsUnsafe self+ = liftDOM+ ((((toMediaStreamTrack self) ^. jsf "getConstraints" ()) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack.getConstraints Mozilla MediaStreamTrack.getConstraints documentation> getConstraintsUnchecked :: (MonadDOM m, IsMediaStreamTrack self) => self -> m MediaTrackConstraints@@ -70,6 +95,15 @@ = liftDOM (void ((toMediaStreamTrack self) ^. jsf "states" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack.states Mozilla MediaStreamTrack.states documentation> +statesUnsafe ::+ (MonadDOM m, IsMediaStreamTrack self, HasCallStack) =>+ self -> m MediaSourceStates+statesUnsafe self+ = liftDOM+ ((((toMediaStreamTrack self) ^. jsf "states" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack.states Mozilla MediaStreamTrack.states documentation> statesUnchecked :: (MonadDOM m, IsMediaStreamTrack self) => self -> m MediaSourceStates@@ -95,6 +129,16 @@ (void ((toMediaStreamTrack self) ^. jsf "getCapabilities" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack.getCapabilities Mozilla MediaStreamTrack.getCapabilities documentation> +getCapabilitiesUnsafe ::+ (MonadDOM m, IsMediaStreamTrack self, HasCallStack) =>+ self -> m MediaStreamCapabilities+getCapabilitiesUnsafe self+ = liftDOM+ ((((toMediaStreamTrack self) ^. jsf "getCapabilities" ()) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack.getCapabilities Mozilla MediaStreamTrack.getCapabilities documentation> getCapabilitiesUnchecked :: (MonadDOM m, IsMediaStreamTrack self) => self -> m MediaStreamCapabilities@@ -125,6 +169,15 @@ clone_ :: (MonadDOM m, IsMediaStreamTrack self) => self -> m () clone_ self = liftDOM (void ((toMediaStreamTrack self) ^. jsf "clone" ()))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack.clone Mozilla MediaStreamTrack.clone documentation> +cloneUnsafe ::+ (MonadDOM m, IsMediaStreamTrack self, HasCallStack) =>+ self -> m MediaStreamTrack+cloneUnsafe self+ = liftDOM+ ((((toMediaStreamTrack self) ^. jsf "clone" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack.clone Mozilla MediaStreamTrack.clone documentation> cloneUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaStreamTrackEvent- (getTrack, getTrackUnchecked, MediaStreamTrackEvent,- castToMediaStreamTrackEvent, gTypeMediaStreamTrackEvent)+ (getTrack, getTrackUnsafe, getTrackUnchecked,+ MediaStreamTrackEvent(..), gTypeMediaStreamTrackEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,11 +19,30 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackEvent.track Mozilla MediaStreamTrackEvent.track documentation> getTrack :: (MonadDOM m) => MediaStreamTrackEvent -> m (Maybe MediaStreamTrack) getTrack self = liftDOM ((self ^. js "track") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackEvent.track Mozilla MediaStreamTrackEvent.track documentation> +getTrackUnsafe ::+ (MonadDOM m, HasCallStack) =>+ MediaStreamTrackEvent -> m MediaStreamTrack+getTrackUnsafe self+ = liftDOM+ (((self ^. js "track") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackEvent.track Mozilla MediaStreamTrackEvent.track documentation> getTrackUnchecked ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaStreamTrackSourcesCallback (newMediaStreamTrackSourcesCallback,@@ -7,6 +10,7 @@ MediaStreamTrackSourcesCallback) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackSourcesCallback Mozilla MediaStreamTrackSourcesCallback documentation> newMediaStreamTrackSourcesCallback ::
@@ -1,11 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MediaTrackConstraints- (getMandatory, getMandatoryUnchecked, getOptional,- MediaTrackConstraints, castToMediaTrackConstraints,- gTypeMediaTrackConstraints)+ (getMandatory, getMandatoryUnsafe, getMandatoryUnchecked,+ getOptional, MediaTrackConstraints(..), gTypeMediaTrackConstraints) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints.mandatory Mozilla MediaTrackConstraints.mandatory documentation> getMandatory ::@@ -23,6 +36,15 @@ MediaTrackConstraints -> m (Maybe MediaTrackConstraintSet) getMandatory self = liftDOM ((self ^. js "mandatory") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints.mandatory Mozilla MediaTrackConstraints.mandatory documentation> +getMandatoryUnsafe ::+ (MonadDOM m, HasCallStack) =>+ MediaTrackConstraints -> m MediaTrackConstraintSet+getMandatoryUnsafe self+ = liftDOM+ (((self ^. js "mandatory") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints.mandatory Mozilla MediaTrackConstraints.mandatory documentation> getMandatoryUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MemoryInfo- (getUsedJSHeapSize, getTotalJSHeapSize, MemoryInfo,- castToMemoryInfo, gTypeMemoryInfo)+ (getUsedJSHeapSize, getTotalJSHeapSize, MemoryInfo(..),+ gTypeMemoryInfo) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MemoryInfo.usedJSHeapSize Mozilla MemoryInfo.usedJSHeapSize documentation> getUsedJSHeapSize :: (MonadDOM m) => MemoryInfo -> m Word
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MessageChannel- (newMessageChannel, getPort1, getPort1Unchecked, getPort2,- getPort2Unchecked, MessageChannel, castToMessageChannel,+ (newMessageChannel, getPort1, getPort1Unsafe, getPort1Unchecked,+ getPort2, getPort2Unsafe, getPort2Unchecked, MessageChannel(..), gTypeMessageChannel) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel Mozilla MessageChannel documentation> newMessageChannel :: (MonadDOM m) => m MessageChannel@@ -27,6 +41,14 @@ getPort1 self = liftDOM ((self ^. js "port1") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel.port1 Mozilla MessageChannel.port1 documentation> +getPort1Unsafe ::+ (MonadDOM m, HasCallStack) => MessageChannel -> m MessagePort+getPort1Unsafe self+ = liftDOM+ (((self ^. js "port1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel.port1 Mozilla MessageChannel.port1 documentation> getPort1Unchecked :: (MonadDOM m) => MessageChannel -> m MessagePort getPort1Unchecked self@@ -35,6 +57,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel.port2 Mozilla MessageChannel.port2 documentation> getPort2 :: (MonadDOM m) => MessageChannel -> m (Maybe MessagePort) getPort2 self = liftDOM ((self ^. js "port2") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel.port2 Mozilla MessageChannel.port2 documentation> +getPort2Unsafe ::+ (MonadDOM m, HasCallStack) => MessageChannel -> m MessagePort+getPort2Unsafe self+ = liftDOM+ (((self ^. js "port2") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel.port2 Mozilla MessageChannel.port2 documentation> getPort2Unchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MessageEvent (initMessageEvent, webkitInitMessageEvent, getOrigin,- getLastEventId, getSource, getSourceUnchecked, getData, getPorts,- MessageEvent, castToMessageEvent, gTypeMessageEvent)+ getLastEventId, getSource, getSourceUnsafe, getSourceUnchecked,+ getData, getPorts, MessageEvent(..), gTypeMessageEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent.initMessageEvent Mozilla MessageEvent.initMessageEvent documentation> initMessageEvent ::@@ -72,6 +86,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent.source Mozilla MessageEvent.source documentation> getSource :: (MonadDOM m) => MessageEvent -> m (Maybe EventTarget) getSource self = liftDOM ((self ^. js "source") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent.source Mozilla MessageEvent.source documentation> +getSourceUnsafe ::+ (MonadDOM m, HasCallStack) => MessageEvent -> m EventTarget+getSourceUnsafe self+ = liftDOM+ (((self ^. js "source") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent.source Mozilla MessageEvent.source documentation> getSourceUnchecked :: (MonadDOM m) => MessageEvent -> m EventTarget
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MessagePort- (postMessage, start, close, message, MessagePort,- castToMessagePort, gTypeMessagePort)+ (postMessage, start, close, message, MessagePort(..),+ gTypeMessagePort) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MessagePort.postMessage Mozilla MessagePort.postMessage documentation> postMessage ::
@@ -1,10 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MimeType (getType, getSuffixes, getDescription, getEnabledPlugin,- getEnabledPluginUnchecked, MimeType, castToMimeType, gTypeMimeType)+ getEnabledPluginUnsafe, getEnabledPluginUnchecked, MimeType(..),+ gTypeMimeType) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MimeType.type Mozilla MimeType.type documentation> getType ::@@ -37,6 +52,14 @@ getEnabledPlugin :: (MonadDOM m) => MimeType -> m (Maybe Plugin) getEnabledPlugin self = liftDOM ((self ^. js "enabledPlugin") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MimeType.enabledPlugin Mozilla MimeType.enabledPlugin documentation> +getEnabledPluginUnsafe ::+ (MonadDOM m, HasCallStack) => MimeType -> m Plugin+getEnabledPluginUnsafe self+ = liftDOM+ (((self ^. js "enabledPlugin") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MimeType.enabledPlugin Mozilla MimeType.enabledPlugin documentation> getEnabledPluginUnchecked :: (MonadDOM m) => MimeType -> m Plugin
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MimeTypeArray- (item, item_, itemUnchecked, namedItem, namedItem_,- namedItemUnchecked, getLength, MimeTypeArray, castToMimeTypeArray,+ (item, item_, itemUnsafe, itemUnchecked, namedItem, namedItem_,+ namedItemUnsafe, namedItemUnchecked, getLength, MimeTypeArray(..), gTypeMimeTypeArray) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray.item Mozilla MimeTypeArray.item documentation> item :: (MonadDOM m) => MimeTypeArray -> Word -> m (Maybe MimeType)@@ -28,6 +42,14 @@ = liftDOM (void (self ^. jsf "item" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray.item Mozilla MimeTypeArray.item documentation> +itemUnsafe ::+ (MonadDOM m, HasCallStack) => MimeTypeArray -> Word -> m MimeType+itemUnsafe self index+ = liftDOM+ (((self ^. jsf "item" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray.item Mozilla MimeTypeArray.item documentation> itemUnchecked :: (MonadDOM m) => MimeTypeArray -> Word -> m MimeType itemUnchecked self index@@ -46,6 +68,15 @@ (MonadDOM m, ToJSString name) => MimeTypeArray -> name -> m () namedItem_ self name = liftDOM (void (self ^. jsf "namedItem" [toJSVal name]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray.namedItem Mozilla MimeTypeArray.namedItem documentation> +namedItemUnsafe ::+ (MonadDOM m, ToJSString name, HasCallStack) =>+ MimeTypeArray -> name -> m MimeType+namedItemUnsafe self name+ = liftDOM+ (((self ^. jsf "namedItem" [toJSVal name]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray.namedItem Mozilla MimeTypeArray.namedItem documentation> namedItemUnchecked ::
@@ -1,15 +1,21 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MouseEvent (initMouseEvent, getScreenX, getScreenY, getClientX, getClientY, getCtrlKey, getShiftKey, getAltKey, getMetaKey, getButton,- getRelatedTarget, getRelatedTargetUnchecked, getMovementX,- getMovementY, getOffsetX, getOffsetY, getX, getY, getFromElement,- getFromElementUnchecked, getToElement, getToElementUnchecked,- getDataTransfer, getDataTransferUnchecked, MouseEvent,- castToMouseEvent, gTypeMouseEvent, IsMouseEvent, toMouseEvent)+ getRelatedTarget, getRelatedTargetUnsafe,+ getRelatedTargetUnchecked, getMovementX, getMovementY, getOffsetX,+ getOffsetY, getX, getY, getFromElement, getFromElementUnsafe,+ getFromElementUnchecked, getToElement, getToElementUnsafe,+ getToElementUnchecked, getDataTransfer, getDataTransferUnsafe,+ getDataTransferUnchecked, MouseEvent(..), gTypeMouseEvent,+ IsMouseEvent, toMouseEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +25,16 @@ import Control.Monad (void) import Control.Lens.Operators ((^.)) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent.initMouseEvent Mozilla MouseEvent.initMouseEvent documentation> initMouseEvent ::@@ -106,6 +122,15 @@ (((toMouseEvent self) ^. js "relatedTarget") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent.relatedTarget Mozilla MouseEvent.relatedTarget documentation> +getRelatedTargetUnsafe ::+ (MonadDOM m, IsMouseEvent self, HasCallStack) =>+ self -> m EventTarget+getRelatedTargetUnsafe self+ = liftDOM+ ((((toMouseEvent self) ^. js "relatedTarget") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent.relatedTarget Mozilla MouseEvent.relatedTarget documentation> getRelatedTargetUnchecked :: (MonadDOM m, IsMouseEvent self) => self -> m EventTarget getRelatedTargetUnchecked self@@ -158,6 +183,14 @@ = liftDOM (((toMouseEvent self) ^. js "fromElement") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent.fromElement Mozilla MouseEvent.fromElement documentation> +getFromElementUnsafe ::+ (MonadDOM m, IsMouseEvent self, HasCallStack) => self -> m Node+getFromElementUnsafe self+ = liftDOM+ ((((toMouseEvent self) ^. js "fromElement") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent.fromElement Mozilla MouseEvent.fromElement documentation> getFromElementUnchecked :: (MonadDOM m, IsMouseEvent self) => self -> m Node getFromElementUnchecked self@@ -171,6 +204,14 @@ = liftDOM (((toMouseEvent self) ^. js "toElement") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent.toElement Mozilla MouseEvent.toElement documentation> +getToElementUnsafe ::+ (MonadDOM m, IsMouseEvent self, HasCallStack) => self -> m Node+getToElementUnsafe self+ = liftDOM+ ((((toMouseEvent self) ^. js "toElement") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent.toElement Mozilla MouseEvent.toElement documentation> getToElementUnchecked :: (MonadDOM m, IsMouseEvent self) => self -> m Node getToElementUnchecked self@@ -183,6 +224,15 @@ getDataTransfer self = liftDOM (((toMouseEvent self) ^. js "dataTransfer") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent.dataTransfer Mozilla MouseEvent.dataTransfer documentation> +getDataTransferUnsafe ::+ (MonadDOM m, IsMouseEvent self, HasCallStack) =>+ self -> m DataTransfer+getDataTransferUnsafe self+ = liftDOM+ ((((toMouseEvent self) ^. js "dataTransfer") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent.dataTransfer Mozilla MouseEvent.dataTransfer documentation> getDataTransferUnchecked ::
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MutationEvent (initMutationEvent, pattern MODIFICATION, pattern ADDITION,- pattern REMOVAL, getRelatedNode, getRelatedNodeUnchecked,- getPrevValue, getNewValue, getAttrName, getAttrChange,- MutationEvent, castToMutationEvent, gTypeMutationEvent)+ pattern REMOVAL, getRelatedNode, getRelatedNodeUnsafe,+ getRelatedNodeUnchecked, getPrevValue, getNewValue, getAttrName,+ getAttrChange, MutationEvent(..), gTypeMutationEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent.initMutationEvent Mozilla MutationEvent.initMutationEvent documentation> initMutationEvent ::@@ -44,6 +58,14 @@ getRelatedNode :: (MonadDOM m) => MutationEvent -> m (Maybe Node) getRelatedNode self = liftDOM ((self ^. js "relatedNode") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent.relatedNode Mozilla MutationEvent.relatedNode documentation> +getRelatedNodeUnsafe ::+ (MonadDOM m, HasCallStack) => MutationEvent -> m Node+getRelatedNodeUnsafe self+ = liftDOM+ (((self ^. js "relatedNode") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent.relatedNode Mozilla MutationEvent.relatedNode documentation> getRelatedNodeUnchecked :: (MonadDOM m) => MutationEvent -> m Node
@@ -1,11 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MutationObserver (newMutationObserver, observe, takeRecords, takeRecords_,- disconnect, MutationObserver, castToMutationObserver,- gTypeMutationObserver)+ disconnect, MutationObserver(..), gTypeMutationObserver) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver Mozilla MutationObserver documentation> newMutationObserver ::
@@ -1,15 +1,22 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.MutationRecord- (getType, getTarget, getTargetUnchecked, getAddedNodes,- getAddedNodesUnchecked, getRemovedNodes, getRemovedNodesUnchecked,- getPreviousSibling, getPreviousSiblingUnchecked, getNextSibling,- getNextSiblingUnchecked, getAttributeName,+ (getType, getTarget, getTargetUnsafe, getTargetUnchecked,+ getAddedNodes, getAddedNodesUnsafe, getAddedNodesUnchecked,+ getRemovedNodes, getRemovedNodesUnsafe, getRemovedNodesUnchecked,+ getPreviousSibling, getPreviousSiblingUnsafe,+ getPreviousSiblingUnchecked, getNextSibling, getNextSiblingUnsafe,+ getNextSiblingUnchecked, getAttributeName, getAttributeNameUnsafe, getAttributeNameUnchecked, getAttributeNamespace,- getAttributeNamespaceUnchecked, getOldValue, getOldValueUnchecked,- MutationRecord, castToMutationRecord, gTypeMutationRecord)+ getAttributeNamespaceUnsafe, getAttributeNamespaceUnchecked,+ getOldValue, getOldValueUnsafe, getOldValueUnchecked,+ MutationRecord(..), gTypeMutationRecord) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -20,6 +27,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord.type Mozilla MutationRecord.type documentation> getType ::@@ -31,6 +48,14 @@ getTarget self = liftDOM ((self ^. js "target") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord.target Mozilla MutationRecord.target documentation> +getTargetUnsafe ::+ (MonadDOM m, HasCallStack) => MutationRecord -> m Node+getTargetUnsafe self+ = liftDOM+ (((self ^. js "target") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord.target Mozilla MutationRecord.target documentation> getTargetUnchecked :: (MonadDOM m) => MutationRecord -> m Node getTargetUnchecked self = liftDOM ((self ^. js "target") >>= fromJSValUnchecked)@@ -42,6 +67,14 @@ = liftDOM ((self ^. js "addedNodes") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord.addedNodes Mozilla MutationRecord.addedNodes documentation> +getAddedNodesUnsafe ::+ (MonadDOM m, HasCallStack) => MutationRecord -> m NodeList+getAddedNodesUnsafe self+ = liftDOM+ (((self ^. js "addedNodes") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord.addedNodes Mozilla MutationRecord.addedNodes documentation> getAddedNodesUnchecked :: (MonadDOM m) => MutationRecord -> m NodeList getAddedNodesUnchecked self@@ -54,6 +87,14 @@ = liftDOM ((self ^. js "removedNodes") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord.removedNodes Mozilla MutationRecord.removedNodes documentation> +getRemovedNodesUnsafe ::+ (MonadDOM m, HasCallStack) => MutationRecord -> m NodeList+getRemovedNodesUnsafe self+ = liftDOM+ (((self ^. js "removedNodes") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord.removedNodes Mozilla MutationRecord.removedNodes documentation> getRemovedNodesUnchecked :: (MonadDOM m) => MutationRecord -> m NodeList getRemovedNodesUnchecked self@@ -66,6 +107,14 @@ = liftDOM ((self ^. js "previousSibling") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord.previousSibling Mozilla MutationRecord.previousSibling documentation> +getPreviousSiblingUnsafe ::+ (MonadDOM m, HasCallStack) => MutationRecord -> m Node+getPreviousSiblingUnsafe self+ = liftDOM+ (((self ^. js "previousSibling") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord.previousSibling Mozilla MutationRecord.previousSibling documentation> getPreviousSiblingUnchecked :: (MonadDOM m) => MutationRecord -> m Node getPreviousSiblingUnchecked self@@ -77,6 +126,14 @@ = liftDOM ((self ^. js "nextSibling") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord.nextSibling Mozilla MutationRecord.nextSibling documentation> +getNextSiblingUnsafe ::+ (MonadDOM m, HasCallStack) => MutationRecord -> m Node+getNextSiblingUnsafe self+ = liftDOM+ (((self ^. js "nextSibling") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord.nextSibling Mozilla MutationRecord.nextSibling documentation> getNextSiblingUnchecked :: (MonadDOM m) => MutationRecord -> m Node getNextSiblingUnchecked self = liftDOM ((self ^. js "nextSibling") >>= fromJSValUnchecked)@@ -89,6 +146,15 @@ = liftDOM ((self ^. js "attributeName") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord.attributeName Mozilla MutationRecord.attributeName documentation> +getAttributeNameUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ MutationRecord -> m result+getAttributeNameUnsafe self+ = liftDOM+ (((self ^. js "attributeName") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord.attributeName Mozilla MutationRecord.attributeName documentation> getAttributeNameUnchecked :: (MonadDOM m, FromJSString result) => MutationRecord -> m result getAttributeNameUnchecked self@@ -102,6 +168,15 @@ = liftDOM ((self ^. js "attributeNamespace") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord.attributeNamespace Mozilla MutationRecord.attributeNamespace documentation> +getAttributeNamespaceUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ MutationRecord -> m result+getAttributeNamespaceUnsafe self+ = liftDOM+ (((self ^. js "attributeNamespace") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord.attributeNamespace Mozilla MutationRecord.attributeNamespace documentation> getAttributeNamespaceUnchecked :: (MonadDOM m, FromJSString result) => MutationRecord -> m result getAttributeNamespaceUnchecked self@@ -114,6 +189,15 @@ MutationRecord -> m (Maybe result) getOldValue self = liftDOM ((self ^. js "oldValue") >>= fromMaybeJSString)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord.oldValue Mozilla MutationRecord.oldValue documentation> +getOldValueUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ MutationRecord -> m result+getOldValueUnsafe self+ = liftDOM+ (((self ^. js "oldValue") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord.oldValue Mozilla MutationRecord.oldValue documentation> getOldValueUnchecked ::
@@ -1,16 +1,22 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.NamedNodeMap- (getNamedItem, getNamedItem_, getNamedItemUnchecked, setNamedItem,- setNamedItem_, setNamedItemUnchecked, removeNamedItem,- removeNamedItem_, removeNamedItemUnchecked, item, item_,- itemUnchecked, getNamedItemNS, getNamedItemNS_,- getNamedItemNSUnchecked, setNamedItemNS, setNamedItemNS_,+ (getNamedItem, getNamedItem_, getNamedItemUnsafe,+ getNamedItemUnchecked, setNamedItem, setNamedItem_,+ setNamedItemUnsafe, setNamedItemUnchecked, removeNamedItem,+ removeNamedItem_, removeNamedItemUnsafe, removeNamedItemUnchecked,+ item, item_, itemUnsafe, itemUnchecked, getNamedItemNS,+ getNamedItemNS_, getNamedItemNSUnsafe, getNamedItemNSUnchecked,+ setNamedItemNS, setNamedItemNS_, setNamedItemNSUnsafe, setNamedItemNSUnchecked, removeNamedItemNS, removeNamedItemNS_,- removeNamedItemNSUnchecked, getLength, NamedNodeMap,- castToNamedNodeMap, gTypeNamedNodeMap)+ removeNamedItemNSUnsafe, removeNamedItemNSUnchecked, getLength,+ NamedNodeMap(..), gTypeNamedNodeMap) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -21,6 +27,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap.getNamedItem Mozilla NamedNodeMap.getNamedItem documentation> getNamedItem ::@@ -37,6 +53,15 @@ = liftDOM (void (self ^. jsf "getNamedItem" [toJSVal name])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap.getNamedItem Mozilla NamedNodeMap.getNamedItem documentation> +getNamedItemUnsafe ::+ (MonadDOM m, ToJSString name, HasCallStack) =>+ NamedNodeMap -> name -> m Node+getNamedItemUnsafe self name+ = liftDOM+ (((self ^. jsf "getNamedItem" [toJSVal name]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap.getNamedItem Mozilla NamedNodeMap.getNamedItem documentation> getNamedItemUnchecked :: (MonadDOM m, ToJSString name) => NamedNodeMap -> name -> m Node getNamedItemUnchecked self name@@ -59,6 +84,15 @@ = liftDOM (void (self ^. jsf "setNamedItem" [toJSVal node])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap.setNamedItem Mozilla NamedNodeMap.setNamedItem documentation> +setNamedItemUnsafe ::+ (MonadDOM m, IsNode node, HasCallStack) =>+ NamedNodeMap -> Maybe node -> m Node+setNamedItemUnsafe self node+ = liftDOM+ (((self ^. jsf "setNamedItem" [toJSVal node]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap.setNamedItem Mozilla NamedNodeMap.setNamedItem documentation> setNamedItemUnchecked :: (MonadDOM m, IsNode node) => NamedNodeMap -> Maybe node -> m Node setNamedItemUnchecked self node@@ -81,6 +115,15 @@ = liftDOM (void (self ^. jsf "removeNamedItem" [toJSVal name])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap.removeNamedItem Mozilla NamedNodeMap.removeNamedItem documentation> +removeNamedItemUnsafe ::+ (MonadDOM m, ToJSString name, HasCallStack) =>+ NamedNodeMap -> name -> m Node+removeNamedItemUnsafe self name+ = liftDOM+ (((self ^. jsf "removeNamedItem" [toJSVal name]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap.removeNamedItem Mozilla NamedNodeMap.removeNamedItem documentation> removeNamedItemUnchecked :: (MonadDOM m, ToJSString name) => NamedNodeMap -> name -> m Node removeNamedItemUnchecked self name@@ -99,6 +142,14 @@ = liftDOM (void (self ^. jsf "item" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap.item Mozilla NamedNodeMap.item documentation> +itemUnsafe ::+ (MonadDOM m, HasCallStack) => NamedNodeMap -> Word -> m Node+itemUnsafe self index+ = liftDOM+ (((self ^. jsf "item" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap.item Mozilla NamedNodeMap.item documentation> itemUnchecked :: (MonadDOM m) => NamedNodeMap -> Word -> m Node itemUnchecked self index = liftDOM@@ -125,6 +176,18 @@ [toJSVal namespaceURI, toJSVal localName])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap.getNamedItemNS Mozilla NamedNodeMap.getNamedItemNS documentation> +getNamedItemNSUnsafe ::+ (MonadDOM m, ToJSString namespaceURI, ToJSString localName,+ HasCallStack) =>+ NamedNodeMap -> Maybe namespaceURI -> localName -> m Node+getNamedItemNSUnsafe self namespaceURI localName+ = liftDOM+ (((self ^. jsf "getNamedItemNS"+ [toJSVal namespaceURI, toJSVal localName])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap.getNamedItemNS Mozilla NamedNodeMap.getNamedItemNS documentation> getNamedItemNSUnchecked :: (MonadDOM m, ToJSString namespaceURI, ToJSString localName) => NamedNodeMap -> Maybe namespaceURI -> localName -> m Node@@ -149,6 +212,15 @@ = liftDOM (void (self ^. jsf "setNamedItemNS" [toJSVal node])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap.setNamedItemNS Mozilla NamedNodeMap.setNamedItemNS documentation> +setNamedItemNSUnsafe ::+ (MonadDOM m, IsNode node, HasCallStack) =>+ NamedNodeMap -> Maybe node -> m Node+setNamedItemNSUnsafe self node+ = liftDOM+ (((self ^. jsf "setNamedItemNS" [toJSVal node]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap.setNamedItemNS Mozilla NamedNodeMap.setNamedItemNS documentation> setNamedItemNSUnchecked :: (MonadDOM m, IsNode node) => NamedNodeMap -> Maybe node -> m Node setNamedItemNSUnchecked self node@@ -175,6 +247,18 @@ (void (self ^. jsf "removeNamedItemNS" [toJSVal namespaceURI, toJSVal localName]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap.removeNamedItemNS Mozilla NamedNodeMap.removeNamedItemNS documentation> +removeNamedItemNSUnsafe ::+ (MonadDOM m, ToJSString namespaceURI, ToJSString localName,+ HasCallStack) =>+ NamedNodeMap -> Maybe namespaceURI -> localName -> m Node+removeNamedItemNSUnsafe self namespaceURI localName+ = liftDOM+ (((self ^. jsf "removeNamedItemNS"+ [toJSVal namespaceURI, toJSVal localName])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap.removeNamedItemNS Mozilla NamedNodeMap.removeNamedItemNS documentation> removeNamedItemNSUnchecked ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Navigator (getGamepads, getGamepads_, webkitGetUserMedia,@@ -6,16 +9,20 @@ isProtocolHandlerRegistered_, unregisterProtocolHandler, vibratePattern, vibratePattern_, vibrate, vibrate_, javaEnabled, javaEnabled_, getStorageUpdates, getWebkitBattery,- getWebkitBatteryUnchecked, getGeolocation, getGeolocationUnchecked,- getWebkitTemporaryStorage, getWebkitTemporaryStorageUnchecked,- getWebkitPersistentStorage, getWebkitPersistentStorageUnchecked,- getAppCodeName, getAppName, getAppVersion, getLanguage,- getUserAgent, getPlatform, getPlugins, getPluginsUnchecked,- getMimeTypes, getMimeTypesUnchecked, getProduct, getProductSub,- getVendor, getVendorSub, getCookieEnabled, getOnLine,- getHardwareConcurrency, Navigator, castToNavigator, gTypeNavigator)+ getWebkitBatteryUnsafe, getWebkitBatteryUnchecked, getGeolocation,+ getGeolocationUnsafe, getGeolocationUnchecked,+ getWebkitTemporaryStorage, getWebkitTemporaryStorageUnsafe,+ getWebkitTemporaryStorageUnchecked, getWebkitPersistentStorage,+ getWebkitPersistentStorageUnsafe,+ getWebkitPersistentStorageUnchecked, getAppCodeName, getAppName,+ getAppVersion, getLanguage, getUserAgent, getPlatform, getPlugins,+ getPluginsUnsafe, getPluginsUnchecked, getMimeTypes,+ getMimeTypesUnsafe, getMimeTypesUnchecked, getProduct,+ getProductSub, getVendor, getVendorSub, getCookieEnabled,+ getOnLine, getHardwareConcurrency, Navigator(..), gTypeNavigator) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -26,6 +33,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Navigator.getGamepads Mozilla Navigator.getGamepads documentation> getGamepads :: (MonadDOM m) => Navigator -> m [Maybe Gamepad]@@ -133,6 +150,14 @@ = liftDOM ((self ^. js "webkitBattery") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Navigator.webkitBattery Mozilla Navigator.webkitBattery documentation> +getWebkitBatteryUnsafe ::+ (MonadDOM m, HasCallStack) => Navigator -> m BatteryManager+getWebkitBatteryUnsafe self+ = liftDOM+ (((self ^. js "webkitBattery") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Navigator.webkitBattery Mozilla Navigator.webkitBattery documentation> getWebkitBatteryUnchecked :: (MonadDOM m) => Navigator -> m BatteryManager getWebkitBatteryUnchecked self@@ -145,6 +170,14 @@ = liftDOM ((self ^. js "geolocation") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Navigator.geolocation Mozilla Navigator.geolocation documentation> +getGeolocationUnsafe ::+ (MonadDOM m, HasCallStack) => Navigator -> m Geolocation+getGeolocationUnsafe self+ = liftDOM+ (((self ^. js "geolocation") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Navigator.geolocation Mozilla Navigator.geolocation documentation> getGeolocationUnchecked :: (MonadDOM m) => Navigator -> m Geolocation getGeolocationUnchecked self@@ -157,6 +190,14 @@ = liftDOM ((self ^. js "webkitTemporaryStorage") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Navigator.webkitTemporaryStorage Mozilla Navigator.webkitTemporaryStorage documentation> +getWebkitTemporaryStorageUnsafe ::+ (MonadDOM m, HasCallStack) => Navigator -> m StorageQuota+getWebkitTemporaryStorageUnsafe self+ = liftDOM+ (((self ^. js "webkitTemporaryStorage") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Navigator.webkitTemporaryStorage Mozilla Navigator.webkitTemporaryStorage documentation> getWebkitTemporaryStorageUnchecked :: (MonadDOM m) => Navigator -> m StorageQuota getWebkitTemporaryStorageUnchecked self@@ -170,6 +211,14 @@ = liftDOM ((self ^. js "webkitPersistentStorage") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Navigator.webkitPersistentStorage Mozilla Navigator.webkitPersistentStorage documentation> +getWebkitPersistentStorageUnsafe ::+ (MonadDOM m, HasCallStack) => Navigator -> m StorageQuota+getWebkitPersistentStorageUnsafe self+ = liftDOM+ (((self ^. js "webkitPersistentStorage") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Navigator.webkitPersistentStorage Mozilla Navigator.webkitPersistentStorage documentation> getWebkitPersistentStorageUnchecked :: (MonadDOM m) => Navigator -> m StorageQuota getWebkitPersistentStorageUnchecked self@@ -217,6 +266,14 @@ getPlugins self = liftDOM ((self ^. js "plugins") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Navigator.plugins Mozilla Navigator.plugins documentation> +getPluginsUnsafe ::+ (MonadDOM m, HasCallStack) => Navigator -> m PluginArray+getPluginsUnsafe self+ = liftDOM+ (((self ^. js "plugins") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Navigator.plugins Mozilla Navigator.plugins documentation> getPluginsUnchecked :: (MonadDOM m) => Navigator -> m PluginArray getPluginsUnchecked self = liftDOM ((self ^. js "plugins") >>= fromJSValUnchecked)@@ -226,6 +283,14 @@ (MonadDOM m) => Navigator -> m (Maybe MimeTypeArray) getMimeTypes self = liftDOM ((self ^. js "mimeTypes") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Navigator.mimeTypes Mozilla Navigator.mimeTypes documentation> +getMimeTypesUnsafe ::+ (MonadDOM m, HasCallStack) => Navigator -> m MimeTypeArray+getMimeTypesUnsafe self+ = liftDOM+ (((self ^. js "mimeTypes") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Navigator.mimeTypes Mozilla Navigator.mimeTypes documentation> getMimeTypesUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.NavigatorUserMediaError- (getConstraintName, NavigatorUserMediaError,- castToNavigatorUserMediaError, gTypeNavigatorUserMediaError)+ (getConstraintName, NavigatorUserMediaError(..),+ gTypeNavigatorUserMediaError) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/NavigatorUserMediaError.constraintName Mozilla NavigatorUserMediaError.constraintName documentation> getConstraintName ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.NavigatorUserMediaErrorCallback (newNavigatorUserMediaErrorCallback,@@ -7,6 +10,7 @@ NavigatorUserMediaErrorCallback) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/NavigatorUserMediaErrorCallback Mozilla NavigatorUserMediaErrorCallback documentation> newNavigatorUserMediaErrorCallback ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.NavigatorUserMediaSuccessCallback (newNavigatorUserMediaSuccessCallback,@@ -7,6 +10,7 @@ NavigatorUserMediaSuccessCallback) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/NavigatorUserMediaSuccessCallback Mozilla NavigatorUserMediaSuccessCallback documentation> newNavigatorUserMediaSuccessCallback ::
@@ -1,44 +1,54 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Node- (insertBefore, insertBefore_, insertBeforeUnchecked, replaceChild,- replaceChild_, replaceChildUnchecked, removeChild, removeChild_,- removeChildUnchecked, appendChild, appendChild_,- appendChildUnchecked, hasChildNodes, hasChildNodes_, cloneNode,- cloneNode_, cloneNodeUnchecked, normalize, isSupported,+ (insertBefore, insertBefore_, insertBeforeUnsafe,+ insertBeforeUnchecked, replaceChild, replaceChild_,+ replaceChildUnsafe, replaceChildUnchecked, removeChild,+ removeChild_, removeChildUnsafe, removeChildUnchecked, appendChild,+ appendChild_, appendChildUnsafe, appendChildUnchecked,+ hasChildNodes, hasChildNodes_, cloneNode, cloneNode_,+ cloneNodeUnsafe, cloneNodeUnchecked, normalize, isSupported, isSupported_, isSameNode, isSameNode_, isEqualNode, isEqualNode_,- lookupPrefix, lookupPrefix_, lookupPrefixUnchecked,- isDefaultNamespace, isDefaultNamespace_, lookupNamespaceURI,- lookupNamespaceURI_, lookupNamespaceURIUnchecked,- compareDocumentPosition, compareDocumentPosition_, contains,- contains_, pattern ELEMENT_NODE, pattern ATTRIBUTE_NODE,- pattern TEXT_NODE, pattern CDATA_SECTION_NODE,- pattern ENTITY_REFERENCE_NODE, pattern ENTITY_NODE,- pattern PROCESSING_INSTRUCTION_NODE, pattern COMMENT_NODE,- pattern DOCUMENT_NODE, pattern DOCUMENT_TYPE_NODE,- pattern DOCUMENT_FRAGMENT_NODE, pattern NOTATION_NODE,- pattern DOCUMENT_POSITION_DISCONNECTED,+ lookupPrefix, lookupPrefix_, lookupPrefixUnsafe,+ lookupPrefixUnchecked, isDefaultNamespace, isDefaultNamespace_,+ lookupNamespaceURI, lookupNamespaceURI_, lookupNamespaceURIUnsafe,+ lookupNamespaceURIUnchecked, compareDocumentPosition,+ compareDocumentPosition_, contains, contains_,+ pattern ELEMENT_NODE, pattern ATTRIBUTE_NODE, pattern TEXT_NODE,+ pattern CDATA_SECTION_NODE, pattern ENTITY_REFERENCE_NODE,+ pattern ENTITY_NODE, pattern PROCESSING_INSTRUCTION_NODE,+ pattern COMMENT_NODE, pattern DOCUMENT_NODE,+ pattern DOCUMENT_TYPE_NODE, pattern DOCUMENT_FRAGMENT_NODE,+ pattern NOTATION_NODE, pattern DOCUMENT_POSITION_DISCONNECTED, pattern DOCUMENT_POSITION_PRECEDING, pattern DOCUMENT_POSITION_FOLLOWING, pattern DOCUMENT_POSITION_CONTAINS, pattern DOCUMENT_POSITION_CONTAINED_BY, pattern DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, getNodeName,- getNodeNameUnchecked, setNodeValue, getNodeValue,- getNodeValueUnchecked, getNodeType, getParentNode,- getParentNodeUnchecked, getChildNodes, getChildNodesUnchecked,- getFirstChild, getFirstChildUnchecked, getLastChild,+ getNodeNameUnsafe, getNodeNameUnchecked, setNodeValue,+ getNodeValue, getNodeValueUnsafe, getNodeValueUnchecked,+ getNodeType, getParentNode, getParentNodeUnsafe,+ getParentNodeUnchecked, getChildNodes, getChildNodesUnsafe,+ getChildNodesUnchecked, getFirstChild, getFirstChildUnsafe,+ getFirstChildUnchecked, getLastChild, getLastChildUnsafe, getLastChildUnchecked, getPreviousSibling,- getPreviousSiblingUnchecked, getNextSibling,- getNextSiblingUnchecked, getOwnerDocument,- getOwnerDocumentUnchecked, getNamespaceURI,- getNamespaceURIUnchecked, setPrefix, getPrefix, getPrefixUnchecked,- getLocalName, getLocalNameUnchecked, getBaseURI,+ getPreviousSiblingUnsafe, getPreviousSiblingUnchecked,+ getNextSibling, getNextSiblingUnsafe, getNextSiblingUnchecked,+ getOwnerDocument, getOwnerDocumentUnsafe,+ getOwnerDocumentUnchecked, getNamespaceURI, getNamespaceURIUnsafe,+ getNamespaceURIUnchecked, setPrefix, getPrefix, getPrefixUnsafe,+ getPrefixUnchecked, getLocalName, getLocalNameUnsafe,+ getLocalNameUnchecked, getBaseURI, getBaseURIUnsafe, getBaseURIUnchecked, setTextContent, getTextContent,- getTextContentUnchecked, getParentElement,- getParentElementUnchecked, Node, castToNode, gTypeNode, IsNode,- toNode)+ getTextContentUnsafe, getTextContentUnchecked, getParentElement,+ getParentElementUnsafe, getParentElementUnchecked, Node(..),+ gTypeNode, IsNode, toNode) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -49,6 +59,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.insertBefore Mozilla Node.insertBefore documentation> insertBefore ::@@ -71,6 +91,18 @@ [toJSVal newChild, toJSVal refChild])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.insertBefore Mozilla Node.insertBefore documentation> +insertBeforeUnsafe ::+ (MonadDOM m, IsNode self, IsNode newChild, IsNode refChild,+ HasCallStack) =>+ self -> Maybe newChild -> Maybe refChild -> m Node+insertBeforeUnsafe self newChild refChild+ = liftDOM+ ((((toNode self) ^. jsf "insertBefore"+ [toJSVal newChild, toJSVal refChild])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.insertBefore Mozilla Node.insertBefore documentation> insertBeforeUnchecked :: (MonadDOM m, IsNode self, IsNode newChild, IsNode refChild) => self -> Maybe newChild -> Maybe refChild -> m Node@@ -101,6 +133,18 @@ [toJSVal newChild, toJSVal oldChild])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.replaceChild Mozilla Node.replaceChild documentation> +replaceChildUnsafe ::+ (MonadDOM m, IsNode self, IsNode newChild, IsNode oldChild,+ HasCallStack) =>+ self -> Maybe newChild -> Maybe oldChild -> m Node+replaceChildUnsafe self newChild oldChild+ = liftDOM+ ((((toNode self) ^. jsf "replaceChild"+ [toJSVal newChild, toJSVal oldChild])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.replaceChild Mozilla Node.replaceChild documentation> replaceChildUnchecked :: (MonadDOM m, IsNode self, IsNode newChild, IsNode oldChild) => self -> Maybe newChild -> Maybe oldChild -> m Node@@ -128,6 +172,16 @@ (void ((toNode self) ^. jsf "removeChild" [toJSVal oldChild])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.removeChild Mozilla Node.removeChild documentation> +removeChildUnsafe ::+ (MonadDOM m, IsNode self, IsNode oldChild, HasCallStack) =>+ self -> Maybe oldChild -> m Node+removeChildUnsafe self oldChild+ = liftDOM+ ((((toNode self) ^. jsf "removeChild" [toJSVal oldChild]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.removeChild Mozilla Node.removeChild documentation> removeChildUnchecked :: (MonadDOM m, IsNode self, IsNode oldChild) => self -> Maybe oldChild -> m Node@@ -154,6 +208,16 @@ (void ((toNode self) ^. jsf "appendChild" [toJSVal newChild])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.appendChild Mozilla Node.appendChild documentation> +appendChildUnsafe ::+ (MonadDOM m, IsNode self, IsNode newChild, HasCallStack) =>+ self -> Maybe newChild -> m Node+appendChildUnsafe self newChild+ = liftDOM+ ((((toNode self) ^. jsf "appendChild" [toJSVal newChild]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.appendChild Mozilla Node.appendChild documentation> appendChildUnchecked :: (MonadDOM m, IsNode self, IsNode newChild) => self -> Maybe newChild -> m Node@@ -185,6 +249,14 @@ = liftDOM (void ((toNode self) ^. jsf "cloneNode" [toJSVal deep])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.cloneNode Mozilla Node.cloneNode documentation> +cloneNodeUnsafe ::+ (MonadDOM m, IsNode self, HasCallStack) => self -> Bool -> m Node+cloneNodeUnsafe self deep+ = liftDOM+ ((((toNode self) ^. jsf "cloneNode" [toJSVal deep]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.cloneNode Mozilla Node.cloneNode documentation> cloneNodeUnchecked :: (MonadDOM m, IsNode self) => self -> Bool -> m Node cloneNodeUnchecked self deep@@ -271,6 +343,17 @@ (void ((toNode self) ^. jsf "lookupPrefix" [toJSVal namespaceURI])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.lookupPrefix Mozilla Node.lookupPrefix documentation> +lookupPrefixUnsafe ::+ (MonadDOM m, IsNode self, ToJSString namespaceURI, HasCallStack,+ FromJSString result) =>+ self -> Maybe namespaceURI -> m result+lookupPrefixUnsafe self namespaceURI+ = liftDOM+ ((((toNode self) ^. jsf "lookupPrefix" [toJSVal namespaceURI]) >>=+ fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.lookupPrefix Mozilla Node.lookupPrefix documentation> lookupPrefixUnchecked :: (MonadDOM m, IsNode self, ToJSString namespaceURI, FromJSString result) =>@@ -317,6 +400,17 @@ (void ((toNode self) ^. jsf "lookupNamespaceURI" [toJSVal prefix])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.lookupNamespaceURI Mozilla Node.lookupNamespaceURI documentation> +lookupNamespaceURIUnsafe ::+ (MonadDOM m, IsNode self, ToJSString prefix, HasCallStack,+ FromJSString result) =>+ self -> Maybe prefix -> m result+lookupNamespaceURIUnsafe self prefix+ = liftDOM+ ((((toNode self) ^. jsf "lookupNamespaceURI" [toJSVal prefix]) >>=+ fromMaybeJSString)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.lookupNamespaceURI Mozilla Node.lookupNamespaceURI documentation> lookupNamespaceURIUnchecked :: (MonadDOM m, IsNode self, ToJSString prefix, FromJSString result) =>@@ -386,6 +480,15 @@ = liftDOM (((toNode self) ^. js "nodeName") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.nodeName Mozilla Node.nodeName documentation> +getNodeNameUnsafe ::+ (MonadDOM m, IsNode self, HasCallStack, FromJSString result) =>+ self -> m result+getNodeNameUnsafe self+ = liftDOM+ ((((toNode self) ^. js "nodeName") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.nodeName Mozilla Node.nodeName documentation> getNodeNameUnchecked :: (MonadDOM m, IsNode self, FromJSString result) => self -> m result getNodeNameUnchecked self@@ -406,6 +509,15 @@ = liftDOM (((toNode self) ^. js "nodeValue") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.nodeValue Mozilla Node.nodeValue documentation> +getNodeValueUnsafe ::+ (MonadDOM m, IsNode self, HasCallStack, FromJSString result) =>+ self -> m result+getNodeValueUnsafe self+ = liftDOM+ ((((toNode self) ^. js "nodeValue") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.nodeValue Mozilla Node.nodeValue documentation> getNodeValueUnchecked :: (MonadDOM m, IsNode self, FromJSString result) => self -> m result getNodeValueUnchecked self@@ -425,6 +537,14 @@ = liftDOM (((toNode self) ^. js "parentNode") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.parentNode Mozilla Node.parentNode documentation> +getParentNodeUnsafe ::+ (MonadDOM m, IsNode self, HasCallStack) => self -> m Node+getParentNodeUnsafe self+ = liftDOM+ ((((toNode self) ^. js "parentNode") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.parentNode Mozilla Node.parentNode documentation> getParentNodeUnchecked :: (MonadDOM m, IsNode self) => self -> m Node getParentNodeUnchecked self@@ -438,6 +558,14 @@ = liftDOM (((toNode self) ^. js "childNodes") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.childNodes Mozilla Node.childNodes documentation> +getChildNodesUnsafe ::+ (MonadDOM m, IsNode self, HasCallStack) => self -> m NodeList+getChildNodesUnsafe self+ = liftDOM+ ((((toNode self) ^. js "childNodes") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.childNodes Mozilla Node.childNodes documentation> getChildNodesUnchecked :: (MonadDOM m, IsNode self) => self -> m NodeList getChildNodesUnchecked self@@ -451,6 +579,14 @@ = liftDOM (((toNode self) ^. js "firstChild") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.firstChild Mozilla Node.firstChild documentation> +getFirstChildUnsafe ::+ (MonadDOM m, IsNode self, HasCallStack) => self -> m Node+getFirstChildUnsafe self+ = liftDOM+ ((((toNode self) ^. js "firstChild") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.firstChild Mozilla Node.firstChild documentation> getFirstChildUnchecked :: (MonadDOM m, IsNode self) => self -> m Node getFirstChildUnchecked self@@ -463,6 +599,14 @@ = liftDOM (((toNode self) ^. js "lastChild") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.lastChild Mozilla Node.lastChild documentation> +getLastChildUnsafe ::+ (MonadDOM m, IsNode self, HasCallStack) => self -> m Node+getLastChildUnsafe self+ = liftDOM+ ((((toNode self) ^. js "lastChild") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.lastChild Mozilla Node.lastChild documentation> getLastChildUnchecked :: (MonadDOM m, IsNode self) => self -> m Node getLastChildUnchecked self@@ -476,6 +620,14 @@ = liftDOM (((toNode self) ^. js "previousSibling") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.previousSibling Mozilla Node.previousSibling documentation> +getPreviousSiblingUnsafe ::+ (MonadDOM m, IsNode self, HasCallStack) => self -> m Node+getPreviousSiblingUnsafe self+ = liftDOM+ ((((toNode self) ^. js "previousSibling") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.previousSibling Mozilla Node.previousSibling documentation> getPreviousSiblingUnchecked :: (MonadDOM m, IsNode self) => self -> m Node getPreviousSiblingUnchecked self@@ -489,6 +641,14 @@ = liftDOM (((toNode self) ^. js "nextSibling") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.nextSibling Mozilla Node.nextSibling documentation> +getNextSiblingUnsafe ::+ (MonadDOM m, IsNode self, HasCallStack) => self -> m Node+getNextSiblingUnsafe self+ = liftDOM+ ((((toNode self) ^. js "nextSibling") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.nextSibling Mozilla Node.nextSibling documentation> getNextSiblingUnchecked :: (MonadDOM m, IsNode self) => self -> m Node getNextSiblingUnchecked self@@ -502,6 +662,14 @@ = liftDOM (((toNode self) ^. js "ownerDocument") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.ownerDocument Mozilla Node.ownerDocument documentation> +getOwnerDocumentUnsafe ::+ (MonadDOM m, IsNode self, HasCallStack) => self -> m Document+getOwnerDocumentUnsafe self+ = liftDOM+ ((((toNode self) ^. js "ownerDocument") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.ownerDocument Mozilla Node.ownerDocument documentation> getOwnerDocumentUnchecked :: (MonadDOM m, IsNode self) => self -> m Document getOwnerDocumentUnchecked self@@ -517,6 +685,15 @@ (((toNode self) ^. js "namespaceURI") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.namespaceURI Mozilla Node.namespaceURI documentation> +getNamespaceURIUnsafe ::+ (MonadDOM m, IsNode self, HasCallStack, FromJSString result) =>+ self -> m result+getNamespaceURIUnsafe self+ = liftDOM+ ((((toNode self) ^. js "namespaceURI") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.namespaceURI Mozilla Node.namespaceURI documentation> getNamespaceURIUnchecked :: (MonadDOM m, IsNode self, FromJSString result) => self -> m result getNamespaceURIUnchecked self@@ -538,6 +715,15 @@ = liftDOM (((toNode self) ^. js "prefix") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.prefix Mozilla Node.prefix documentation> +getPrefixUnsafe ::+ (MonadDOM m, IsNode self, HasCallStack, FromJSString result) =>+ self -> m result+getPrefixUnsafe self+ = liftDOM+ ((((toNode self) ^. js "prefix") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.prefix Mozilla Node.prefix documentation> getPrefixUnchecked :: (MonadDOM m, IsNode self, FromJSString result) => self -> m result getPrefixUnchecked self@@ -551,6 +737,15 @@ = liftDOM (((toNode self) ^. js "localName") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.localName Mozilla Node.localName documentation> +getLocalNameUnsafe ::+ (MonadDOM m, IsNode self, HasCallStack, FromJSString result) =>+ self -> m result+getLocalNameUnsafe self+ = liftDOM+ ((((toNode self) ^. js "localName") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.localName Mozilla Node.localName documentation> getLocalNameUnchecked :: (MonadDOM m, IsNode self, FromJSString result) => self -> m result getLocalNameUnchecked self@@ -565,6 +760,15 @@ = liftDOM (((toNode self) ^. js "baseURI") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.baseURI Mozilla Node.baseURI documentation> +getBaseURIUnsafe ::+ (MonadDOM m, IsNode self, HasCallStack, FromJSString result) =>+ self -> m result+getBaseURIUnsafe self+ = liftDOM+ ((((toNode self) ^. js "baseURI") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.baseURI Mozilla Node.baseURI documentation> getBaseURIUnchecked :: (MonadDOM m, IsNode self, FromJSString result) => self -> m result getBaseURIUnchecked self@@ -586,6 +790,15 @@ (((toNode self) ^. js "textContent") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.textContent Mozilla Node.textContent documentation> +getTextContentUnsafe ::+ (MonadDOM m, IsNode self, HasCallStack, FromJSString result) =>+ self -> m result+getTextContentUnsafe self+ = liftDOM+ ((((toNode self) ^. js "textContent") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.textContent Mozilla Node.textContent documentation> getTextContentUnchecked :: (MonadDOM m, IsNode self, FromJSString result) => self -> m result getTextContentUnchecked self@@ -597,6 +810,14 @@ (MonadDOM m, IsNode self) => self -> m (Maybe Element) getParentElement self = liftDOM (((toNode self) ^. js "parentElement") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.parentElement Mozilla Node.parentElement documentation> +getParentElementUnsafe ::+ (MonadDOM m, IsNode self, HasCallStack) => self -> m Element+getParentElementUnsafe self+ = liftDOM+ ((((toNode self) ^. js "parentElement") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.parentElement Mozilla Node.parentElement documentation> getParentElementUnchecked ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.NodeFilter (acceptNode, acceptNode_, pattern FILTER_ACCEPT,@@ -8,10 +11,10 @@ pattern SHOW_ENTITY, pattern SHOW_PROCESSING_INSTRUCTION, pattern SHOW_COMMENT, pattern SHOW_DOCUMENT, pattern SHOW_DOCUMENT_TYPE, pattern SHOW_DOCUMENT_FRAGMENT,- pattern SHOW_NOTATION, NodeFilter, castToNodeFilter,- gTypeNodeFilter)+ pattern SHOW_NOTATION, NodeFilter(..), gTypeNodeFilter) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -22,6 +25,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/NodeFilter.acceptNode Mozilla NodeFilter.acceptNode documentation> acceptNode ::
@@ -1,14 +1,19 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.NodeIterator- (nextNode, nextNode_, nextNodeUnchecked, previousNode,- previousNode_, previousNodeUnchecked, detach, getRoot,- getRootUnchecked, getWhatToShow, getFilter, getFilterUnchecked,- getExpandEntityReferences, getReferenceNode,- getReferenceNodeUnchecked, getPointerBeforeReferenceNode,- NodeIterator, castToNodeIterator, gTypeNodeIterator)+ (nextNode, nextNode_, nextNodeUnsafe, nextNodeUnchecked,+ previousNode, previousNode_, previousNodeUnsafe,+ previousNodeUnchecked, detach, getRoot, getRootUnsafe,+ getRootUnchecked, getWhatToShow, getFilter, getFilterUnsafe,+ getFilterUnchecked, getExpandEntityReferences, getReferenceNode,+ getReferenceNodeUnsafe, getReferenceNodeUnchecked,+ getPointerBeforeReferenceNode, NodeIterator(..), gTypeNodeIterator) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +24,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator.nextNode Mozilla NodeIterator.nextNode documentation> nextNode :: (MonadDOM m) => NodeIterator -> m (Maybe Node)@@ -29,6 +44,14 @@ nextNode_ self = liftDOM (void (self ^. jsf "nextNode" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator.nextNode Mozilla NodeIterator.nextNode documentation> +nextNodeUnsafe ::+ (MonadDOM m, HasCallStack) => NodeIterator -> m Node+nextNodeUnsafe self+ = liftDOM+ (((self ^. jsf "nextNode" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator.nextNode Mozilla NodeIterator.nextNode documentation> nextNodeUnchecked :: (MonadDOM m) => NodeIterator -> m Node nextNodeUnchecked self = liftDOM ((self ^. jsf "nextNode" ()) >>= fromJSValUnchecked)@@ -43,6 +66,14 @@ previousNode_ self = liftDOM (void (self ^. jsf "previousNode" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator.previousNode Mozilla NodeIterator.previousNode documentation> +previousNodeUnsafe ::+ (MonadDOM m, HasCallStack) => NodeIterator -> m Node+previousNodeUnsafe self+ = liftDOM+ (((self ^. jsf "previousNode" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator.previousNode Mozilla NodeIterator.previousNode documentation> previousNodeUnchecked :: (MonadDOM m) => NodeIterator -> m Node previousNodeUnchecked self = liftDOM ((self ^. jsf "previousNode" ()) >>= fromJSValUnchecked)@@ -56,6 +87,14 @@ getRoot self = liftDOM ((self ^. js "root") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator.root Mozilla NodeIterator.root documentation> +getRootUnsafe ::+ (MonadDOM m, HasCallStack) => NodeIterator -> m Node+getRootUnsafe self+ = liftDOM+ (((self ^. js "root") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator.root Mozilla NodeIterator.root documentation> getRootUnchecked :: (MonadDOM m) => NodeIterator -> m Node getRootUnchecked self = liftDOM ((self ^. js "root") >>= fromJSValUnchecked)@@ -70,6 +109,14 @@ getFilter self = liftDOM ((self ^. js "filter") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator.filter Mozilla NodeIterator.filter documentation> +getFilterUnsafe ::+ (MonadDOM m, HasCallStack) => NodeIterator -> m NodeFilter+getFilterUnsafe self+ = liftDOM+ (((self ^. js "filter") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator.filter Mozilla NodeIterator.filter documentation> getFilterUnchecked :: (MonadDOM m) => NodeIterator -> m NodeFilter getFilterUnchecked self = liftDOM ((self ^. js "filter") >>= fromJSValUnchecked)@@ -83,6 +130,14 @@ getReferenceNode :: (MonadDOM m) => NodeIterator -> m (Maybe Node) getReferenceNode self = liftDOM ((self ^. js "referenceNode") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator.referenceNode Mozilla NodeIterator.referenceNode documentation> +getReferenceNodeUnsafe ::+ (MonadDOM m, HasCallStack) => NodeIterator -> m Node+getReferenceNodeUnsafe self+ = liftDOM+ (((self ^. js "referenceNode") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator.referenceNode Mozilla NodeIterator.referenceNode documentation> getReferenceNodeUnchecked :: (MonadDOM m) => NodeIterator -> m Node
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.NodeList- (item, item_, itemUnchecked, getLength, NodeList, castToNodeList,+ (item, item_, itemUnsafe, itemUnchecked, getLength, NodeList(..), gTypeNodeList, IsNodeList, toNodeList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/NodeList.item Mozilla NodeList.item documentation> item ::@@ -27,6 +41,15 @@ item_ :: (MonadDOM m, IsNodeList self) => self -> Word -> m () item_ self index = liftDOM (void ((toNodeList self) ^. jsf "item" [toJSVal index]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/NodeList.item Mozilla NodeList.item documentation> +itemUnsafe ::+ (MonadDOM m, IsNodeList self, HasCallStack) =>+ self -> Word -> m Node+itemUnsafe self index+ = liftDOM+ ((((toNodeList self) ^. jsf "item" [toJSVal index]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/NodeList.item Mozilla NodeList.item documentation> itemUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Notification- (show, showEvent, error, close, click, Notification,- castToNotification, gTypeNotification)+ (show, showEvent, error, close, click, Notification(..),+ gTypeNotification) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Notification.show Mozilla Notification.show documentation> show :: (MonadDOM m) => Notification -> m ()
@@ -1,12 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.NotificationCenter- (createNotification, createNotification_,+ (createNotification, createNotification_, createNotificationUnsafe, createNotificationUnchecked, checkPermission, checkPermission_,- requestPermission, NotificationCenter, castToNotificationCenter,- gTypeNotificationCenter)+ requestPermission, NotificationCenter(..), gTypeNotificationCenter) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/NotificationCenter.createNotification Mozilla NotificationCenter.createNotification documentation> createNotification ::@@ -40,6 +53,18 @@ (void (self ^. jsf "createNotification" [toJSVal iconUrl, toJSVal title, toJSVal body]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/NotificationCenter.createNotification Mozilla NotificationCenter.createNotification documentation> +createNotificationUnsafe ::+ (MonadDOM m, ToJSString iconUrl, ToJSString title, ToJSString body,+ HasCallStack) =>+ NotificationCenter -> iconUrl -> title -> body -> m Notification+createNotificationUnsafe self iconUrl title body+ = liftDOM+ (((self ^. jsf "createNotification"+ [toJSVal iconUrl, toJSVal title, toJSVal body])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/NotificationCenter.createNotification Mozilla NotificationCenter.createNotification documentation> createNotificationUnchecked ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.NotificationPermissionCallback (newNotificationPermissionCallback,@@ -7,6 +10,7 @@ NotificationPermissionCallback) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/NotificationPermissionCallback Mozilla NotificationPermissionCallback documentation> newNotificationPermissionCallback ::
@@ -1,11 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.OESStandardDerivatives (pattern FRAGMENT_SHADER_DERIVATIVE_HINT_OES,- OESStandardDerivatives, castToOESStandardDerivatives,- gTypeOESStandardDerivatives)+ OESStandardDerivatives(..), gTypeOESStandardDerivatives) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,4 +19,14 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 35723
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.OESTextureHalfFloat- (pattern HALF_FLOAT_OES, OESTextureHalfFloat,- castToOESTextureHalfFloat, gTypeOESTextureHalfFloat)+ (pattern HALF_FLOAT_OES, OESTextureHalfFloat(..),+ gTypeOESTextureHalfFloat) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,4 +19,14 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern HALF_FLOAT_OES = 36193
@@ -1,13 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.OESVertexArrayObject (createVertexArrayOES, createVertexArrayOES_,- createVertexArrayOESUnchecked, deleteVertexArrayOES,- isVertexArrayOES, isVertexArrayOES_, bindVertexArrayOES,- pattern VERTEX_ARRAY_BINDING_OES, OESVertexArrayObject,- castToOESVertexArrayObject, gTypeOESVertexArrayObject)+ createVertexArrayOESUnsafe, createVertexArrayOESUnchecked,+ deleteVertexArrayOES, isVertexArrayOES, isVertexArrayOES_,+ bindVertexArrayOES, pattern VERTEX_ARRAY_BINDING_OES,+ OESVertexArrayObject(..), gTypeOESVertexArrayObject) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/OESVertexArrayObject.createVertexArrayOES Mozilla OESVertexArrayObject.createVertexArrayOES documentation> createVertexArrayOES ::@@ -31,6 +45,15 @@ (MonadDOM m) => OESVertexArrayObject -> m () createVertexArrayOES_ self = liftDOM (void (self ^. jsf "createVertexArrayOES" ()))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/OESVertexArrayObject.createVertexArrayOES Mozilla OESVertexArrayObject.createVertexArrayOES documentation> +createVertexArrayOESUnsafe ::+ (MonadDOM m, HasCallStack) =>+ OESVertexArrayObject -> m WebGLVertexArrayObjectOES+createVertexArrayOESUnsafe self+ = liftDOM+ (((self ^. jsf "createVertexArrayOES" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/OESVertexArrayObject.createVertexArrayOES Mozilla OESVertexArrayObject.createVertexArrayOES documentation> createVertexArrayOESUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.OfflineAudioCompletionEvent- (getRenderedBuffer, getRenderedBufferUnchecked,- OfflineAudioCompletionEvent, castToOfflineAudioCompletionEvent,+ (getRenderedBuffer, getRenderedBufferUnsafe,+ getRenderedBufferUnchecked, OfflineAudioCompletionEvent(..), gTypeOfflineAudioCompletionEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioCompletionEvent.renderedBuffer Mozilla OfflineAudioCompletionEvent.renderedBuffer documentation> getRenderedBuffer ::@@ -23,6 +37,15 @@ OfflineAudioCompletionEvent -> m (Maybe AudioBuffer) getRenderedBuffer self = liftDOM ((self ^. js "renderedBuffer") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioCompletionEvent.renderedBuffer Mozilla OfflineAudioCompletionEvent.renderedBuffer documentation> +getRenderedBufferUnsafe ::+ (MonadDOM m, HasCallStack) =>+ OfflineAudioCompletionEvent -> m AudioBuffer+getRenderedBufferUnsafe self+ = liftDOM+ (((self ^. js "renderedBuffer") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioCompletionEvent.renderedBuffer Mozilla OfflineAudioCompletionEvent.renderedBuffer documentation> getRenderedBufferUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.OfflineAudioContext- (newOfflineAudioContext, OfflineAudioContext,- castToOfflineAudioContext, gTypeOfflineAudioContext)+ (newOfflineAudioContext, OfflineAudioContext(..),+ gTypeOfflineAudioContext) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext Mozilla OfflineAudioContext documentation> newOfflineAudioContext ::
@@ -1,15 +1,19 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.OscillatorNode (start, stop, noteOn, noteOff, setPeriodicWave, pattern SINE, pattern SQUARE, pattern SAWTOOTH, pattern TRIANGLE, pattern CUSTOM, pattern UNSCHEDULED_STATE, pattern SCHEDULED_STATE, pattern PLAYING_STATE, pattern FINISHED_STATE, setType, getType,- getPlaybackState, getFrequency, getFrequencyUnchecked, getDetune,- getDetuneUnchecked, ended, OscillatorNode, castToOscillatorNode,- gTypeOscillatorNode)+ getPlaybackState, getFrequency, getFrequencyUnsafe,+ getFrequencyUnchecked, getDetune, getDetuneUnsafe,+ getDetuneUnchecked, ended, OscillatorNode(..), gTypeOscillatorNode) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -20,6 +24,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode.start Mozilla OscillatorNode.start documentation> start :: (MonadDOM m) => OscillatorNode -> Double -> m ()@@ -78,6 +92,14 @@ = liftDOM ((self ^. js "frequency") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode.frequency Mozilla OscillatorNode.frequency documentation> +getFrequencyUnsafe ::+ (MonadDOM m, HasCallStack) => OscillatorNode -> m AudioParam+getFrequencyUnsafe self+ = liftDOM+ (((self ^. js "frequency") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode.frequency Mozilla OscillatorNode.frequency documentation> getFrequencyUnchecked :: (MonadDOM m) => OscillatorNode -> m AudioParam getFrequencyUnchecked self@@ -86,6 +108,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode.detune Mozilla OscillatorNode.detune documentation> getDetune :: (MonadDOM m) => OscillatorNode -> m (Maybe AudioParam) getDetune self = liftDOM ((self ^. js "detune") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode.detune Mozilla OscillatorNode.detune documentation> +getDetuneUnsafe ::+ (MonadDOM m, HasCallStack) => OscillatorNode -> m AudioParam+getDetuneUnsafe self+ = liftDOM+ (((self ^. js "detune") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode.detune Mozilla OscillatorNode.detune documentation> getDetuneUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.OverflowEvent (pattern HORIZONTAL, pattern VERTICAL, pattern BOTH, getOrient,- getHorizontalOverflow, getVerticalOverflow, OverflowEvent,- castToOverflowEvent, gTypeOverflowEvent)+ getHorizontalOverflow, getVerticalOverflow, OverflowEvent(..),+ gTypeOverflowEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern HORIZONTAL = 0 pattern VERTICAL = 1 pattern BOTH = 2
@@ -1,10 +1,13 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.PageTransitionEvent- (getPersisted, PageTransitionEvent, castToPageTransitionEvent,- gTypePageTransitionEvent)+ (getPersisted, PageTransitionEvent(..), gTypePageTransitionEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +18,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/PageTransitionEvent.persisted Mozilla PageTransitionEvent.persisted documentation> getPersisted :: (MonadDOM m) => PageTransitionEvent -> m Bool
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.PannerNode (setPosition, setOrientation, setVelocity, pattern EQUALPOWER,@@ -8,10 +11,11 @@ getDistanceModel, setRefDistance, getRefDistance, setMaxDistance, getMaxDistance, setRolloffFactor, getRolloffFactor, setConeInnerAngle, getConeInnerAngle, setConeOuterAngle,- getConeOuterAngle, setConeOuterGain, getConeOuterGain, PannerNode,- castToPannerNode, gTypePannerNode)+ getConeOuterAngle, setConeOuterGain, getConeOuterGain,+ PannerNode(..), gTypePannerNode) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -22,6 +26,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitAudioPannerNode.setPosition Mozilla webkitAudioPannerNode.setPosition documentation> setPosition ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Path2D (newPath2D, newPath2D', newPath2D'', addPath, closePath, moveTo,- lineTo, quadraticCurveTo, bezierCurveTo, arcTo, rect, arc, Path2D,- castToPath2D, gTypePath2D)+ lineTo, quadraticCurveTo, bezierCurveTo, arcTo, rect, arc,+ Path2D(..), gTypePath2D) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Path2D Mozilla Path2D documentation> newPath2D :: (MonadDOM m) => m Path2D
@@ -1,17 +1,23 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Performance- (webkitGetEntries, webkitGetEntries_, webkitGetEntriesUnchecked,- webkitGetEntriesByType, webkitGetEntriesByType_,+ (webkitGetEntries, webkitGetEntries_, webkitGetEntriesUnsafe,+ webkitGetEntriesUnchecked, webkitGetEntriesByType,+ webkitGetEntriesByType_, webkitGetEntriesByTypeUnsafe, webkitGetEntriesByTypeUnchecked, webkitGetEntriesByName,- webkitGetEntriesByName_, webkitGetEntriesByNameUnchecked,- webkitClearResourceTimings, webkitSetResourceTimingBufferSize,- webkitMark, webkitClearMarks, webkitMeasure, webkitClearMeasures,- now, now_, getNavigation, getNavigationUnchecked, getTiming,- getTimingUnchecked, webKitResourceTimingBufferFull, Performance,- castToPerformance, gTypePerformance)+ webkitGetEntriesByName_, webkitGetEntriesByNameUnsafe,+ webkitGetEntriesByNameUnchecked, webkitClearResourceTimings,+ webkitSetResourceTimingBufferSize, webkitMark, webkitClearMarks,+ webkitMeasure, webkitClearMeasures, now, now_, getNavigation,+ getNavigationUnsafe, getNavigationUnchecked, getTiming,+ getTimingUnsafe, getTimingUnchecked,+ webKitResourceTimingBufferFull, Performance(..), gTypePerformance) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -22,6 +28,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Performance.webkitGetEntries Mozilla Performance.webkitGetEntries documentation> webkitGetEntries ::@@ -35,6 +51,14 @@ = liftDOM (void (self ^. jsf "webkitGetEntries" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Performance.webkitGetEntries Mozilla Performance.webkitGetEntries documentation> +webkitGetEntriesUnsafe ::+ (MonadDOM m, HasCallStack) => Performance -> m PerformanceEntryList+webkitGetEntriesUnsafe self+ = liftDOM+ (((self ^. jsf "webkitGetEntries" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Performance.webkitGetEntries Mozilla Performance.webkitGetEntries documentation> webkitGetEntriesUnchecked :: (MonadDOM m) => Performance -> m PerformanceEntryList webkitGetEntriesUnchecked self@@ -59,6 +83,16 @@ (void (self ^. jsf "webkitGetEntriesByType" [toJSVal entryType])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Performance.webkitGetEntriesByType Mozilla Performance.webkitGetEntriesByType documentation> +webkitGetEntriesByTypeUnsafe ::+ (MonadDOM m, ToJSString entryType, HasCallStack) =>+ Performance -> entryType -> m PerformanceEntryList+webkitGetEntriesByTypeUnsafe self entryType+ = liftDOM+ (((self ^. jsf "webkitGetEntriesByType" [toJSVal entryType]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Performance.webkitGetEntriesByType Mozilla Performance.webkitGetEntriesByType documentation> webkitGetEntriesByTypeUnchecked :: (MonadDOM m, ToJSString entryType) => Performance -> entryType -> m PerformanceEntryList@@ -88,6 +122,18 @@ [toJSVal name, toJSVal entryType])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Performance.webkitGetEntriesByName Mozilla Performance.webkitGetEntriesByName documentation> +webkitGetEntriesByNameUnsafe ::+ (MonadDOM m, ToJSString name, ToJSString entryType,+ HasCallStack) =>+ Performance -> name -> entryType -> m PerformanceEntryList+webkitGetEntriesByNameUnsafe self name entryType+ = liftDOM+ (((self ^. jsf "webkitGetEntriesByName"+ [toJSVal name, toJSVal entryType])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Performance.webkitGetEntriesByName Mozilla Performance.webkitGetEntriesByName documentation> webkitGetEntriesByNameUnchecked :: (MonadDOM m, ToJSString name, ToJSString entryType) => Performance -> name -> entryType -> m PerformanceEntryList@@ -160,6 +206,15 @@ = liftDOM ((self ^. js "navigation") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Performance.navigation Mozilla Performance.navigation documentation> +getNavigationUnsafe ::+ (MonadDOM m, HasCallStack) =>+ Performance -> m PerformanceNavigation+getNavigationUnsafe self+ = liftDOM+ (((self ^. js "navigation") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Performance.navigation Mozilla Performance.navigation documentation> getNavigationUnchecked :: (MonadDOM m) => Performance -> m PerformanceNavigation getNavigationUnchecked self@@ -169,6 +224,14 @@ getTiming :: (MonadDOM m) => Performance -> m (Maybe PerformanceTiming) getTiming self = liftDOM ((self ^. js "timing") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Performance.timing Mozilla Performance.timing documentation> +getTimingUnsafe ::+ (MonadDOM m, HasCallStack) => Performance -> m PerformanceTiming+getTimingUnsafe self+ = liftDOM+ (((self ^. js "timing") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Performance.timing Mozilla Performance.timing documentation> getTimingUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.PerformanceEntry (getName, getEntryType, getStartTime, getDuration,- PerformanceEntry, castToPerformanceEntry, gTypePerformanceEntry,- IsPerformanceEntry, toPerformanceEntry)+ PerformanceEntry(..), gTypePerformanceEntry, IsPerformanceEntry,+ toPerformanceEntry) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry.name Mozilla PerformanceEntry.name documentation> getName ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.PerformanceEntryList- (item, item_, itemUnchecked, getLength, PerformanceEntryList,- castToPerformanceEntryList, gTypePerformanceEntryList)+ (item, item_, itemUnsafe, itemUnchecked, getLength,+ PerformanceEntryList(..), gTypePerformanceEntryList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntryList.item Mozilla PerformanceEntryList.item documentation> item ::@@ -27,6 +41,15 @@ item_ :: (MonadDOM m) => PerformanceEntryList -> Word -> m () item_ self index = liftDOM (void (self ^. jsf "item" [toJSVal index]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntryList.item Mozilla PerformanceEntryList.item documentation> +itemUnsafe ::+ (MonadDOM m, HasCallStack) =>+ PerformanceEntryList -> Word -> m PerformanceEntry+itemUnsafe self index+ = liftDOM+ (((self ^. jsf "item" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntryList.item Mozilla PerformanceEntryList.item documentation> itemUnchecked ::
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.PerformanceNavigation (pattern TYPE_NAVIGATE, pattern TYPE_RELOAD, pattern TYPE_BACK_FORWARD, pattern TYPE_RESERVED, getType,- getRedirectCount, PerformanceNavigation,- castToPerformanceNavigation, gTypePerformanceNavigation)+ getRedirectCount, PerformanceNavigation(..),+ gTypePerformanceNavigation) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern TYPE_NAVIGATE = 0 pattern TYPE_RELOAD = 1 pattern TYPE_BACK_FORWARD = 2
@@ -1,13 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.PerformanceResourceTiming (getInitiatorType, getRedirectStart, getRedirectEnd, getFetchStart, getDomainLookupStart, getDomainLookupEnd, getConnectStart, getConnectEnd, getSecureConnectionStart, getRequestStart,- getResponseEnd, PerformanceResourceTiming,- castToPerformanceResourceTiming, gTypePerformanceResourceTiming)+ getResponseEnd, PerformanceResourceTiming(..),+ gTypePerformanceResourceTiming) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming.initiatorType Mozilla PerformanceResourceTiming.initiatorType documentation> getInitiatorType ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.PerformanceTiming (getNavigationStart, getUnloadEventStart, getUnloadEventEnd,@@ -8,9 +11,10 @@ getResponseStart, getResponseEnd, getDomLoading, getDomInteractive, getDomContentLoadedEventStart, getDomContentLoadedEventEnd, getDomComplete, getLoadEventStart, getLoadEventEnd,- PerformanceTiming, castToPerformanceTiming, gTypePerformanceTiming)+ PerformanceTiming(..), gTypePerformanceTiming) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -21,6 +25,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming.navigationStart Mozilla PerformanceTiming.navigationStart documentation> getNavigationStart :: (MonadDOM m) => PerformanceTiming -> m Word64
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Plugin- (item, item_, itemUnchecked, namedItem, namedItem_,- namedItemUnchecked, getName, getFilename, getDescription,- getLength, Plugin, castToPlugin, gTypePlugin)+ (item, item_, itemUnsafe, itemUnchecked, namedItem, namedItem_,+ namedItemUnsafe, namedItemUnchecked, getName, getFilename,+ getDescription, getLength, Plugin(..), gTypePlugin) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Plugin.item Mozilla Plugin.item documentation> item :: (MonadDOM m) => Plugin -> Word -> m (Maybe MimeType)@@ -28,6 +42,14 @@ = liftDOM (void (self ^. jsf "item" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Plugin.item Mozilla Plugin.item documentation> +itemUnsafe ::+ (MonadDOM m, HasCallStack) => Plugin -> Word -> m MimeType+itemUnsafe self index+ = liftDOM+ (((self ^. jsf "item" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Plugin.item Mozilla Plugin.item documentation> itemUnchecked :: (MonadDOM m) => Plugin -> Word -> m MimeType itemUnchecked self index = liftDOM@@ -45,6 +67,15 @@ (MonadDOM m, ToJSString name) => Plugin -> name -> m () namedItem_ self name = liftDOM (void (self ^. jsf "namedItem" [toJSVal name]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Plugin.namedItem Mozilla Plugin.namedItem documentation> +namedItemUnsafe ::+ (MonadDOM m, ToJSString name, HasCallStack) =>+ Plugin -> name -> m MimeType+namedItemUnsafe self name+ = liftDOM+ (((self ^. jsf "namedItem" [toJSVal name]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Plugin.namedItem Mozilla Plugin.namedItem documentation> namedItemUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.PluginArray- (item, item_, itemUnchecked, namedItem, namedItem_,- namedItemUnchecked, refresh, getLength, PluginArray,- castToPluginArray, gTypePluginArray)+ (item, item_, itemUnsafe, itemUnchecked, namedItem, namedItem_,+ namedItemUnsafe, namedItemUnchecked, refresh, getLength,+ PluginArray(..), gTypePluginArray) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/PluginArray.item Mozilla PluginArray.item documentation> item :: (MonadDOM m) => PluginArray -> Word -> m (Maybe Plugin)@@ -28,6 +42,14 @@ = liftDOM (void (self ^. jsf "item" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/PluginArray.item Mozilla PluginArray.item documentation> +itemUnsafe ::+ (MonadDOM m, HasCallStack) => PluginArray -> Word -> m Plugin+itemUnsafe self index+ = liftDOM+ (((self ^. jsf "item" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/PluginArray.item Mozilla PluginArray.item documentation> itemUnchecked :: (MonadDOM m) => PluginArray -> Word -> m Plugin itemUnchecked self index = liftDOM@@ -45,6 +67,15 @@ (MonadDOM m, ToJSString name) => PluginArray -> name -> m () namedItem_ self name = liftDOM (void (self ^. jsf "namedItem" [toJSVal name]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/PluginArray.namedItem Mozilla PluginArray.namedItem documentation> +namedItemUnsafe ::+ (MonadDOM m, ToJSString name, HasCallStack) =>+ PluginArray -> name -> m Plugin+namedItemUnsafe self name+ = liftDOM+ (((self ^. jsf "namedItem" [toJSVal name]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/PluginArray.namedItem Mozilla PluginArray.namedItem documentation> namedItemUnchecked ::
@@ -1,9 +1,12 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.PopStateEvent- (getState, PopStateEvent, castToPopStateEvent, gTypePopStateEvent)- where+ (getState, PopStateEvent(..), gTypePopStateEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -14,6 +17,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/PopStateEvent.state Mozilla PopStateEvent.state documentation> getState :: (MonadDOM m) => PopStateEvent -> m JSVal
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.PositionCallback (newPositionCallback, newPositionCallbackSync, newPositionCallbackAsync, PositionCallback) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/PositionCallback Mozilla PositionCallback documentation> newPositionCallback ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.PositionError (pattern PERMISSION_DENIED, pattern POSITION_UNAVAILABLE,- pattern TIMEOUT, getCode, getMessage, PositionError,- castToPositionError, gTypePositionError)+ pattern TIMEOUT, getCode, getMessage, PositionError(..),+ gTypePositionError) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern PERMISSION_DENIED = 1 pattern POSITION_UNAVAILABLE = 2 pattern TIMEOUT = 3
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.PositionErrorCallback (newPositionErrorCallback, newPositionErrorCallbackSync, newPositionErrorCallbackAsync, PositionErrorCallback) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/PositionErrorCallback Mozilla PositionErrorCallback documentation> newPositionErrorCallback ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.ProcessingInstruction- (getTarget, getTargetUnchecked, getSheet, getSheetUnchecked,- ProcessingInstruction, castToProcessingInstruction,+ (getTarget, getTargetUnsafe, getTargetUnchecked, getSheet,+ getSheetUnsafe, getSheetUnchecked, ProcessingInstruction(..), gTypeProcessingInstruction) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction.target Mozilla ProcessingInstruction.target documentation> getTarget ::@@ -25,6 +39,15 @@ = liftDOM ((self ^. js "target") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction.target Mozilla ProcessingInstruction.target documentation> +getTargetUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ ProcessingInstruction -> m result+getTargetUnsafe self+ = liftDOM+ (((self ^. js "target") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction.target Mozilla ProcessingInstruction.target documentation> getTargetUnchecked :: (MonadDOM m, FromJSString result) => ProcessingInstruction -> m result@@ -35,6 +58,14 @@ getSheet :: (MonadDOM m) => ProcessingInstruction -> m (Maybe StyleSheet) getSheet self = liftDOM ((self ^. js "sheet") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction.sheet Mozilla ProcessingInstruction.sheet documentation> +getSheetUnsafe ::+ (MonadDOM m, HasCallStack) => ProcessingInstruction -> m StyleSheet+getSheetUnsafe self+ = liftDOM+ (((self ^. js "sheet") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction.sheet Mozilla ProcessingInstruction.sheet documentation> getSheetUnchecked ::
@@ -1,11 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.ProgressEvent- (getLengthComputable, getLoaded, getTotal, ProgressEvent,- castToProgressEvent, gTypeProgressEvent, IsProgressEvent,- toProgressEvent)+ (getLengthComputable, getLoaded, getTotal, ProgressEvent(..),+ gTypeProgressEvent, IsProgressEvent, toProgressEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent.lengthComputable Mozilla ProgressEvent.lengthComputable documentation> getLengthComputable ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.QuickTimePluginReplacement (postEvent, getMovieSize, getTimedMetaData, getAccessLog,- getErrorLog, QuickTimePluginReplacement,- castToQuickTimePluginReplacement, gTypeQuickTimePluginReplacement)+ getErrorLog, QuickTimePluginReplacement(..),+ gTypeQuickTimePluginReplacement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/QuickTimePluginReplacement.postEvent Mozilla QuickTimePluginReplacement.postEvent documentation> postEvent ::
@@ -1,10 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.RGBColor- (getRed, getRedUnchecked, getGreen, getGreenUnchecked, getBlue,- getBlueUnchecked, RGBColor, castToRGBColor, gTypeRGBColor)+ (getRed, getRedUnsafe, getRedUnchecked, getGreen, getGreenUnsafe,+ getGreenUnchecked, getBlue, getBlueUnsafe, getBlueUnchecked,+ RGBColor(..), gTypeRGBColor) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,12 +20,30 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/RGBColor.red Mozilla RGBColor.red documentation> getRed :: (MonadDOM m) => RGBColor -> m (Maybe CSSPrimitiveValue) getRed self = liftDOM ((self ^. js "red") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/RGBColor.red Mozilla RGBColor.red documentation> +getRedUnsafe ::+ (MonadDOM m, HasCallStack) => RGBColor -> m CSSPrimitiveValue+getRedUnsafe self+ = liftDOM+ (((self ^. js "red") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/RGBColor.red Mozilla RGBColor.red documentation> getRedUnchecked :: (MonadDOM m) => RGBColor -> m CSSPrimitiveValue getRedUnchecked self = liftDOM ((self ^. js "red") >>= fromJSValUnchecked)@@ -30,6 +53,14 @@ getGreen self = liftDOM ((self ^. js "green") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/RGBColor.green Mozilla RGBColor.green documentation> +getGreenUnsafe ::+ (MonadDOM m, HasCallStack) => RGBColor -> m CSSPrimitiveValue+getGreenUnsafe self+ = liftDOM+ (((self ^. js "green") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/RGBColor.green Mozilla RGBColor.green documentation> getGreenUnchecked :: (MonadDOM m) => RGBColor -> m CSSPrimitiveValue getGreenUnchecked self@@ -38,6 +69,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/RGBColor.blue Mozilla RGBColor.blue documentation> getBlue :: (MonadDOM m) => RGBColor -> m (Maybe CSSPrimitiveValue) getBlue self = liftDOM ((self ^. js "blue") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/RGBColor.blue Mozilla RGBColor.blue documentation> +getBlueUnsafe ::+ (MonadDOM m, HasCallStack) => RGBColor -> m CSSPrimitiveValue+getBlueUnsafe self+ = liftDOM+ (((self ^. js "blue") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/RGBColor.blue Mozilla RGBColor.blue documentation> getBlueUnchecked :: (MonadDOM m) => RGBColor -> m CSSPrimitiveValue
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.RTCConfiguration (getIceServers, getIceTransports, getRequestIdentity,- RTCConfiguration, castToRTCConfiguration, gTypeRTCConfiguration)+ RTCConfiguration(..), gTypeRTCConfiguration) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCConfiguration.iceServers Mozilla RTCConfiguration.iceServers documentation> getIceServers ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.RTCDTMFSender- (insertDTMF, getCanInsertDTMF, getTrack, getTrackUnchecked,- getToneBuffer, getDuration, getInterToneGap, toneChange,- RTCDTMFSender, castToRTCDTMFSender, gTypeRTCDTMFSender)+ (insertDTMF, getCanInsertDTMF, getTrack, getTrackUnsafe,+ getTrackUnchecked, getToneBuffer, getDuration, getInterToneGap,+ toneChange, RTCDTMFSender(..), gTypeRTCDTMFSender) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender.insertDTMF Mozilla RTCDTMFSender.insertDTMF documentation> insertDTMF ::@@ -36,6 +50,14 @@ getTrack :: (MonadDOM m) => RTCDTMFSender -> m (Maybe MediaStreamTrack) getTrack self = liftDOM ((self ^. js "track") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender.track Mozilla RTCDTMFSender.track documentation> +getTrackUnsafe ::+ (MonadDOM m, HasCallStack) => RTCDTMFSender -> m MediaStreamTrack+getTrackUnsafe self+ = liftDOM+ (((self ^. js "track") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender.track Mozilla RTCDTMFSender.track documentation> getTrackUnchecked ::
@@ -1,10 +1,13 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.RTCDTMFToneChangeEvent- (getTone, RTCDTMFToneChangeEvent, castToRTCDTMFToneChangeEvent,- gTypeRTCDTMFToneChangeEvent)+ (getTone, RTCDTMFToneChangeEvent(..), gTypeRTCDTMFToneChangeEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +18,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFToneChangeEvent.tone Mozilla RTCDTMFToneChangeEvent.tone documentation> getTone ::
@@ -1,13 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.RTCDataChannel (send, sendView, sendBlob, sendString, close, getLabel, getOrdered, getMaxRetransmitTime, getMaxRetransmits, getProtocol, getNegotiated, getId, getReadyState, getBufferedAmount, setBinaryType, getBinaryType, open, error, closeEvent, message,- RTCDataChannel, castToRTCDataChannel, gTypeRTCDataChannel)+ RTCDataChannel(..), gTypeRTCDataChannel) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel.send Mozilla RTCDataChannel.send documentation> send ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.RTCDataChannelEvent- (getChannel, getChannelUnchecked, RTCDataChannelEvent,- castToRTCDataChannelEvent, gTypeRTCDataChannelEvent)+ (getChannel, getChannelUnsafe, getChannelUnchecked,+ RTCDataChannelEvent(..), gTypeRTCDataChannelEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,11 +19,30 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannelEvent.channel Mozilla RTCDataChannelEvent.channel documentation> getChannel :: (MonadDOM m) => RTCDataChannelEvent -> m (Maybe RTCDataChannel) getChannel self = liftDOM ((self ^. js "channel") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannelEvent.channel Mozilla RTCDataChannelEvent.channel documentation> +getChannelUnsafe ::+ (MonadDOM m, HasCallStack) =>+ RTCDataChannelEvent -> m RTCDataChannel+getChannelUnsafe self+ = liftDOM+ (((self ^. js "channel") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannelEvent.channel Mozilla RTCDataChannelEvent.channel documentation> getChannelUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.RTCIceCandidate (newRTCIceCandidate, getCandidate, getSdpMid, getSdpMLineIndex,- RTCIceCandidate, castToRTCIceCandidate, gTypeRTCIceCandidate)+ RTCIceCandidate(..), gTypeRTCIceCandidate) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate Mozilla RTCIceCandidate documentation> newRTCIceCandidate ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.RTCIceCandidateEvent- (getCandidate, getCandidateUnchecked, RTCIceCandidateEvent,- castToRTCIceCandidateEvent, gTypeRTCIceCandidateEvent)+ (getCandidate, getCandidateUnsafe, getCandidateUnchecked,+ RTCIceCandidateEvent(..), gTypeRTCIceCandidateEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,12 +19,31 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidateEvent.candidate Mozilla RTCIceCandidateEvent.candidate documentation> getCandidate :: (MonadDOM m) => RTCIceCandidateEvent -> m (Maybe RTCIceCandidate) getCandidate self = liftDOM ((self ^. js "candidate") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidateEvent.candidate Mozilla RTCIceCandidateEvent.candidate documentation> +getCandidateUnsafe ::+ (MonadDOM m, HasCallStack) =>+ RTCIceCandidateEvent -> m RTCIceCandidate+getCandidateUnsafe self+ = liftDOM+ (((self ^. js "candidate") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidateEvent.candidate Mozilla RTCIceCandidateEvent.candidate documentation> getCandidateUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.RTCIceServer- (getUrls, getUsername, getCredential, RTCIceServer,- castToRTCIceServer, gTypeRTCIceServer)+ (getUrls, getUsername, getCredential, RTCIceServer(..),+ gTypeRTCIceServer) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer.urls Mozilla RTCIceServer.urls documentation> getUrls ::
@@ -1,23 +1,29 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.RTCPeerConnection (newRTCPeerConnection, createOffer, createAnswer, setLocalDescription, setRemoteDescription, updateIce, addIceCandidate, getLocalStreams, getLocalStreams_, getRemoteStreams, getRemoteStreams_, getStreamById, getStreamById_,- getStreamByIdUnchecked, getConfiguration, getConfiguration_,+ getStreamByIdUnsafe, getStreamByIdUnchecked, getConfiguration,+ getConfiguration_, getConfigurationUnsafe, getConfigurationUnchecked, addStream, removeStream, getStats,- createDataChannel, createDataChannel_, createDataChannelUnchecked,- createDTMFSender, createDTMFSender_, createDTMFSenderUnchecked,- close, getLocalDescription, getLocalDescriptionUnchecked,- getRemoteDescription, getRemoteDescriptionUnchecked,+ createDataChannel, createDataChannel_, createDataChannelUnsafe,+ createDataChannelUnchecked, createDTMFSender, createDTMFSender_,+ createDTMFSenderUnsafe, createDTMFSenderUnchecked, close,+ getLocalDescription, getLocalDescriptionUnsafe,+ getLocalDescriptionUnchecked, getRemoteDescription,+ getRemoteDescriptionUnsafe, getRemoteDescriptionUnchecked, getSignalingState, getIceGatheringState, getIceConnectionState, negotiationNeeded, iceCandidate, signalingStateChange, addStreamEvent, removeStreamEvent, iceConnectionStateChange,- dataChannel, RTCPeerConnection, castToRTCPeerConnection,- gTypeRTCPeerConnection)+ dataChannel, RTCPeerConnection(..), gTypeRTCPeerConnection) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -28,6 +34,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitRTCPeerConnection Mozilla webkitRTCPeerConnection documentation> newRTCPeerConnection ::@@ -150,6 +166,15 @@ = liftDOM (void (self ^. jsf "getStreamById" [toJSVal streamId])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitRTCPeerConnection.getStreamById Mozilla webkitRTCPeerConnection.getStreamById documentation> +getStreamByIdUnsafe ::+ (MonadDOM m, ToJSString streamId, HasCallStack) =>+ RTCPeerConnection -> streamId -> m MediaStream+getStreamByIdUnsafe self streamId+ = liftDOM+ (((self ^. jsf "getStreamById" [toJSVal streamId]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitRTCPeerConnection.getStreamById Mozilla webkitRTCPeerConnection.getStreamById documentation> getStreamByIdUnchecked :: (MonadDOM m, ToJSString streamId) => RTCPeerConnection -> streamId -> m MediaStream@@ -170,6 +195,15 @@ = liftDOM (void (self ^. jsf "getConfiguration" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitRTCPeerConnection.getConfiguration Mozilla webkitRTCPeerConnection.getConfiguration documentation> +getConfigurationUnsafe ::+ (MonadDOM m, HasCallStack) =>+ RTCPeerConnection -> m RTCConfiguration+getConfigurationUnsafe self+ = liftDOM+ (((self ^. jsf "getConfiguration" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitRTCPeerConnection.getConfiguration Mozilla webkitRTCPeerConnection.getConfiguration documentation> getConfigurationUnchecked :: (MonadDOM m) => RTCPeerConnection -> m RTCConfiguration getConfigurationUnchecked self@@ -221,6 +255,19 @@ (self ^. jsf "createDataChannel" [toJSVal label, toJSVal options])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitRTCPeerConnection.createDataChannel Mozilla webkitRTCPeerConnection.createDataChannel documentation> +createDataChannelUnsafe ::+ (MonadDOM m, ToJSString label, IsDictionary options,+ HasCallStack) =>+ RTCPeerConnection ->+ Maybe label -> Maybe options -> m RTCDataChannel+createDataChannelUnsafe self label options+ = liftDOM+ (((self ^. jsf "createDataChannel"+ [toJSVal label, toJSVal options])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitRTCPeerConnection.createDataChannel Mozilla webkitRTCPeerConnection.createDataChannel documentation> createDataChannelUnchecked :: (MonadDOM m, ToJSString label, IsDictionary options) => RTCPeerConnection ->@@ -246,6 +293,15 @@ = liftDOM (void (self ^. jsf "createDTMFSender" [toJSVal track])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitRTCPeerConnection.createDTMFSender Mozilla webkitRTCPeerConnection.createDTMFSender documentation> +createDTMFSenderUnsafe ::+ (MonadDOM m, IsMediaStreamTrack track, HasCallStack) =>+ RTCPeerConnection -> Maybe track -> m RTCDTMFSender+createDTMFSenderUnsafe self track+ = liftDOM+ (((self ^. jsf "createDTMFSender" [toJSVal track]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitRTCPeerConnection.createDTMFSender Mozilla webkitRTCPeerConnection.createDTMFSender documentation> createDTMFSenderUnchecked :: (MonadDOM m, IsMediaStreamTrack track) => RTCPeerConnection -> Maybe track -> m RTCDTMFSender@@ -266,6 +322,15 @@ = liftDOM ((self ^. js "localDescription") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitRTCPeerConnection.localDescription Mozilla webkitRTCPeerConnection.localDescription documentation> +getLocalDescriptionUnsafe ::+ (MonadDOM m, HasCallStack) =>+ RTCPeerConnection -> m RTCSessionDescription+getLocalDescriptionUnsafe self+ = liftDOM+ (((self ^. js "localDescription") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitRTCPeerConnection.localDescription Mozilla webkitRTCPeerConnection.localDescription documentation> getLocalDescriptionUnchecked :: (MonadDOM m) => RTCPeerConnection -> m RTCSessionDescription getLocalDescriptionUnchecked self@@ -277,6 +342,15 @@ RTCPeerConnection -> m (Maybe RTCSessionDescription) getRemoteDescription self = liftDOM ((self ^. js "remoteDescription") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitRTCPeerConnection.remoteDescription Mozilla webkitRTCPeerConnection.remoteDescription documentation> +getRemoteDescriptionUnsafe ::+ (MonadDOM m, HasCallStack) =>+ RTCPeerConnection -> m RTCSessionDescription+getRemoteDescriptionUnsafe self+ = liftDOM+ (((self ^. js "remoteDescription") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/webkitRTCPeerConnection.remoteDescription Mozilla webkitRTCPeerConnection.remoteDescription documentation> getRemoteDescriptionUnchecked ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.RTCPeerConnectionErrorCallback (newRTCPeerConnectionErrorCallback,@@ -7,6 +10,7 @@ RTCPeerConnectionErrorCallback) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionErrorCallback Mozilla RTCPeerConnectionErrorCallback documentation> newRTCPeerConnectionErrorCallback ::
@@ -1,11 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.RTCSessionDescription (newRTCSessionDescription, setType, getType, setSdp, getSdp,- RTCSessionDescription, castToRTCSessionDescription,- gTypeRTCSessionDescription)+ RTCSessionDescription(..), gTypeRTCSessionDescription) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription Mozilla RTCSessionDescription documentation> newRTCSessionDescription ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.RTCSessionDescriptionCallback (newRTCSessionDescriptionCallback,@@ -7,6 +10,7 @@ RTCSessionDescriptionCallback) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescriptionCallback Mozilla RTCSessionDescriptionCallback documentation> newRTCSessionDescriptionCallback ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.RTCStatsCallback (newRTCStatsCallback, newRTCStatsCallbackSync, newRTCStatsCallbackAsync, RTCStatsCallback) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsCallback Mozilla RTCStatsCallback documentation> newRTCStatsCallback ::
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.RTCStatsReport- (stat, stat_, names, names_, getTimestamp, getTimestampUnchecked,- getId, getType, getLocal, getLocalUnchecked, getRemote,- getRemoteUnchecked, RTCStatsReport, castToRTCStatsReport,- gTypeRTCStatsReport)+ (stat, stat_, names, names_, getTimestamp, getTimestampUnsafe,+ getTimestampUnchecked, getId, getType, getLocal, getLocalUnsafe,+ getLocalUnchecked, getRemote, getRemoteUnsafe, getRemoteUnchecked,+ RTCStatsReport(..), gTypeRTCStatsReport) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport.stat Mozilla RTCStatsReport.stat documentation> stat ::@@ -48,6 +62,14 @@ = liftDOM ((self ^. js "timestamp") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport.timestamp Mozilla RTCStatsReport.timestamp documentation> +getTimestampUnsafe ::+ (MonadDOM m, HasCallStack) => RTCStatsReport -> m Date+getTimestampUnsafe self+ = liftDOM+ (((self ^. js "timestamp") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport.timestamp Mozilla RTCStatsReport.timestamp documentation> getTimestampUnchecked :: (MonadDOM m) => RTCStatsReport -> m Date getTimestampUnchecked self = liftDOM ((self ^. js "timestamp") >>= fromJSValUnchecked)@@ -68,6 +90,14 @@ getLocal self = liftDOM ((self ^. js "local") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport.local Mozilla RTCStatsReport.local documentation> +getLocalUnsafe ::+ (MonadDOM m, HasCallStack) => RTCStatsReport -> m RTCStatsReport+getLocalUnsafe self+ = liftDOM+ (((self ^. js "local") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport.local Mozilla RTCStatsReport.local documentation> getLocalUnchecked :: (MonadDOM m) => RTCStatsReport -> m RTCStatsReport getLocalUnchecked self@@ -77,6 +107,14 @@ getRemote :: (MonadDOM m) => RTCStatsReport -> m (Maybe RTCStatsReport) getRemote self = liftDOM ((self ^. js "remote") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport.remote Mozilla RTCStatsReport.remote documentation> +getRemoteUnsafe ::+ (MonadDOM m, HasCallStack) => RTCStatsReport -> m RTCStatsReport+getRemoteUnsafe self+ = liftDOM+ (((self ^. js "remote") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport.remote Mozilla RTCStatsReport.remote documentation> getRemoteUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.RTCStatsResponse- (result, result_, namedItem, namedItem_, namedItemUnchecked,- RTCStatsResponse, castToRTCStatsResponse, gTypeRTCStatsResponse)+ (result, result_, namedItem, namedItem_, namedItemUnsafe,+ namedItemUnchecked, RTCStatsResponse(..), gTypeRTCStatsResponse) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsResponse.result Mozilla RTCStatsResponse.result documentation> result ::@@ -37,6 +51,15 @@ (MonadDOM m, ToJSString name) => RTCStatsResponse -> name -> m () namedItem_ self name = liftDOM (void (self ^. jsf "namedItem" [toJSVal name]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsResponse.namedItem Mozilla RTCStatsResponse.namedItem documentation> +namedItemUnsafe ::+ (MonadDOM m, ToJSString name, HasCallStack) =>+ RTCStatsResponse -> name -> m RTCStatsReport+namedItemUnsafe self name+ = liftDOM+ (((self ^. jsf "namedItem" [toJSVal name]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsResponse.namedItem Mozilla RTCStatsResponse.namedItem documentation> namedItemUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.RadioNodeList- (_get, _get_, _getUnchecked, setValue, getValue, RadioNodeList,- castToRadioNodeList, gTypeRadioNodeList)+ (_get, _get_, _getUnsafe, _getUnchecked, setValue, getValue,+ RadioNodeList(..), gTypeRadioNodeList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/RadioNodeList._get Mozilla RadioNodeList._get documentation> _get :: (MonadDOM m) => RadioNodeList -> Word -> m (Maybe Node)@@ -25,6 +39,14 @@ _get_ :: (MonadDOM m) => RadioNodeList -> Word -> m () _get_ self index = liftDOM (void (self ^. jsf "_get" [toJSVal index]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/RadioNodeList._get Mozilla RadioNodeList._get documentation> +_getUnsafe ::+ (MonadDOM m, HasCallStack) => RadioNodeList -> Word -> m Node+_getUnsafe self index+ = liftDOM+ (((self ^. jsf "_get" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/RadioNodeList._get Mozilla RadioNodeList._get documentation> _getUnchecked :: (MonadDOM m) => RadioNodeList -> Word -> m Node
@@ -1,29 +1,37 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Range (newRange, setStart, setEnd, setStartBefore, setStartAfter, setEndBefore, setEndAfter, collapse, selectNode, selectNodeContents, compareBoundaryPoints, compareBoundaryPoints_, deleteContents, extractContents, extractContents_,- extractContentsUnchecked, cloneContents, cloneContents_,- cloneContentsUnchecked, insertNode, surroundContents, cloneRange,- cloneRange_, cloneRangeUnchecked, toString, toString_, detach,- getClientRects, getClientRects_, getClientRectsUnchecked,- getBoundingClientRect, getBoundingClientRect_,+ extractContentsUnsafe, extractContentsUnchecked, cloneContents,+ cloneContents_, cloneContentsUnsafe, cloneContentsUnchecked,+ insertNode, surroundContents, cloneRange, cloneRange_,+ cloneRangeUnsafe, cloneRangeUnchecked, toString, toString_, detach,+ getClientRects, getClientRects_, getClientRectsUnsafe,+ getClientRectsUnchecked, getBoundingClientRect,+ getBoundingClientRect_, getBoundingClientRectUnsafe, getBoundingClientRectUnchecked, createContextualFragment,- createContextualFragment_, createContextualFragmentUnchecked,- intersectsNode, intersectsNode_, compareNode, compareNode_,- comparePoint, comparePoint_, isPointInRange, isPointInRange_,- expand, pattern START_TO_START, pattern START_TO_END,- pattern END_TO_END, pattern END_TO_START, pattern NODE_BEFORE,- pattern NODE_AFTER, pattern NODE_BEFORE_AND_AFTER,- pattern NODE_INSIDE, getStartContainer, getStartContainerUnchecked,- getStartOffset, getEndContainer, getEndContainerUnchecked,- getEndOffset, getCollapsed, getCommonAncestorContainer,- getCommonAncestorContainerUnchecked, Range, castToRange,- gTypeRange)+ createContextualFragment_, createContextualFragmentUnsafe,+ createContextualFragmentUnchecked, intersectsNode, intersectsNode_,+ compareNode, compareNode_, comparePoint, comparePoint_,+ isPointInRange, isPointInRange_, expand, pattern START_TO_START,+ pattern START_TO_END, pattern END_TO_END, pattern END_TO_START,+ pattern NODE_BEFORE, pattern NODE_AFTER,+ pattern NODE_BEFORE_AND_AFTER, pattern NODE_INSIDE,+ getStartContainer, getStartContainerUnsafe,+ getStartContainerUnchecked, getStartOffset, getEndContainer,+ getEndContainerUnsafe, getEndContainerUnchecked, getEndOffset,+ getCollapsed, getCommonAncestorContainer,+ getCommonAncestorContainerUnsafe,+ getCommonAncestorContainerUnchecked, Range(..), gTypeRange) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -34,6 +42,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Range Mozilla Range documentation> newRange :: (MonadDOM m) => m Range@@ -133,6 +151,14 @@ = liftDOM (void (self ^. jsf "extractContents" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Range.extractContents Mozilla Range.extractContents documentation> +extractContentsUnsafe ::+ (MonadDOM m, HasCallStack) => Range -> m DocumentFragment+extractContentsUnsafe self+ = liftDOM+ (((self ^. jsf "extractContents" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Range.extractContents Mozilla Range.extractContents documentation> extractContentsUnchecked :: (MonadDOM m) => Range -> m DocumentFragment extractContentsUnchecked self@@ -151,6 +177,14 @@ = liftDOM (void (self ^. jsf "cloneContents" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Range.cloneContents Mozilla Range.cloneContents documentation> +cloneContentsUnsafe ::+ (MonadDOM m, HasCallStack) => Range -> m DocumentFragment+cloneContentsUnsafe self+ = liftDOM+ (((self ^. jsf "cloneContents" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Range.cloneContents Mozilla Range.cloneContents documentation> cloneContentsUnchecked :: (MonadDOM m) => Range -> m DocumentFragment cloneContentsUnchecked self@@ -179,6 +213,13 @@ cloneRange_ self = liftDOM (void (self ^. jsf "cloneRange" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Range.cloneRange Mozilla Range.cloneRange documentation> +cloneRangeUnsafe :: (MonadDOM m, HasCallStack) => Range -> m Range+cloneRangeUnsafe self+ = liftDOM+ (((self ^. jsf "cloneRange" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Range.cloneRange Mozilla Range.cloneRange documentation> cloneRangeUnchecked :: (MonadDOM m) => Range -> m Range cloneRangeUnchecked self = liftDOM ((self ^. jsf "cloneRange" ()) >>= fromJSValUnchecked)@@ -207,6 +248,14 @@ = liftDOM (void (self ^. jsf "getClientRects" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Range.getClientRects Mozilla Range.getClientRects documentation> +getClientRectsUnsafe ::+ (MonadDOM m, HasCallStack) => Range -> m ClientRectList+getClientRectsUnsafe self+ = liftDOM+ (((self ^. jsf "getClientRects" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Range.getClientRects Mozilla Range.getClientRects documentation> getClientRectsUnchecked :: (MonadDOM m) => Range -> m ClientRectList getClientRectsUnchecked self@@ -225,6 +274,14 @@ = liftDOM (void (self ^. jsf "getBoundingClientRect" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Range.getBoundingClientRect Mozilla Range.getBoundingClientRect documentation> +getBoundingClientRectUnsafe ::+ (MonadDOM m, HasCallStack) => Range -> m ClientRect+getBoundingClientRectUnsafe self+ = liftDOM+ (((self ^. jsf "getBoundingClientRect" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Range.getBoundingClientRect Mozilla Range.getBoundingClientRect documentation> getBoundingClientRectUnchecked :: (MonadDOM m) => Range -> m ClientRect getBoundingClientRectUnchecked self@@ -248,6 +305,16 @@ (void (self ^. jsf "createContextualFragment" [toJSVal html])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Range.createContextualFragment Mozilla Range.createContextualFragment documentation> +createContextualFragmentUnsafe ::+ (MonadDOM m, ToJSString html, HasCallStack) =>+ Range -> html -> m DocumentFragment+createContextualFragmentUnsafe self html+ = liftDOM+ (((self ^. jsf "createContextualFragment" [toJSVal html]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Range.createContextualFragment Mozilla Range.createContextualFragment documentation> createContextualFragmentUnchecked :: (MonadDOM m, ToJSString html) => Range -> html -> m DocumentFragment@@ -339,6 +406,14 @@ = liftDOM ((self ^. js "startContainer") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Range.startContainer Mozilla Range.startContainer documentation> +getStartContainerUnsafe ::+ (MonadDOM m, HasCallStack) => Range -> m Node+getStartContainerUnsafe self+ = liftDOM+ (((self ^. js "startContainer") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Range.startContainer Mozilla Range.startContainer documentation> getStartContainerUnchecked :: (MonadDOM m) => Range -> m Node getStartContainerUnchecked self = liftDOM ((self ^. js "startContainer") >>= fromJSValUnchecked)@@ -354,6 +429,14 @@ = liftDOM ((self ^. js "endContainer") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Range.endContainer Mozilla Range.endContainer documentation> +getEndContainerUnsafe ::+ (MonadDOM m, HasCallStack) => Range -> m Node+getEndContainerUnsafe self+ = liftDOM+ (((self ^. js "endContainer") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Range.endContainer Mozilla Range.endContainer documentation> getEndContainerUnchecked :: (MonadDOM m) => Range -> m Node getEndContainerUnchecked self = liftDOM ((self ^. js "endContainer") >>= fromJSValUnchecked)@@ -373,6 +456,14 @@ (MonadDOM m) => Range -> m (Maybe Node) getCommonAncestorContainer self = liftDOM ((self ^. js "commonAncestorContainer") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Range.commonAncestorContainer Mozilla Range.commonAncestorContainer documentation> +getCommonAncestorContainerUnsafe ::+ (MonadDOM m, HasCallStack) => Range -> m Node+getCommonAncestorContainerUnsafe self+ = liftDOM+ (((self ^. js "commonAncestorContainer") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Range.commonAncestorContainer Mozilla Range.commonAncestorContainer documentation> getCommonAncestorContainerUnchecked ::
@@ -1,13 +1,18 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.ReadableStream- (newReadableStream, read, read_, readUnchecked, cancel, cancel_,- cancelUnchecked, pipeTo, pipeTo_, pipeToUnchecked, pipeThrough,- pipeThrough_, pipeThroughUnchecked, getState, getClosed,- getClosedUnchecked, getReady, getReadyUnchecked, ReadableStream,- castToReadableStream, gTypeReadableStream)+ (newReadableStream, read, read_, readUnsafe, readUnchecked, cancel,+ cancel_, cancelUnsafe, cancelUnchecked, pipeTo, pipeTo_,+ pipeToUnsafe, pipeToUnchecked, pipeThrough, pipeThrough_,+ pipeThroughUnsafe, pipeThroughUnchecked, getState, getClosed,+ getClosedUnsafe, getClosedUnchecked, getReady, getReadyUnsafe,+ getReadyUnchecked, ReadableStream(..), gTypeReadableStream) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +23,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream Mozilla ReadableStream documentation> newReadableStream :: (MonadDOM m) => JSVal -> m ReadableStream@@ -35,6 +50,14 @@ read_ self = liftDOM (void (self ^. jsf "read" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.read Mozilla ReadableStream.read documentation> +readUnsafe ::+ (MonadDOM m, HasCallStack) => ReadableStream -> m GObject+readUnsafe self+ = liftDOM+ (((self ^. jsf "read" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.read Mozilla ReadableStream.read documentation> readUnchecked :: (MonadDOM m) => ReadableStream -> m GObject readUnchecked self = liftDOM ((self ^. jsf "read" ()) >>= fromJSValUnchecked)@@ -53,6 +76,15 @@ = liftDOM (void (self ^. jsf "cancel" [toJSVal reason])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.cancel Mozilla ReadableStream.cancel documentation> +cancelUnsafe ::+ (MonadDOM m, ToJSString reason, HasCallStack) =>+ ReadableStream -> reason -> m Promise+cancelUnsafe self reason+ = liftDOM+ (((self ^. jsf "cancel" [toJSVal reason]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.cancel Mozilla ReadableStream.cancel documentation> cancelUnchecked :: (MonadDOM m, ToJSString reason) => ReadableStream -> reason -> m Promise@@ -76,6 +108,16 @@ (void (self ^. jsf "pipeTo" [toJSVal streams, toJSVal options])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.pipeTo Mozilla ReadableStream.pipeTo documentation> +pipeToUnsafe ::+ (MonadDOM m, HasCallStack) =>+ ReadableStream -> JSVal -> JSVal -> m Promise+pipeToUnsafe self streams options+ = liftDOM+ (((self ^. jsf "pipeTo" [toJSVal streams, toJSVal options]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.pipeTo Mozilla ReadableStream.pipeTo documentation> pipeToUnchecked :: (MonadDOM m) => ReadableStream -> JSVal -> JSVal -> m Promise pipeToUnchecked self streams options@@ -100,6 +142,16 @@ (void (self ^. jsf "pipeThrough" [toJSVal dest, toJSVal options])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.pipeThrough Mozilla ReadableStream.pipeThrough documentation> +pipeThroughUnsafe ::+ (MonadDOM m, HasCallStack) =>+ ReadableStream -> JSVal -> JSVal -> m GObject+pipeThroughUnsafe self dest options+ = liftDOM+ (((self ^. jsf "pipeThrough" [toJSVal dest, toJSVal options]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.pipeThrough Mozilla ReadableStream.pipeThrough documentation> pipeThroughUnchecked :: (MonadDOM m) => ReadableStream -> JSVal -> JSVal -> m GObject pipeThroughUnchecked self dest options@@ -118,6 +170,14 @@ getClosed self = liftDOM ((self ^. js "closed") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.closed Mozilla ReadableStream.closed documentation> +getClosedUnsafe ::+ (MonadDOM m, HasCallStack) => ReadableStream -> m Promise+getClosedUnsafe self+ = liftDOM+ (((self ^. js "closed") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.closed Mozilla ReadableStream.closed documentation> getClosedUnchecked :: (MonadDOM m) => ReadableStream -> m Promise getClosedUnchecked self = liftDOM ((self ^. js "closed") >>= fromJSValUnchecked)@@ -125,6 +185,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.ready Mozilla ReadableStream.ready documentation> getReady :: (MonadDOM m) => ReadableStream -> m (Maybe Promise) getReady self = liftDOM ((self ^. js "ready") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.ready Mozilla ReadableStream.ready documentation> +getReadyUnsafe ::+ (MonadDOM m, HasCallStack) => ReadableStream -> m Promise+getReadyUnsafe self+ = liftDOM+ (((self ^. js "ready") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.ready Mozilla ReadableStream.ready documentation> getReadyUnchecked :: (MonadDOM m) => ReadableStream -> m Promise
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.Rect- (getTop, getTopUnchecked, getRight, getRightUnchecked, getBottom,- getBottomUnchecked, getLeft, getLeftUnchecked, Rect, castToRect,- gTypeRect)+ (getTop, getTopUnsafe, getTopUnchecked, getRight, getRightUnsafe,+ getRightUnchecked, getBottom, getBottomUnsafe, getBottomUnchecked,+ getLeft, getLeftUnsafe, getLeftUnchecked, Rect(..), gTypeRect) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,12 +20,30 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/Rect.top Mozilla Rect.top documentation> getTop :: (MonadDOM m) => Rect -> m (Maybe CSSPrimitiveValue) getTop self = liftDOM ((self ^. js "top") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Rect.top Mozilla Rect.top documentation> +getTopUnsafe ::+ (MonadDOM m, HasCallStack) => Rect -> m CSSPrimitiveValue+getTopUnsafe self+ = liftDOM+ (((self ^. js "top") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Rect.top Mozilla Rect.top documentation> getTopUnchecked :: (MonadDOM m) => Rect -> m CSSPrimitiveValue getTopUnchecked self = liftDOM ((self ^. js "top") >>= fromJSValUnchecked)@@ -31,6 +53,14 @@ getRight self = liftDOM ((self ^. js "right") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Rect.right Mozilla Rect.right documentation> +getRightUnsafe ::+ (MonadDOM m, HasCallStack) => Rect -> m CSSPrimitiveValue+getRightUnsafe self+ = liftDOM+ (((self ^. js "right") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Rect.right Mozilla Rect.right documentation> getRightUnchecked :: (MonadDOM m) => Rect -> m CSSPrimitiveValue getRightUnchecked self = liftDOM ((self ^. js "right") >>= fromJSValUnchecked)@@ -40,6 +70,14 @@ getBottom self = liftDOM ((self ^. js "bottom") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Rect.bottom Mozilla Rect.bottom documentation> +getBottomUnsafe ::+ (MonadDOM m, HasCallStack) => Rect -> m CSSPrimitiveValue+getBottomUnsafe self+ = liftDOM+ (((self ^. js "bottom") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Rect.bottom Mozilla Rect.bottom documentation> getBottomUnchecked :: (MonadDOM m) => Rect -> m CSSPrimitiveValue getBottomUnchecked self = liftDOM ((self ^. js "bottom") >>= fromJSValUnchecked)@@ -47,6 +85,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/Rect.left Mozilla Rect.left documentation> getLeft :: (MonadDOM m) => Rect -> m (Maybe CSSPrimitiveValue) getLeft self = liftDOM ((self ^. js "left") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/Rect.left Mozilla Rect.left documentation> +getLeftUnsafe ::+ (MonadDOM m, HasCallStack) => Rect -> m CSSPrimitiveValue+getLeftUnsafe self+ = liftDOM+ (((self ^. js "left") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/Rect.left Mozilla Rect.left documentation> getLeftUnchecked :: (MonadDOM m) => Rect -> m CSSPrimitiveValue
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.RequestAnimationFrameCallback (newRequestAnimationFrameCallback,@@ -7,6 +10,7 @@ RequestAnimationFrameCallback) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/RequestAnimationFrameCallback Mozilla RequestAnimationFrameCallback documentation> newRequestAnimationFrameCallback ::
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SQLError (pattern UNKNOWN_ERR, pattern DATABASE_ERR, pattern VERSION_ERR, pattern TOO_LARGE_ERR, pattern QUOTA_ERR, pattern SYNTAX_ERR, pattern CONSTRAINT_ERR, pattern TIMEOUT_ERR, getCode, getMessage,- SQLError, castToSQLError, gTypeSQLError)+ SQLError(..), gTypeSQLError) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern UNKNOWN_ERR = 0 pattern DATABASE_ERR = 1 pattern VERSION_ERR = 2
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SQLResultSet- (getRows, getRowsUnchecked, getInsertId, getRowsAffected,- SQLResultSet, castToSQLResultSet, gTypeSQLResultSet)+ (getRows, getRowsUnsafe, getRowsUnchecked, getInsertId,+ getRowsAffected, SQLResultSet(..), gTypeSQLResultSet) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,11 +19,29 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SQLResultSet.rows Mozilla SQLResultSet.rows documentation> getRows :: (MonadDOM m) => SQLResultSet -> m (Maybe SQLResultSetRowList) getRows self = liftDOM ((self ^. js "rows") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SQLResultSet.rows Mozilla SQLResultSet.rows documentation> +getRowsUnsafe ::+ (MonadDOM m, HasCallStack) => SQLResultSet -> m SQLResultSetRowList+getRowsUnsafe self+ = liftDOM+ (((self ^. js "rows") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SQLResultSet.rows Mozilla SQLResultSet.rows documentation> getRowsUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SQLResultSetRowList- (item, item_, getLength, SQLResultSetRowList,- castToSQLResultSetRowList, gTypeSQLResultSetRowList)+ (item, item_, getLength, SQLResultSetRowList(..),+ gTypeSQLResultSetRowList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SQLResultSetRowList.item Mozilla SQLResultSetRowList.item documentation> item :: (MonadDOM m) => SQLResultSetRowList -> Word -> m JSVal
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SQLStatementCallback (newSQLStatementCallback, newSQLStatementCallbackSync, newSQLStatementCallbackAsync, SQLStatementCallback) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SQLStatementCallback Mozilla SQLStatementCallback documentation> newSQLStatementCallback ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SQLStatementErrorCallback (newSQLStatementErrorCallback, newSQLStatementErrorCallbackSync, newSQLStatementErrorCallbackAsync, SQLStatementErrorCallback) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SQLStatementErrorCallback Mozilla SQLStatementErrorCallback documentation> newSQLStatementErrorCallback ::
@@ -1,10 +1,12 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SQLTransaction- (executeSql, SQLTransaction, castToSQLTransaction,- gTypeSQLTransaction)- where+ (executeSql, SQLTransaction(..), gTypeSQLTransaction) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +17,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SQLTransaction.executeSql Mozilla SQLTransaction.executeSql documentation> executeSql ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SQLTransactionCallback (newSQLTransactionCallback, newSQLTransactionCallbackSync, newSQLTransactionCallbackAsync, SQLTransactionCallback) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SQLTransactionCallback Mozilla SQLTransactionCallback documentation> newSQLTransactionCallback ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SQLTransactionErrorCallback (newSQLTransactionErrorCallback,@@ -6,6 +9,7 @@ newSQLTransactionErrorCallbackAsync, SQLTransactionErrorCallback) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SQLTransactionErrorCallback Mozilla SQLTransactionErrorCallback documentation> newSQLTransactionErrorCallback ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGAElement- (getTarget, getTargetUnchecked, SVGAElement, castToSVGAElement,+ (getTarget, getTargetUnsafe, getTargetUnchecked, SVGAElement(..), gTypeSVGAElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,11 +19,29 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement.target Mozilla SVGAElement.target documentation> getTarget :: (MonadDOM m) => SVGAElement -> m (Maybe SVGAnimatedString) getTarget self = liftDOM ((self ^. js "target") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement.target Mozilla SVGAElement.target documentation> +getTargetUnsafe ::+ (MonadDOM m, HasCallStack) => SVGAElement -> m SVGAnimatedString+getTargetUnsafe self+ = liftDOM+ (((self ^. js "target") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement.target Mozilla SVGAElement.target documentation> getTargetUnchecked ::
@@ -1,11 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGAltGlyphElement (setGlyphRef, getGlyphRef, setFormat, getFormat,- SVGAltGlyphElement, castToSVGAltGlyphElement,- gTypeSVGAltGlyphElement)+ SVGAltGlyphElement(..), gTypeSVGAltGlyphElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAltGlyphElement.glyphRef Mozilla SVGAltGlyphElement.glyphRef documentation> setGlyphRef ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGAngle (newValueSpecifiedUnits, convertToSpecifiedUnits,@@ -6,10 +9,11 @@ pattern SVG_ANGLETYPE_DEG, pattern SVG_ANGLETYPE_RAD, pattern SVG_ANGLETYPE_GRAD, getUnitType, setValue, getValue, setValueInSpecifiedUnits, getValueInSpecifiedUnits,- setValueAsString, getValueAsString, getValueAsStringUnchecked,- SVGAngle, castToSVGAngle, gTypeSVGAngle)+ setValueAsString, getValueAsString, getValueAsStringUnsafe,+ getValueAsStringUnchecked, SVGAngle(..), gTypeSVGAngle) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -20,6 +24,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle.newValueSpecifiedUnits Mozilla SVGAngle.newValueSpecifiedUnits documentation> newValueSpecifiedUnits ::@@ -79,6 +93,15 @@ (MonadDOM m, FromJSString result) => SVGAngle -> m (Maybe result) getValueAsString self = liftDOM ((self ^. js "valueAsString") >>= fromMaybeJSString)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle.valueAsString Mozilla SVGAngle.valueAsString documentation> +getValueAsStringUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ SVGAngle -> m result+getValueAsStringUnsafe self+ = liftDOM+ (((self ^. js "valueAsString") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle.valueAsString Mozilla SVGAngle.valueAsString documentation> getValueAsStringUnchecked ::
@@ -1,10 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGAnimatedAngle- (getBaseVal, getBaseValUnchecked, getAnimVal, getAnimValUnchecked,- SVGAnimatedAngle, castToSVGAnimatedAngle, gTypeSVGAnimatedAngle)+ (getBaseVal, getBaseValUnsafe, getBaseValUnchecked, getAnimVal,+ getAnimValUnsafe, getAnimValUnchecked, SVGAnimatedAngle(..),+ gTypeSVGAnimatedAngle) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedAngle.baseVal Mozilla SVGAnimatedAngle.baseVal documentation> getBaseVal ::@@ -22,6 +37,14 @@ getBaseVal self = liftDOM ((self ^. js "baseVal") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedAngle.baseVal Mozilla SVGAnimatedAngle.baseVal documentation> +getBaseValUnsafe ::+ (MonadDOM m, HasCallStack) => SVGAnimatedAngle -> m SVGAngle+getBaseValUnsafe self+ = liftDOM+ (((self ^. js "baseVal") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedAngle.baseVal Mozilla SVGAnimatedAngle.baseVal documentation> getBaseValUnchecked :: (MonadDOM m) => SVGAnimatedAngle -> m SVGAngle getBaseValUnchecked self@@ -31,6 +54,14 @@ getAnimVal :: (MonadDOM m) => SVGAnimatedAngle -> m (Maybe SVGAngle) getAnimVal self = liftDOM ((self ^. js "animVal") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedAngle.animVal Mozilla SVGAnimatedAngle.animVal documentation> +getAnimValUnsafe ::+ (MonadDOM m, HasCallStack) => SVGAnimatedAngle -> m SVGAngle+getAnimValUnsafe self+ = liftDOM+ (((self ^. js "animVal") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedAngle.animVal Mozilla SVGAnimatedAngle.animVal documentation> getAnimValUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGAnimatedBoolean- (setBaseVal, getBaseVal, getAnimVal, SVGAnimatedBoolean,- castToSVGAnimatedBoolean, gTypeSVGAnimatedBoolean)+ (setBaseVal, getBaseVal, getAnimVal, SVGAnimatedBoolean(..),+ gTypeSVGAnimatedBoolean) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedBoolean.baseVal Mozilla SVGAnimatedBoolean.baseVal documentation> setBaseVal :: (MonadDOM m) => SVGAnimatedBoolean -> Bool -> m ()
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGAnimatedEnumeration- (setBaseVal, getBaseVal, getAnimVal, SVGAnimatedEnumeration,- castToSVGAnimatedEnumeration, gTypeSVGAnimatedEnumeration)+ (setBaseVal, getBaseVal, getAnimVal, SVGAnimatedEnumeration(..),+ gTypeSVGAnimatedEnumeration) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedEnumeration.baseVal Mozilla SVGAnimatedEnumeration.baseVal documentation> setBaseVal ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGAnimatedInteger- (setBaseVal, getBaseVal, getAnimVal, SVGAnimatedInteger,- castToSVGAnimatedInteger, gTypeSVGAnimatedInteger)+ (setBaseVal, getBaseVal, getAnimVal, SVGAnimatedInteger(..),+ gTypeSVGAnimatedInteger) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedInteger.baseVal Mozilla SVGAnimatedInteger.baseVal documentation> setBaseVal :: (MonadDOM m) => SVGAnimatedInteger -> Int -> m ()
@@ -1,10 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGAnimatedLength- (getBaseVal, getBaseValUnchecked, getAnimVal, getAnimValUnchecked,- SVGAnimatedLength, castToSVGAnimatedLength, gTypeSVGAnimatedLength)+ (getBaseVal, getBaseValUnsafe, getBaseValUnchecked, getAnimVal,+ getAnimValUnsafe, getAnimValUnchecked, SVGAnimatedLength(..),+ gTypeSVGAnimatedLength) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLength.baseVal Mozilla SVGAnimatedLength.baseVal documentation> getBaseVal ::@@ -22,6 +37,14 @@ getBaseVal self = liftDOM ((self ^. js "baseVal") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLength.baseVal Mozilla SVGAnimatedLength.baseVal documentation> +getBaseValUnsafe ::+ (MonadDOM m, HasCallStack) => SVGAnimatedLength -> m SVGLength+getBaseValUnsafe self+ = liftDOM+ (((self ^. js "baseVal") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLength.baseVal Mozilla SVGAnimatedLength.baseVal documentation> getBaseValUnchecked :: (MonadDOM m) => SVGAnimatedLength -> m SVGLength getBaseValUnchecked self@@ -31,6 +54,14 @@ getAnimVal :: (MonadDOM m) => SVGAnimatedLength -> m (Maybe SVGLength) getAnimVal self = liftDOM ((self ^. js "animVal") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLength.animVal Mozilla SVGAnimatedLength.animVal documentation> +getAnimValUnsafe ::+ (MonadDOM m, HasCallStack) => SVGAnimatedLength -> m SVGLength+getAnimValUnsafe self+ = liftDOM+ (((self ^. js "animVal") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLength.animVal Mozilla SVGAnimatedLength.animVal documentation> getAnimValUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGAnimatedLengthList- (getBaseVal, getBaseValUnchecked, getAnimVal, getAnimValUnchecked,- SVGAnimatedLengthList, castToSVGAnimatedLengthList,+ (getBaseVal, getBaseValUnsafe, getBaseValUnchecked, getAnimVal,+ getAnimValUnsafe, getAnimValUnchecked, SVGAnimatedLengthList(..), gTypeSVGAnimatedLengthList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLengthList.baseVal Mozilla SVGAnimatedLengthList.baseVal documentation> getBaseVal ::@@ -23,6 +37,15 @@ getBaseVal self = liftDOM ((self ^. js "baseVal") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLengthList.baseVal Mozilla SVGAnimatedLengthList.baseVal documentation> +getBaseValUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGAnimatedLengthList -> m SVGLengthList+getBaseValUnsafe self+ = liftDOM+ (((self ^. js "baseVal") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLengthList.baseVal Mozilla SVGAnimatedLengthList.baseVal documentation> getBaseValUnchecked :: (MonadDOM m) => SVGAnimatedLengthList -> m SVGLengthList getBaseValUnchecked self@@ -32,6 +55,15 @@ getAnimVal :: (MonadDOM m) => SVGAnimatedLengthList -> m (Maybe SVGLengthList) getAnimVal self = liftDOM ((self ^. js "animVal") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLengthList.animVal Mozilla SVGAnimatedLengthList.animVal documentation> +getAnimValUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGAnimatedLengthList -> m SVGLengthList+getAnimValUnsafe self+ = liftDOM+ (((self ^. js "animVal") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLengthList.animVal Mozilla SVGAnimatedLengthList.animVal documentation> getAnimValUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGAnimatedNumber- (setBaseVal, getBaseVal, getAnimVal, SVGAnimatedNumber,- castToSVGAnimatedNumber, gTypeSVGAnimatedNumber)+ (setBaseVal, getBaseVal, getAnimVal, SVGAnimatedNumber(..),+ gTypeSVGAnimatedNumber) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumber.baseVal Mozilla SVGAnimatedNumber.baseVal documentation> setBaseVal :: (MonadDOM m) => SVGAnimatedNumber -> Float -> m ()
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGAnimatedNumberList- (getBaseVal, getBaseValUnchecked, getAnimVal, getAnimValUnchecked,- SVGAnimatedNumberList, castToSVGAnimatedNumberList,+ (getBaseVal, getBaseValUnsafe, getBaseValUnchecked, getAnimVal,+ getAnimValUnsafe, getAnimValUnchecked, SVGAnimatedNumberList(..), gTypeSVGAnimatedNumberList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumberList.baseVal Mozilla SVGAnimatedNumberList.baseVal documentation> getBaseVal ::@@ -23,6 +37,15 @@ getBaseVal self = liftDOM ((self ^. js "baseVal") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumberList.baseVal Mozilla SVGAnimatedNumberList.baseVal documentation> +getBaseValUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGAnimatedNumberList -> m SVGNumberList+getBaseValUnsafe self+ = liftDOM+ (((self ^. js "baseVal") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumberList.baseVal Mozilla SVGAnimatedNumberList.baseVal documentation> getBaseValUnchecked :: (MonadDOM m) => SVGAnimatedNumberList -> m SVGNumberList getBaseValUnchecked self@@ -32,6 +55,15 @@ getAnimVal :: (MonadDOM m) => SVGAnimatedNumberList -> m (Maybe SVGNumberList) getAnimVal self = liftDOM ((self ^. js "animVal") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumberList.animVal Mozilla SVGAnimatedNumberList.animVal documentation> +getAnimValUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGAnimatedNumberList -> m SVGNumberList+getAnimValUnsafe self+ = liftDOM+ (((self ^. js "animVal") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumberList.animVal Mozilla SVGAnimatedNumberList.animVal documentation> getAnimValUnchecked ::
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGAnimatedPreserveAspectRatio- (getBaseVal, getBaseValUnchecked, getAnimVal, getAnimValUnchecked,- SVGAnimatedPreserveAspectRatio,- castToSVGAnimatedPreserveAspectRatio,+ (getBaseVal, getBaseValUnsafe, getBaseValUnchecked, getAnimVal,+ getAnimValUnsafe, getAnimValUnchecked,+ SVGAnimatedPreserveAspectRatio(..), gTypeSVGAnimatedPreserveAspectRatio) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedPreserveAspectRatio.baseVal Mozilla SVGAnimatedPreserveAspectRatio.baseVal documentation> getBaseVal ::@@ -25,6 +39,15 @@ getBaseVal self = liftDOM ((self ^. js "baseVal") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedPreserveAspectRatio.baseVal Mozilla SVGAnimatedPreserveAspectRatio.baseVal documentation> +getBaseValUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGAnimatedPreserveAspectRatio -> m SVGPreserveAspectRatio+getBaseValUnsafe self+ = liftDOM+ (((self ^. js "baseVal") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedPreserveAspectRatio.baseVal Mozilla SVGAnimatedPreserveAspectRatio.baseVal documentation> getBaseValUnchecked :: (MonadDOM m) => SVGAnimatedPreserveAspectRatio -> m SVGPreserveAspectRatio@@ -36,6 +59,15 @@ (MonadDOM m) => SVGAnimatedPreserveAspectRatio -> m (Maybe SVGPreserveAspectRatio) getAnimVal self = liftDOM ((self ^. js "animVal") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedPreserveAspectRatio.animVal Mozilla SVGAnimatedPreserveAspectRatio.animVal documentation> +getAnimValUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGAnimatedPreserveAspectRatio -> m SVGPreserveAspectRatio+getAnimValUnsafe self+ = liftDOM+ (((self ^. js "animVal") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedPreserveAspectRatio.animVal Mozilla SVGAnimatedPreserveAspectRatio.animVal documentation> getAnimValUnchecked ::
@@ -1,10 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGAnimatedRect- (getBaseVal, getBaseValUnchecked, getAnimVal, getAnimValUnchecked,- SVGAnimatedRect, castToSVGAnimatedRect, gTypeSVGAnimatedRect)+ (getBaseVal, getBaseValUnsafe, getBaseValUnchecked, getAnimVal,+ getAnimValUnsafe, getAnimValUnchecked, SVGAnimatedRect(..),+ gTypeSVGAnimatedRect) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,12 +20,30 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedRect.baseVal Mozilla SVGAnimatedRect.baseVal documentation> getBaseVal :: (MonadDOM m) => SVGAnimatedRect -> m (Maybe SVGRect) getBaseVal self = liftDOM ((self ^. js "baseVal") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedRect.baseVal Mozilla SVGAnimatedRect.baseVal documentation> +getBaseValUnsafe ::+ (MonadDOM m, HasCallStack) => SVGAnimatedRect -> m SVGRect+getBaseValUnsafe self+ = liftDOM+ (((self ^. js "baseVal") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedRect.baseVal Mozilla SVGAnimatedRect.baseVal documentation> getBaseValUnchecked :: (MonadDOM m) => SVGAnimatedRect -> m SVGRect getBaseValUnchecked self = liftDOM ((self ^. js "baseVal") >>= fromJSValUnchecked)@@ -28,6 +51,14 @@ -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedRect.animVal Mozilla SVGAnimatedRect.animVal documentation> getAnimVal :: (MonadDOM m) => SVGAnimatedRect -> m (Maybe SVGRect) getAnimVal self = liftDOM ((self ^. js "animVal") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedRect.animVal Mozilla SVGAnimatedRect.animVal documentation> +getAnimValUnsafe ::+ (MonadDOM m, HasCallStack) => SVGAnimatedRect -> m SVGRect+getAnimValUnsafe self+ = liftDOM+ (((self ^. js "animVal") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedRect.animVal Mozilla SVGAnimatedRect.animVal documentation> getAnimValUnchecked :: (MonadDOM m) => SVGAnimatedRect -> m SVGRect
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGAnimatedString- (setBaseVal, getBaseVal, getAnimVal, SVGAnimatedString,- castToSVGAnimatedString, gTypeSVGAnimatedString)+ (setBaseVal, getBaseVal, getAnimVal, SVGAnimatedString(..),+ gTypeSVGAnimatedString) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedString.baseVal Mozilla SVGAnimatedString.baseVal documentation> setBaseVal ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGAnimatedTransformList- (getBaseVal, getBaseValUnchecked, getAnimVal, getAnimValUnchecked,- SVGAnimatedTransformList, castToSVGAnimatedTransformList,- gTypeSVGAnimatedTransformList)+ (getBaseVal, getBaseValUnsafe, getBaseValUnchecked, getAnimVal,+ getAnimValUnsafe, getAnimValUnchecked,+ SVGAnimatedTransformList(..), gTypeSVGAnimatedTransformList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedTransformList.baseVal Mozilla SVGAnimatedTransformList.baseVal documentation> getBaseVal ::@@ -24,6 +38,15 @@ getBaseVal self = liftDOM ((self ^. js "baseVal") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedTransformList.baseVal Mozilla SVGAnimatedTransformList.baseVal documentation> +getBaseValUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGAnimatedTransformList -> m SVGTransformList+getBaseValUnsafe self+ = liftDOM+ (((self ^. js "baseVal") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedTransformList.baseVal Mozilla SVGAnimatedTransformList.baseVal documentation> getBaseValUnchecked :: (MonadDOM m) => SVGAnimatedTransformList -> m SVGTransformList getBaseValUnchecked self@@ -34,6 +57,15 @@ (MonadDOM m) => SVGAnimatedTransformList -> m (Maybe SVGTransformList) getAnimVal self = liftDOM ((self ^. js "animVal") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedTransformList.animVal Mozilla SVGAnimatedTransformList.animVal documentation> +getAnimValUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGAnimatedTransformList -> m SVGTransformList+getAnimValUnsafe self+ = liftDOM+ (((self ^. js "animVal") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedTransformList.animVal Mozilla SVGAnimatedTransformList.animVal documentation> getAnimValUnchecked ::
@@ -1,14 +1,18 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGAnimationElement (getStartTime, getStartTime_, getCurrentTime, getCurrentTime_, getSimpleDuration, getSimpleDuration_, beginElement, beginElementAt, endElement, endElementAt, getTargetElement,- getTargetElementUnchecked, SVGAnimationElement,- castToSVGAnimationElement, gTypeSVGAnimationElement,+ getTargetElementUnsafe, getTargetElementUnchecked,+ SVGAnimationElement(..), gTypeSVGAnimationElement, IsSVGAnimationElement, toSVGAnimationElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +23,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement.getStartTime Mozilla SVGAnimationElement.getStartTime documentation> getStartTime ::@@ -108,6 +122,16 @@ = liftDOM (((toSVGAnimationElement self) ^. js "targetElement") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement.targetElement Mozilla SVGAnimationElement.targetElement documentation> +getTargetElementUnsafe ::+ (MonadDOM m, IsSVGAnimationElement self, HasCallStack) =>+ self -> m SVGElement+getTargetElementUnsafe self+ = liftDOM+ ((((toSVGAnimationElement self) ^. js "targetElement") >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement.targetElement Mozilla SVGAnimationElement.targetElement documentation> getTargetElementUnchecked ::
@@ -1,10 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGCircleElement- (getCx, getCxUnchecked, getCy, getCyUnchecked, getR, getRUnchecked,- SVGCircleElement, castToSVGCircleElement, gTypeSVGCircleElement)+ (getCx, getCxUnsafe, getCxUnchecked, getCy, getCyUnsafe,+ getCyUnchecked, getR, getRUnsafe, getRUnchecked,+ SVGCircleElement(..), gTypeSVGCircleElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGCircleElement.cx Mozilla SVGCircleElement.cx documentation> getCx ::@@ -22,6 +37,15 @@ getCx self = liftDOM ((self ^. js "cx") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGCircleElement.cx Mozilla SVGCircleElement.cx documentation> +getCxUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGCircleElement -> m SVGAnimatedLength+getCxUnsafe self+ = liftDOM+ (((self ^. js "cx") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGCircleElement.cx Mozilla SVGCircleElement.cx documentation> getCxUnchecked :: (MonadDOM m) => SVGCircleElement -> m SVGAnimatedLength getCxUnchecked self@@ -33,6 +57,15 @@ getCy self = liftDOM ((self ^. js "cy") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGCircleElement.cy Mozilla SVGCircleElement.cy documentation> +getCyUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGCircleElement -> m SVGAnimatedLength+getCyUnsafe self+ = liftDOM+ (((self ^. js "cy") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGCircleElement.cy Mozilla SVGCircleElement.cy documentation> getCyUnchecked :: (MonadDOM m) => SVGCircleElement -> m SVGAnimatedLength getCyUnchecked self@@ -42,6 +75,15 @@ getR :: (MonadDOM m) => SVGCircleElement -> m (Maybe SVGAnimatedLength) getR self = liftDOM ((self ^. js "r") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGCircleElement.r Mozilla SVGCircleElement.r documentation> +getRUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGCircleElement -> m SVGAnimatedLength+getRUnsafe self+ = liftDOM+ (((self ^. js "r") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGCircleElement.r Mozilla SVGCircleElement.r documentation> getRUnchecked ::
@@ -1,10 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGClipPathElement- (getClipPathUnits, getClipPathUnitsUnchecked, SVGClipPathElement,- castToSVGClipPathElement, gTypeSVGClipPathElement)+ (getClipPathUnits, getClipPathUnitsUnsafe,+ getClipPathUnitsUnchecked, SVGClipPathElement(..),+ gTypeSVGClipPathElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGClipPathElement.clipPathUnits Mozilla SVGClipPathElement.clipPathUnits documentation> getClipPathUnits ::@@ -22,6 +37,15 @@ SVGClipPathElement -> m (Maybe SVGAnimatedEnumeration) getClipPathUnits self = liftDOM ((self ^. js "clipPathUnits") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGClipPathElement.clipPathUnits Mozilla SVGClipPathElement.clipPathUnits documentation> +getClipPathUnitsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGClipPathElement -> m SVGAnimatedEnumeration+getClipPathUnitsUnsafe self+ = liftDOM+ (((self ^. js "clipPathUnits") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGClipPathElement.clipPathUnits Mozilla SVGClipPathElement.clipPathUnits documentation> getClipPathUnitsUnchecked ::
@@ -1,14 +1,18 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGColor (setRGBColor, setRGBColorICCColor, setColor, pattern SVG_COLORTYPE_UNKNOWN, pattern SVG_COLORTYPE_RGBCOLOR, pattern SVG_COLORTYPE_RGBCOLOR_ICCCOLOR, pattern SVG_COLORTYPE_CURRENTCOLOR, getColorType, getRgbColor,- getRgbColorUnchecked, SVGColor, castToSVGColor, gTypeSVGColor,- IsSVGColor, toSVGColor)+ getRgbColorUnsafe, getRgbColorUnchecked, SVGColor(..),+ gTypeSVGColor, IsSVGColor, toSVGColor) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +23,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGColor.setRGBColor Mozilla SVGColor.setRGBColor documentation> setRGBColor ::@@ -65,6 +79,14 @@ (MonadDOM m, IsSVGColor self) => self -> m (Maybe RGBColor) getRgbColor self = liftDOM (((toSVGColor self) ^. js "rgbColor") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGColor.rgbColor Mozilla SVGColor.rgbColor documentation> +getRgbColorUnsafe ::+ (MonadDOM m, IsSVGColor self, HasCallStack) => self -> m RGBColor+getRgbColorUnsafe self+ = liftDOM+ ((((toSVGColor self) ^. js "rgbColor") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGColor.rgbColor Mozilla SVGColor.rgbColor documentation> getRgbColorUnchecked ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGComponentTransferFunctionElement (pattern SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN,@@ -6,18 +9,20 @@ pattern SVG_FECOMPONENTTRANSFER_TYPE_TABLE, pattern SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE, pattern SVG_FECOMPONENTTRANSFER_TYPE_LINEAR,- pattern SVG_FECOMPONENTTRANSFER_TYPE_GAMMA, getType,- getTypeUnchecked, getTableValues, getTableValuesUnchecked,- getSlope, getSlopeUnchecked, getIntercept, getInterceptUnchecked,- getAmplitude, getAmplitudeUnchecked, getExponent,- getExponentUnchecked, getOffset, getOffsetUnchecked,- SVGComponentTransferFunctionElement,- castToSVGComponentTransferFunctionElement,+ pattern SVG_FECOMPONENTTRANSFER_TYPE_GAMMA, getType, getTypeUnsafe,+ getTypeUnchecked, getTableValues, getTableValuesUnsafe,+ getTableValuesUnchecked, getSlope, getSlopeUnsafe,+ getSlopeUnchecked, getIntercept, getInterceptUnsafe,+ getInterceptUnchecked, getAmplitude, getAmplitudeUnsafe,+ getAmplitudeUnchecked, getExponent, getExponentUnsafe,+ getExponentUnchecked, getOffset, getOffsetUnsafe,+ getOffsetUnchecked, SVGComponentTransferFunctionElement(..), gTypeSVGComponentTransferFunctionElement, IsSVGComponentTransferFunctionElement, toSVGComponentTransferFunctionElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -28,6 +33,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0 pattern SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1 pattern SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2@@ -45,6 +60,17 @@ fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement.type Mozilla SVGComponentTransferFunctionElement.type documentation> +getTypeUnsafe ::+ (MonadDOM m, IsSVGComponentTransferFunctionElement self,+ HasCallStack) =>+ self -> m SVGAnimatedEnumeration+getTypeUnsafe self+ = liftDOM+ ((((toSVGComponentTransferFunctionElement self) ^. js "type") >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement.type Mozilla SVGComponentTransferFunctionElement.type documentation> getTypeUnchecked :: (MonadDOM m, IsSVGComponentTransferFunctionElement self) => self -> m SVGAnimatedEnumeration@@ -63,6 +89,18 @@ >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement.tableValues Mozilla SVGComponentTransferFunctionElement.tableValues documentation> +getTableValuesUnsafe ::+ (MonadDOM m, IsSVGComponentTransferFunctionElement self,+ HasCallStack) =>+ self -> m SVGAnimatedNumberList+getTableValuesUnsafe self+ = liftDOM+ ((((toSVGComponentTransferFunctionElement self) ^.+ js "tableValues")+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement.tableValues Mozilla SVGComponentTransferFunctionElement.tableValues documentation> getTableValuesUnchecked :: (MonadDOM m, IsSVGComponentTransferFunctionElement self) => self -> m SVGAnimatedNumberList@@ -81,6 +119,17 @@ fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement.slope Mozilla SVGComponentTransferFunctionElement.slope documentation> +getSlopeUnsafe ::+ (MonadDOM m, IsSVGComponentTransferFunctionElement self,+ HasCallStack) =>+ self -> m SVGAnimatedNumber+getSlopeUnsafe self+ = liftDOM+ ((((toSVGComponentTransferFunctionElement self) ^. js "slope") >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement.slope Mozilla SVGComponentTransferFunctionElement.slope documentation> getSlopeUnchecked :: (MonadDOM m, IsSVGComponentTransferFunctionElement self) => self -> m SVGAnimatedNumber@@ -99,6 +148,17 @@ >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement.intercept Mozilla SVGComponentTransferFunctionElement.intercept documentation> +getInterceptUnsafe ::+ (MonadDOM m, IsSVGComponentTransferFunctionElement self,+ HasCallStack) =>+ self -> m SVGAnimatedNumber+getInterceptUnsafe self+ = liftDOM+ ((((toSVGComponentTransferFunctionElement self) ^. js "intercept")+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement.intercept Mozilla SVGComponentTransferFunctionElement.intercept documentation> getInterceptUnchecked :: (MonadDOM m, IsSVGComponentTransferFunctionElement self) => self -> m SVGAnimatedNumber@@ -117,6 +177,17 @@ >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement.amplitude Mozilla SVGComponentTransferFunctionElement.amplitude documentation> +getAmplitudeUnsafe ::+ (MonadDOM m, IsSVGComponentTransferFunctionElement self,+ HasCallStack) =>+ self -> m SVGAnimatedNumber+getAmplitudeUnsafe self+ = liftDOM+ ((((toSVGComponentTransferFunctionElement self) ^. js "amplitude")+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement.amplitude Mozilla SVGComponentTransferFunctionElement.amplitude documentation> getAmplitudeUnchecked :: (MonadDOM m, IsSVGComponentTransferFunctionElement self) => self -> m SVGAnimatedNumber@@ -135,6 +206,17 @@ >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement.exponent Mozilla SVGComponentTransferFunctionElement.exponent documentation> +getExponentUnsafe ::+ (MonadDOM m, IsSVGComponentTransferFunctionElement self,+ HasCallStack) =>+ self -> m SVGAnimatedNumber+getExponentUnsafe self+ = liftDOM+ ((((toSVGComponentTransferFunctionElement self) ^. js "exponent")+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement.exponent Mozilla SVGComponentTransferFunctionElement.exponent documentation> getExponentUnchecked :: (MonadDOM m, IsSVGComponentTransferFunctionElement self) => self -> m SVGAnimatedNumber@@ -151,6 +233,17 @@ = liftDOM (((toSVGComponentTransferFunctionElement self) ^. js "offset") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement.offset Mozilla SVGComponentTransferFunctionElement.offset documentation> +getOffsetUnsafe ::+ (MonadDOM m, IsSVGComponentTransferFunctionElement self,+ HasCallStack) =>+ self -> m SVGAnimatedNumber+getOffsetUnsafe self+ = liftDOM+ ((((toSVGComponentTransferFunctionElement self) ^. js "offset") >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement.offset Mozilla SVGComponentTransferFunctionElement.offset documentation> getOffsetUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGCursorElement- (getX, getXUnchecked, getY, getYUnchecked, SVGCursorElement,- castToSVGCursorElement, gTypeSVGCursorElement)+ (getX, getXUnsafe, getXUnchecked, getY, getYUnsafe, getYUnchecked,+ SVGCursorElement(..), gTypeSVGCursorElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGCursorElement.x Mozilla SVGCursorElement.x documentation> getX ::@@ -22,6 +36,15 @@ getX self = liftDOM ((self ^. js "x") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGCursorElement.x Mozilla SVGCursorElement.x documentation> +getXUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGCursorElement -> m SVGAnimatedLength+getXUnsafe self+ = liftDOM+ (((self ^. js "x") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGCursorElement.x Mozilla SVGCursorElement.x documentation> getXUnchecked :: (MonadDOM m) => SVGCursorElement -> m SVGAnimatedLength getXUnchecked self@@ -31,6 +54,15 @@ getY :: (MonadDOM m) => SVGCursorElement -> m (Maybe SVGAnimatedLength) getY self = liftDOM ((self ^. js "y") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGCursorElement.y Mozilla SVGCursorElement.y documentation> +getYUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGCursorElement -> m SVGAnimatedLength+getYUnsafe self+ = liftDOM+ (((self ^. js "y") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGCursorElement.y Mozilla SVGCursorElement.y documentation> getYUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGDocument- (createEvent, createEvent_, createEventUnchecked, getRootElement,- getRootElementUnchecked, SVGDocument, castToSVGDocument,- gTypeSVGDocument)+ (createEvent, createEvent_, createEventUnsafe,+ createEventUnchecked, getRootElement, getRootElementUnsafe,+ getRootElementUnchecked, SVGDocument(..), gTypeSVGDocument) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGDocument.createEvent Mozilla SVGDocument.createEvent documentation> createEvent ::@@ -33,6 +47,15 @@ = liftDOM (void (self ^. jsf "createEvent" [toJSVal eventType])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGDocument.createEvent Mozilla SVGDocument.createEvent documentation> +createEventUnsafe ::+ (MonadDOM m, ToJSString eventType, HasCallStack) =>+ SVGDocument -> eventType -> m Event+createEventUnsafe self eventType+ = liftDOM+ (((self ^. jsf "createEvent" [toJSVal eventType]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGDocument.createEvent Mozilla SVGDocument.createEvent documentation> createEventUnchecked :: (MonadDOM m, ToJSString eventType) => SVGDocument -> eventType -> m Event@@ -46,6 +69,14 @@ (MonadDOM m) => SVGDocument -> m (Maybe SVGSVGElement) getRootElement self = liftDOM ((self ^. js "rootElement") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGDocument.rootElement Mozilla SVGDocument.rootElement documentation> +getRootElementUnsafe ::+ (MonadDOM m, HasCallStack) => SVGDocument -> m SVGSVGElement+getRootElementUnsafe self+ = liftDOM+ (((self ^. js "rootElement") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGDocument.rootElement Mozilla SVGDocument.rootElement documentation> getRootElementUnchecked ::
@@ -1,16 +1,22 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGElement (getPresentationAttribute, getPresentationAttribute_,- getPresentationAttributeUnchecked, setXmlbase, getXmlbase,- getXmlbaseUnchecked, getOwnerSVGElement,+ getPresentationAttributeUnsafe, getPresentationAttributeUnchecked,+ setXmlbase, getXmlbase, getXmlbaseUnsafe, getXmlbaseUnchecked,+ getOwnerSVGElement, getOwnerSVGElementUnsafe, getOwnerSVGElementUnchecked, getViewportElement,- getViewportElementUnchecked, setXmllang, getXmllang, setXmlspace,- getXmlspace, getClassName, getClassNameUnchecked, getStyle,- getStyleUnchecked, setTabIndex, getTabIndex, SVGElement,- castToSVGElement, gTypeSVGElement, IsSVGElement, toSVGElement)+ getViewportElementUnsafe, getViewportElementUnchecked, setXmllang,+ getXmllang, setXmlspace, getXmlspace, getClassName,+ getClassNameUnsafe, getClassNameUnchecked, getStyle,+ getStyleUnsafe, getStyleUnchecked, setTabIndex, getTabIndex,+ SVGElement(..), gTypeSVGElement, IsSVGElement, toSVGElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -21,6 +27,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGElement.getPresentationAttribute Mozilla SVGElement.getPresentationAttribute documentation> getPresentationAttribute ::@@ -43,6 +59,17 @@ [toJSVal name])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGElement.getPresentationAttribute Mozilla SVGElement.getPresentationAttribute documentation> +getPresentationAttributeUnsafe ::+ (MonadDOM m, IsSVGElement self, ToJSString name, HasCallStack) =>+ self -> name -> m CSSValue+getPresentationAttributeUnsafe self name+ = liftDOM+ ((((toSVGElement self) ^. jsf "getPresentationAttribute"+ [toJSVal name])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGElement.getPresentationAttribute Mozilla SVGElement.getPresentationAttribute documentation> getPresentationAttributeUnchecked :: (MonadDOM m, IsSVGElement self, ToJSString name) => self -> name -> m CSSValue@@ -68,6 +95,16 @@ (((toSVGElement self) ^. js "xmlbase") >>= fromMaybeJSString) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGElement.xmlbase Mozilla SVGElement.xmlbase documentation> +getXmlbaseUnsafe ::+ (MonadDOM m, IsSVGElement self, HasCallStack,+ FromJSString result) =>+ self -> m result+getXmlbaseUnsafe self+ = liftDOM+ ((((toSVGElement self) ^. js "xmlbase") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGElement.xmlbase Mozilla SVGElement.xmlbase documentation> getXmlbaseUnchecked :: (MonadDOM m, IsSVGElement self, FromJSString result) => self -> m result@@ -83,6 +120,15 @@ (((toSVGElement self) ^. js "ownerSVGElement") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGElement.ownerSVGElement Mozilla SVGElement.ownerSVGElement documentation> +getOwnerSVGElementUnsafe ::+ (MonadDOM m, IsSVGElement self, HasCallStack) =>+ self -> m SVGSVGElement+getOwnerSVGElementUnsafe self+ = liftDOM+ ((((toSVGElement self) ^. js "ownerSVGElement") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGElement.ownerSVGElement Mozilla SVGElement.ownerSVGElement documentation> getOwnerSVGElementUnchecked :: (MonadDOM m, IsSVGElement self) => self -> m SVGSVGElement getOwnerSVGElementUnchecked self@@ -98,6 +144,15 @@ (((toSVGElement self) ^. js "viewportElement") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGElement.viewportElement Mozilla SVGElement.viewportElement documentation> +getViewportElementUnsafe ::+ (MonadDOM m, IsSVGElement self, HasCallStack) =>+ self -> m SVGElement+getViewportElementUnsafe self+ = liftDOM+ ((((toSVGElement self) ^. js "viewportElement") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGElement.viewportElement Mozilla SVGElement.viewportElement documentation> getViewportElementUnchecked :: (MonadDOM m, IsSVGElement self) => self -> m SVGElement getViewportElementUnchecked self@@ -143,6 +198,15 @@ = liftDOM (((toSVGElement self) ^. js "className") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGElement.className Mozilla SVGElement.className documentation> +getClassNameUnsafe ::+ (MonadDOM m, IsSVGElement self, HasCallStack) =>+ self -> m SVGAnimatedString+getClassNameUnsafe self+ = liftDOM+ ((((toSVGElement self) ^. js "className") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGElement.className Mozilla SVGElement.className documentation> getClassNameUnchecked :: (MonadDOM m, IsSVGElement self) => self -> m SVGAnimatedString getClassNameUnchecked self@@ -155,6 +219,15 @@ self -> m (Maybe CSSStyleDeclaration) getStyle self = liftDOM (((toSVGElement self) ^. js "style") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGElement.style Mozilla SVGElement.style documentation> +getStyleUnsafe ::+ (MonadDOM m, IsSVGElement self, HasCallStack) =>+ self -> m CSSStyleDeclaration+getStyleUnsafe self+ = liftDOM+ ((((toSVGElement self) ^. js "style") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGElement.style Mozilla SVGElement.style documentation> getStyleUnchecked ::
@@ -1,11 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGEllipseElement- (getCx, getCxUnchecked, getCy, getCyUnchecked, getRx,- getRxUnchecked, getRy, getRyUnchecked, SVGEllipseElement,- castToSVGEllipseElement, gTypeSVGEllipseElement)+ (getCx, getCxUnsafe, getCxUnchecked, getCy, getCyUnsafe,+ getCyUnchecked, getRx, getRxUnsafe, getRxUnchecked, getRy,+ getRyUnsafe, getRyUnchecked, SVGEllipseElement(..),+ gTypeSVGEllipseElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement.cx Mozilla SVGEllipseElement.cx documentation> getCx ::@@ -23,6 +38,15 @@ getCx self = liftDOM ((self ^. js "cx") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement.cx Mozilla SVGEllipseElement.cx documentation> +getCxUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGEllipseElement -> m SVGAnimatedLength+getCxUnsafe self+ = liftDOM+ (((self ^. js "cx") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement.cx Mozilla SVGEllipseElement.cx documentation> getCxUnchecked :: (MonadDOM m) => SVGEllipseElement -> m SVGAnimatedLength getCxUnchecked self@@ -34,6 +58,15 @@ getCy self = liftDOM ((self ^. js "cy") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement.cy Mozilla SVGEllipseElement.cy documentation> +getCyUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGEllipseElement -> m SVGAnimatedLength+getCyUnsafe self+ = liftDOM+ (((self ^. js "cy") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement.cy Mozilla SVGEllipseElement.cy documentation> getCyUnchecked :: (MonadDOM m) => SVGEllipseElement -> m SVGAnimatedLength getCyUnchecked self@@ -45,6 +78,15 @@ getRx self = liftDOM ((self ^. js "rx") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement.rx Mozilla SVGEllipseElement.rx documentation> +getRxUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGEllipseElement -> m SVGAnimatedLength+getRxUnsafe self+ = liftDOM+ (((self ^. js "rx") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement.rx Mozilla SVGEllipseElement.rx documentation> getRxUnchecked :: (MonadDOM m) => SVGEllipseElement -> m SVGAnimatedLength getRxUnchecked self@@ -54,6 +96,15 @@ getRy :: (MonadDOM m) => SVGEllipseElement -> m (Maybe SVGAnimatedLength) getRy self = liftDOM ((self ^. js "ry") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement.ry Mozilla SVGEllipseElement.ry documentation> +getRyUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGEllipseElement -> m SVGAnimatedLength+getRyUnsafe self+ = liftDOM+ (((self ^. js "ry") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement.ry Mozilla SVGEllipseElement.ry documentation> getRyUnchecked ::
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGExternalResourcesRequired- (getExternalResourcesRequired,+ (getExternalResourcesRequired, getExternalResourcesRequiredUnsafe, getExternalResourcesRequiredUnchecked,- SVGExternalResourcesRequired, castToSVGExternalResourcesRequired,+ SVGExternalResourcesRequired(..), gTypeSVGExternalResourcesRequired) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGExternalResourcesRequired.externalResourcesRequired Mozilla SVGExternalResourcesRequired.externalResourcesRequired documentation> getExternalResourcesRequired ::@@ -24,6 +38,15 @@ SVGExternalResourcesRequired -> m (Maybe SVGAnimatedBoolean) getExternalResourcesRequired self = liftDOM ((self ^. js "externalResourcesRequired") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGExternalResourcesRequired.externalResourcesRequired Mozilla SVGExternalResourcesRequired.externalResourcesRequired documentation> +getExternalResourcesRequiredUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGExternalResourcesRequired -> m SVGAnimatedBoolean+getExternalResourcesRequiredUnsafe self+ = liftDOM+ (((self ^. js "externalResourcesRequired") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGExternalResourcesRequired.externalResourcesRequired Mozilla SVGExternalResourcesRequired.externalResourcesRequired documentation> getExternalResourcesRequiredUnchecked ::
@@ -1,14 +1,18 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFEBlendElement (pattern SVG_FEBLEND_MODE_UNKNOWN, pattern SVG_FEBLEND_MODE_NORMAL, pattern SVG_FEBLEND_MODE_MULTIPLY, pattern SVG_FEBLEND_MODE_SCREEN, pattern SVG_FEBLEND_MODE_DARKEN, pattern SVG_FEBLEND_MODE_LIGHTEN,- getIn1, getIn1Unchecked, getIn2, getIn2Unchecked, getMode,- getModeUnchecked, SVGFEBlendElement, castToSVGFEBlendElement,- gTypeSVGFEBlendElement)+ getIn1, getIn1Unsafe, getIn1Unchecked, getIn2, getIn2Unsafe,+ getIn2Unchecked, getMode, getModeUnsafe, getModeUnchecked,+ SVGFEBlendElement(..), gTypeSVGFEBlendElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +23,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern SVG_FEBLEND_MODE_UNKNOWN = 0 pattern SVG_FEBLEND_MODE_NORMAL = 1 pattern SVG_FEBLEND_MODE_MULTIPLY = 2@@ -32,6 +46,15 @@ getIn1 self = liftDOM ((self ^. js "in1") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement.in1 Mozilla SVGFEBlendElement.in1 documentation> +getIn1Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEBlendElement -> m SVGAnimatedString+getIn1Unsafe self+ = liftDOM+ (((self ^. js "in1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement.in1 Mozilla SVGFEBlendElement.in1 documentation> getIn1Unchecked :: (MonadDOM m) => SVGFEBlendElement -> m SVGAnimatedString getIn1Unchecked self@@ -43,6 +66,15 @@ getIn2 self = liftDOM ((self ^. js "in2") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement.in2 Mozilla SVGFEBlendElement.in2 documentation> +getIn2Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEBlendElement -> m SVGAnimatedString+getIn2Unsafe self+ = liftDOM+ (((self ^. js "in2") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement.in2 Mozilla SVGFEBlendElement.in2 documentation> getIn2Unchecked :: (MonadDOM m) => SVGFEBlendElement -> m SVGAnimatedString getIn2Unchecked self@@ -53,6 +85,15 @@ (MonadDOM m) => SVGFEBlendElement -> m (Maybe SVGAnimatedEnumeration) getMode self = liftDOM ((self ^. js "mode") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement.mode Mozilla SVGFEBlendElement.mode documentation> +getModeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEBlendElement -> m SVGAnimatedEnumeration+getModeUnsafe self+ = liftDOM+ (((self ^. js "mode") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement.mode Mozilla SVGFEBlendElement.mode documentation> getModeUnchecked ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFEColorMatrixElement (pattern SVG_FECOLORMATRIX_TYPE_UNKNOWN,@@ -6,11 +9,12 @@ pattern SVG_FECOLORMATRIX_TYPE_SATURATE, pattern SVG_FECOLORMATRIX_TYPE_HUEROTATE, pattern SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA, getIn1,- getIn1Unchecked, getType, getTypeUnchecked, getValues,- getValuesUnchecked, SVGFEColorMatrixElement,- castToSVGFEColorMatrixElement, gTypeSVGFEColorMatrixElement)+ getIn1Unsafe, getIn1Unchecked, getType, getTypeUnsafe,+ getTypeUnchecked, getValues, getValuesUnsafe, getValuesUnchecked,+ SVGFEColorMatrixElement(..), gTypeSVGFEColorMatrixElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -21,6 +25,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0 pattern SVG_FECOLORMATRIX_TYPE_MATRIX = 1 pattern SVG_FECOLORMATRIX_TYPE_SATURATE = 2@@ -34,6 +48,15 @@ getIn1 self = liftDOM ((self ^. js "in1") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement.in1 Mozilla SVGFEColorMatrixElement.in1 documentation> +getIn1Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEColorMatrixElement -> m SVGAnimatedString+getIn1Unsafe self+ = liftDOM+ (((self ^. js "in1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement.in1 Mozilla SVGFEColorMatrixElement.in1 documentation> getIn1Unchecked :: (MonadDOM m) => SVGFEColorMatrixElement -> m SVGAnimatedString getIn1Unchecked self@@ -46,6 +69,15 @@ getType self = liftDOM ((self ^. js "type") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement.type Mozilla SVGFEColorMatrixElement.type documentation> +getTypeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEColorMatrixElement -> m SVGAnimatedEnumeration+getTypeUnsafe self+ = liftDOM+ (((self ^. js "type") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement.type Mozilla SVGFEColorMatrixElement.type documentation> getTypeUnchecked :: (MonadDOM m) => SVGFEColorMatrixElement -> m SVGAnimatedEnumeration getTypeUnchecked self@@ -56,6 +88,15 @@ (MonadDOM m) => SVGFEColorMatrixElement -> m (Maybe SVGAnimatedNumberList) getValues self = liftDOM ((self ^. js "values") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement.values Mozilla SVGFEColorMatrixElement.values documentation> +getValuesUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEColorMatrixElement -> m SVGAnimatedNumberList+getValuesUnsafe self+ = liftDOM+ (((self ^. js "values") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement.values Mozilla SVGFEColorMatrixElement.values documentation> getValuesUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFEComponentTransferElement- (getIn1, getIn1Unchecked, SVGFEComponentTransferElement,- castToSVGFEComponentTransferElement,+ (getIn1, getIn1Unsafe, getIn1Unchecked,+ SVGFEComponentTransferElement(..), gTypeSVGFEComponentTransferElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,12 +20,31 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement.in1 Mozilla SVGFEComponentTransferElement.in1 documentation> getIn1 :: (MonadDOM m) => SVGFEComponentTransferElement -> m (Maybe SVGAnimatedString) getIn1 self = liftDOM ((self ^. js "in1") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement.in1 Mozilla SVGFEComponentTransferElement.in1 documentation> +getIn1Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEComponentTransferElement -> m SVGAnimatedString+getIn1Unsafe self+ = liftDOM+ (((self ^. js "in1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement.in1 Mozilla SVGFEComponentTransferElement.in1 documentation> getIn1Unchecked ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFECompositeElement (pattern SVG_FECOMPOSITE_OPERATOR_UNKNOWN,@@ -7,14 +10,16 @@ pattern SVG_FECOMPOSITE_OPERATOR_OUT, pattern SVG_FECOMPOSITE_OPERATOR_ATOP, pattern SVG_FECOMPOSITE_OPERATOR_XOR,- pattern SVG_FECOMPOSITE_OPERATOR_ARITHMETIC, getIn1,- getIn1Unchecked, getIn2, getIn2Unchecked, getOperator,- getOperatorUnchecked, getK1, getK1Unchecked, getK2, getK2Unchecked,- getK3, getK3Unchecked, getK4, getK4Unchecked,- SVGFECompositeElement, castToSVGFECompositeElement,+ pattern SVG_FECOMPOSITE_OPERATOR_ARITHMETIC, getIn1, getIn1Unsafe,+ getIn1Unchecked, getIn2, getIn2Unsafe, getIn2Unchecked,+ getOperator, getOperatorUnsafe, getOperatorUnchecked, getK1,+ getK1Unsafe, getK1Unchecked, getK2, getK2Unsafe, getK2Unchecked,+ getK3, getK3Unsafe, getK3Unchecked, getK4, getK4Unsafe,+ getK4Unchecked, SVGFECompositeElement(..), gTypeSVGFECompositeElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -25,6 +30,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0 pattern SVG_FECOMPOSITE_OPERATOR_OVER = 1 pattern SVG_FECOMPOSITE_OPERATOR_IN = 2@@ -40,6 +55,15 @@ getIn1 self = liftDOM ((self ^. js "in1") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement.in1 Mozilla SVGFECompositeElement.in1 documentation> +getIn1Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFECompositeElement -> m SVGAnimatedString+getIn1Unsafe self+ = liftDOM+ (((self ^. js "in1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement.in1 Mozilla SVGFECompositeElement.in1 documentation> getIn1Unchecked :: (MonadDOM m) => SVGFECompositeElement -> m SVGAnimatedString getIn1Unchecked self@@ -52,6 +76,15 @@ getIn2 self = liftDOM ((self ^. js "in2") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement.in2 Mozilla SVGFECompositeElement.in2 documentation> +getIn2Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFECompositeElement -> m SVGAnimatedString+getIn2Unsafe self+ = liftDOM+ (((self ^. js "in2") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement.in2 Mozilla SVGFECompositeElement.in2 documentation> getIn2Unchecked :: (MonadDOM m) => SVGFECompositeElement -> m SVGAnimatedString getIn2Unchecked self@@ -64,6 +97,15 @@ getOperator self = liftDOM ((self ^. js "operator") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement.operator Mozilla SVGFECompositeElement.operator documentation> +getOperatorUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFECompositeElement -> m SVGAnimatedEnumeration+getOperatorUnsafe self+ = liftDOM+ (((self ^. js "operator") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement.operator Mozilla SVGFECompositeElement.operator documentation> getOperatorUnchecked :: (MonadDOM m) => SVGFECompositeElement -> m SVGAnimatedEnumeration getOperatorUnchecked self@@ -76,6 +118,15 @@ getK1 self = liftDOM ((self ^. js "k1") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement.k1 Mozilla SVGFECompositeElement.k1 documentation> +getK1Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFECompositeElement -> m SVGAnimatedNumber+getK1Unsafe self+ = liftDOM+ (((self ^. js "k1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement.k1 Mozilla SVGFECompositeElement.k1 documentation> getK1Unchecked :: (MonadDOM m) => SVGFECompositeElement -> m SVGAnimatedNumber getK1Unchecked self@@ -88,6 +139,15 @@ getK2 self = liftDOM ((self ^. js "k2") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement.k2 Mozilla SVGFECompositeElement.k2 documentation> +getK2Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFECompositeElement -> m SVGAnimatedNumber+getK2Unsafe self+ = liftDOM+ (((self ^. js "k2") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement.k2 Mozilla SVGFECompositeElement.k2 documentation> getK2Unchecked :: (MonadDOM m) => SVGFECompositeElement -> m SVGAnimatedNumber getK2Unchecked self@@ -100,6 +160,15 @@ getK3 self = liftDOM ((self ^. js "k3") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement.k3 Mozilla SVGFECompositeElement.k3 documentation> +getK3Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFECompositeElement -> m SVGAnimatedNumber+getK3Unsafe self+ = liftDOM+ (((self ^. js "k3") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement.k3 Mozilla SVGFECompositeElement.k3 documentation> getK3Unchecked :: (MonadDOM m) => SVGFECompositeElement -> m SVGAnimatedNumber getK3Unchecked self@@ -110,6 +179,15 @@ (MonadDOM m) => SVGFECompositeElement -> m (Maybe SVGAnimatedNumber) getK4 self = liftDOM ((self ^. js "k4") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement.k4 Mozilla SVGFECompositeElement.k4 documentation> +getK4Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFECompositeElement -> m SVGAnimatedNumber+getK4Unsafe self+ = liftDOM+ (((self ^. js "k4") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement.k4 Mozilla SVGFECompositeElement.k4 documentation> getK4Unchecked ::
@@ -1,19 +1,27 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFEConvolveMatrixElement (pattern SVG_EDGEMODE_UNKNOWN, pattern SVG_EDGEMODE_DUPLICATE, pattern SVG_EDGEMODE_WRAP, pattern SVG_EDGEMODE_NONE, getIn1,- getIn1Unchecked, getOrderX, getOrderXUnchecked, getOrderY,- getOrderYUnchecked, getKernelMatrix, getKernelMatrixUnchecked,- getDivisor, getDivisorUnchecked, getBias, getBiasUnchecked,- getTargetX, getTargetXUnchecked, getTargetY, getTargetYUnchecked,- getEdgeMode, getEdgeModeUnchecked, getKernelUnitLengthX,- getKernelUnitLengthXUnchecked, getKernelUnitLengthY,+ getIn1Unsafe, getIn1Unchecked, getOrderX, getOrderXUnsafe,+ getOrderXUnchecked, getOrderY, getOrderYUnsafe, getOrderYUnchecked,+ getKernelMatrix, getKernelMatrixUnsafe, getKernelMatrixUnchecked,+ getDivisor, getDivisorUnsafe, getDivisorUnchecked, getBias,+ getBiasUnsafe, getBiasUnchecked, getTargetX, getTargetXUnsafe,+ getTargetXUnchecked, getTargetY, getTargetYUnsafe,+ getTargetYUnchecked, getEdgeMode, getEdgeModeUnsafe,+ getEdgeModeUnchecked, getKernelUnitLengthX,+ getKernelUnitLengthXUnsafe, getKernelUnitLengthXUnchecked,+ getKernelUnitLengthY, getKernelUnitLengthYUnsafe, getKernelUnitLengthYUnchecked, getPreserveAlpha,- getPreserveAlphaUnchecked, SVGFEConvolveMatrixElement,- castToSVGFEConvolveMatrixElement, gTypeSVGFEConvolveMatrixElement)+ getPreserveAlphaUnsafe, getPreserveAlphaUnchecked,+ SVGFEConvolveMatrixElement(..), gTypeSVGFEConvolveMatrixElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -24,6 +32,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern SVG_EDGEMODE_UNKNOWN = 0 pattern SVG_EDGEMODE_DUPLICATE = 1 pattern SVG_EDGEMODE_WRAP = 2@@ -36,6 +54,15 @@ getIn1 self = liftDOM ((self ^. js "in1") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.in1 Mozilla SVGFEConvolveMatrixElement.in1 documentation> +getIn1Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEConvolveMatrixElement -> m SVGAnimatedString+getIn1Unsafe self+ = liftDOM+ (((self ^. js "in1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.in1 Mozilla SVGFEConvolveMatrixElement.in1 documentation> getIn1Unchecked :: (MonadDOM m) => SVGFEConvolveMatrixElement -> m SVGAnimatedString getIn1Unchecked self@@ -48,6 +75,15 @@ getOrderX self = liftDOM ((self ^. js "orderX") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.orderX Mozilla SVGFEConvolveMatrixElement.orderX documentation> +getOrderXUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEConvolveMatrixElement -> m SVGAnimatedInteger+getOrderXUnsafe self+ = liftDOM+ (((self ^. js "orderX") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.orderX Mozilla SVGFEConvolveMatrixElement.orderX documentation> getOrderXUnchecked :: (MonadDOM m) => SVGFEConvolveMatrixElement -> m SVGAnimatedInteger getOrderXUnchecked self@@ -60,6 +96,15 @@ getOrderY self = liftDOM ((self ^. js "orderY") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.orderY Mozilla SVGFEConvolveMatrixElement.orderY documentation> +getOrderYUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEConvolveMatrixElement -> m SVGAnimatedInteger+getOrderYUnsafe self+ = liftDOM+ (((self ^. js "orderY") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.orderY Mozilla SVGFEConvolveMatrixElement.orderY documentation> getOrderYUnchecked :: (MonadDOM m) => SVGFEConvolveMatrixElement -> m SVGAnimatedInteger getOrderYUnchecked self@@ -73,6 +118,15 @@ = liftDOM ((self ^. js "kernelMatrix") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.kernelMatrix Mozilla SVGFEConvolveMatrixElement.kernelMatrix documentation> +getKernelMatrixUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEConvolveMatrixElement -> m SVGAnimatedNumberList+getKernelMatrixUnsafe self+ = liftDOM+ (((self ^. js "kernelMatrix") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.kernelMatrix Mozilla SVGFEConvolveMatrixElement.kernelMatrix documentation> getKernelMatrixUnchecked :: (MonadDOM m) => SVGFEConvolveMatrixElement -> m SVGAnimatedNumberList@@ -86,6 +140,15 @@ getDivisor self = liftDOM ((self ^. js "divisor") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.divisor Mozilla SVGFEConvolveMatrixElement.divisor documentation> +getDivisorUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEConvolveMatrixElement -> m SVGAnimatedNumber+getDivisorUnsafe self+ = liftDOM+ (((self ^. js "divisor") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.divisor Mozilla SVGFEConvolveMatrixElement.divisor documentation> getDivisorUnchecked :: (MonadDOM m) => SVGFEConvolveMatrixElement -> m SVGAnimatedNumber getDivisorUnchecked self@@ -98,6 +161,15 @@ getBias self = liftDOM ((self ^. js "bias") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.bias Mozilla SVGFEConvolveMatrixElement.bias documentation> +getBiasUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEConvolveMatrixElement -> m SVGAnimatedNumber+getBiasUnsafe self+ = liftDOM+ (((self ^. js "bias") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.bias Mozilla SVGFEConvolveMatrixElement.bias documentation> getBiasUnchecked :: (MonadDOM m) => SVGFEConvolveMatrixElement -> m SVGAnimatedNumber getBiasUnchecked self@@ -110,6 +182,15 @@ getTargetX self = liftDOM ((self ^. js "targetX") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.targetX Mozilla SVGFEConvolveMatrixElement.targetX documentation> +getTargetXUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEConvolveMatrixElement -> m SVGAnimatedInteger+getTargetXUnsafe self+ = liftDOM+ (((self ^. js "targetX") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.targetX Mozilla SVGFEConvolveMatrixElement.targetX documentation> getTargetXUnchecked :: (MonadDOM m) => SVGFEConvolveMatrixElement -> m SVGAnimatedInteger getTargetXUnchecked self@@ -122,6 +203,15 @@ getTargetY self = liftDOM ((self ^. js "targetY") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.targetY Mozilla SVGFEConvolveMatrixElement.targetY documentation> +getTargetYUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEConvolveMatrixElement -> m SVGAnimatedInteger+getTargetYUnsafe self+ = liftDOM+ (((self ^. js "targetY") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.targetY Mozilla SVGFEConvolveMatrixElement.targetY documentation> getTargetYUnchecked :: (MonadDOM m) => SVGFEConvolveMatrixElement -> m SVGAnimatedInteger getTargetYUnchecked self@@ -134,6 +224,15 @@ getEdgeMode self = liftDOM ((self ^. js "edgeMode") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.edgeMode Mozilla SVGFEConvolveMatrixElement.edgeMode documentation> +getEdgeModeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEConvolveMatrixElement -> m SVGAnimatedEnumeration+getEdgeModeUnsafe self+ = liftDOM+ (((self ^. js "edgeMode") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.edgeMode Mozilla SVGFEConvolveMatrixElement.edgeMode documentation> getEdgeModeUnchecked :: (MonadDOM m) => SVGFEConvolveMatrixElement -> m SVGAnimatedEnumeration@@ -148,6 +247,15 @@ = liftDOM ((self ^. js "kernelUnitLengthX") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.kernelUnitLengthX Mozilla SVGFEConvolveMatrixElement.kernelUnitLengthX documentation> +getKernelUnitLengthXUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEConvolveMatrixElement -> m SVGAnimatedNumber+getKernelUnitLengthXUnsafe self+ = liftDOM+ (((self ^. js "kernelUnitLengthX") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.kernelUnitLengthX Mozilla SVGFEConvolveMatrixElement.kernelUnitLengthX documentation> getKernelUnitLengthXUnchecked :: (MonadDOM m) => SVGFEConvolveMatrixElement -> m SVGAnimatedNumber getKernelUnitLengthXUnchecked self@@ -161,6 +269,15 @@ = liftDOM ((self ^. js "kernelUnitLengthY") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.kernelUnitLengthY Mozilla SVGFEConvolveMatrixElement.kernelUnitLengthY documentation> +getKernelUnitLengthYUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEConvolveMatrixElement -> m SVGAnimatedNumber+getKernelUnitLengthYUnsafe self+ = liftDOM+ (((self ^. js "kernelUnitLengthY") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.kernelUnitLengthY Mozilla SVGFEConvolveMatrixElement.kernelUnitLengthY documentation> getKernelUnitLengthYUnchecked :: (MonadDOM m) => SVGFEConvolveMatrixElement -> m SVGAnimatedNumber getKernelUnitLengthYUnchecked self@@ -172,6 +289,15 @@ SVGFEConvolveMatrixElement -> m (Maybe SVGAnimatedBoolean) getPreserveAlpha self = liftDOM ((self ^. js "preserveAlpha") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.preserveAlpha Mozilla SVGFEConvolveMatrixElement.preserveAlpha documentation> +getPreserveAlphaUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEConvolveMatrixElement -> m SVGAnimatedBoolean+getPreserveAlphaUnsafe self+ = liftDOM+ (((self ^. js "preserveAlpha") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement.preserveAlpha Mozilla SVGFEConvolveMatrixElement.preserveAlpha documentation> getPreserveAlphaUnchecked ::
@@ -1,15 +1,20 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFEDiffuseLightingElement- (getIn1, getIn1Unchecked, getSurfaceScale,- getSurfaceScaleUnchecked, getDiffuseConstant,+ (getIn1, getIn1Unsafe, getIn1Unchecked, getSurfaceScale,+ getSurfaceScaleUnsafe, getSurfaceScaleUnchecked,+ getDiffuseConstant, getDiffuseConstantUnsafe, getDiffuseConstantUnchecked, getKernelUnitLengthX,- getKernelUnitLengthXUnchecked, getKernelUnitLengthY,- getKernelUnitLengthYUnchecked, SVGFEDiffuseLightingElement,- castToSVGFEDiffuseLightingElement,+ getKernelUnitLengthXUnsafe, getKernelUnitLengthXUnchecked,+ getKernelUnitLengthY, getKernelUnitLengthYUnsafe,+ getKernelUnitLengthYUnchecked, SVGFEDiffuseLightingElement(..), gTypeSVGFEDiffuseLightingElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -20,6 +25,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement.in1 Mozilla SVGFEDiffuseLightingElement.in1 documentation> getIn1 ::@@ -28,6 +43,15 @@ getIn1 self = liftDOM ((self ^. js "in1") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement.in1 Mozilla SVGFEDiffuseLightingElement.in1 documentation> +getIn1Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEDiffuseLightingElement -> m SVGAnimatedString+getIn1Unsafe self+ = liftDOM+ (((self ^. js "in1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement.in1 Mozilla SVGFEDiffuseLightingElement.in1 documentation> getIn1Unchecked :: (MonadDOM m) => SVGFEDiffuseLightingElement -> m SVGAnimatedString getIn1Unchecked self@@ -41,6 +65,15 @@ = liftDOM ((self ^. js "surfaceScale") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement.surfaceScale Mozilla SVGFEDiffuseLightingElement.surfaceScale documentation> +getSurfaceScaleUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEDiffuseLightingElement -> m SVGAnimatedNumber+getSurfaceScaleUnsafe self+ = liftDOM+ (((self ^. js "surfaceScale") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement.surfaceScale Mozilla SVGFEDiffuseLightingElement.surfaceScale documentation> getSurfaceScaleUnchecked :: (MonadDOM m) => SVGFEDiffuseLightingElement -> m SVGAnimatedNumber getSurfaceScaleUnchecked self@@ -54,6 +87,15 @@ = liftDOM ((self ^. js "diffuseConstant") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement.diffuseConstant Mozilla SVGFEDiffuseLightingElement.diffuseConstant documentation> +getDiffuseConstantUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEDiffuseLightingElement -> m SVGAnimatedNumber+getDiffuseConstantUnsafe self+ = liftDOM+ (((self ^. js "diffuseConstant") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement.diffuseConstant Mozilla SVGFEDiffuseLightingElement.diffuseConstant documentation> getDiffuseConstantUnchecked :: (MonadDOM m) => SVGFEDiffuseLightingElement -> m SVGAnimatedNumber getDiffuseConstantUnchecked self@@ -67,6 +109,15 @@ = liftDOM ((self ^. js "kernelUnitLengthX") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement.kernelUnitLengthX Mozilla SVGFEDiffuseLightingElement.kernelUnitLengthX documentation> +getKernelUnitLengthXUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEDiffuseLightingElement -> m SVGAnimatedNumber+getKernelUnitLengthXUnsafe self+ = liftDOM+ (((self ^. js "kernelUnitLengthX") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement.kernelUnitLengthX Mozilla SVGFEDiffuseLightingElement.kernelUnitLengthX documentation> getKernelUnitLengthXUnchecked :: (MonadDOM m) => SVGFEDiffuseLightingElement -> m SVGAnimatedNumber getKernelUnitLengthXUnchecked self@@ -78,6 +129,15 @@ SVGFEDiffuseLightingElement -> m (Maybe SVGAnimatedNumber) getKernelUnitLengthY self = liftDOM ((self ^. js "kernelUnitLengthY") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement.kernelUnitLengthY Mozilla SVGFEDiffuseLightingElement.kernelUnitLengthY documentation> +getKernelUnitLengthYUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEDiffuseLightingElement -> m SVGAnimatedNumber+getKernelUnitLengthYUnsafe self+ = liftDOM+ (((self ^. js "kernelUnitLengthY") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement.kernelUnitLengthY Mozilla SVGFEDiffuseLightingElement.kernelUnitLengthY documentation> getKernelUnitLengthYUnchecked ::
@@ -1,16 +1,20 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFEDisplacementMapElement (pattern SVG_CHANNEL_UNKNOWN, pattern SVG_CHANNEL_R, pattern SVG_CHANNEL_G, pattern SVG_CHANNEL_B,- pattern SVG_CHANNEL_A, getIn1, getIn1Unchecked, getIn2,- getIn2Unchecked, getScale, getScaleUnchecked, getXChannelSelector,+ pattern SVG_CHANNEL_A, getIn1, getIn1Unsafe, getIn1Unchecked,+ getIn2, getIn2Unsafe, getIn2Unchecked, getScale, getScaleUnsafe,+ getScaleUnchecked, getXChannelSelector, getXChannelSelectorUnsafe, getXChannelSelectorUnchecked, getYChannelSelector,- getYChannelSelectorUnchecked, SVGFEDisplacementMapElement,- castToSVGFEDisplacementMapElement,- gTypeSVGFEDisplacementMapElement)+ getYChannelSelectorUnsafe, getYChannelSelectorUnchecked,+ SVGFEDisplacementMapElement(..), gTypeSVGFEDisplacementMapElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -21,6 +25,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern SVG_CHANNEL_UNKNOWN = 0 pattern SVG_CHANNEL_R = 1 pattern SVG_CHANNEL_G = 2@@ -34,6 +48,15 @@ getIn1 self = liftDOM ((self ^. js "in1") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement.in1 Mozilla SVGFEDisplacementMapElement.in1 documentation> +getIn1Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEDisplacementMapElement -> m SVGAnimatedString+getIn1Unsafe self+ = liftDOM+ (((self ^. js "in1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement.in1 Mozilla SVGFEDisplacementMapElement.in1 documentation> getIn1Unchecked :: (MonadDOM m) => SVGFEDisplacementMapElement -> m SVGAnimatedString getIn1Unchecked self@@ -46,6 +69,15 @@ getIn2 self = liftDOM ((self ^. js "in2") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement.in2 Mozilla SVGFEDisplacementMapElement.in2 documentation> +getIn2Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEDisplacementMapElement -> m SVGAnimatedString+getIn2Unsafe self+ = liftDOM+ (((self ^. js "in2") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement.in2 Mozilla SVGFEDisplacementMapElement.in2 documentation> getIn2Unchecked :: (MonadDOM m) => SVGFEDisplacementMapElement -> m SVGAnimatedString getIn2Unchecked self@@ -58,6 +90,15 @@ getScale self = liftDOM ((self ^. js "scale") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement.scale Mozilla SVGFEDisplacementMapElement.scale documentation> +getScaleUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEDisplacementMapElement -> m SVGAnimatedNumber+getScaleUnsafe self+ = liftDOM+ (((self ^. js "scale") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement.scale Mozilla SVGFEDisplacementMapElement.scale documentation> getScaleUnchecked :: (MonadDOM m) => SVGFEDisplacementMapElement -> m SVGAnimatedNumber getScaleUnchecked self@@ -71,6 +112,15 @@ = liftDOM ((self ^. js "xChannelSelector") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement.xChannelSelector Mozilla SVGFEDisplacementMapElement.xChannelSelector documentation> +getXChannelSelectorUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEDisplacementMapElement -> m SVGAnimatedEnumeration+getXChannelSelectorUnsafe self+ = liftDOM+ (((self ^. js "xChannelSelector") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement.xChannelSelector Mozilla SVGFEDisplacementMapElement.xChannelSelector documentation> getXChannelSelectorUnchecked :: (MonadDOM m) => SVGFEDisplacementMapElement -> m SVGAnimatedEnumeration@@ -83,6 +133,15 @@ SVGFEDisplacementMapElement -> m (Maybe SVGAnimatedEnumeration) getYChannelSelector self = liftDOM ((self ^. js "yChannelSelector") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement.yChannelSelector Mozilla SVGFEDisplacementMapElement.yChannelSelector documentation> +getYChannelSelectorUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEDisplacementMapElement -> m SVGAnimatedEnumeration+getYChannelSelectorUnsafe self+ = liftDOM+ (((self ^. js "yChannelSelector") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement.yChannelSelector Mozilla SVGFEDisplacementMapElement.yChannelSelector documentation> getYChannelSelectorUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFEDistantLightElement- (getAzimuth, getAzimuthUnchecked, getElevation,- getElevationUnchecked, SVGFEDistantLightElement,- castToSVGFEDistantLightElement, gTypeSVGFEDistantLightElement)+ (getAzimuth, getAzimuthUnsafe, getAzimuthUnchecked, getElevation,+ getElevationUnsafe, getElevationUnchecked,+ SVGFEDistantLightElement(..), gTypeSVGFEDistantLightElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDistantLightElement.azimuth Mozilla SVGFEDistantLightElement.azimuth documentation> getAzimuth ::@@ -24,6 +38,15 @@ getAzimuth self = liftDOM ((self ^. js "azimuth") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDistantLightElement.azimuth Mozilla SVGFEDistantLightElement.azimuth documentation> +getAzimuthUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEDistantLightElement -> m SVGAnimatedNumber+getAzimuthUnsafe self+ = liftDOM+ (((self ^. js "azimuth") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDistantLightElement.azimuth Mozilla SVGFEDistantLightElement.azimuth documentation> getAzimuthUnchecked :: (MonadDOM m) => SVGFEDistantLightElement -> m SVGAnimatedNumber getAzimuthUnchecked self@@ -35,6 +58,15 @@ SVGFEDistantLightElement -> m (Maybe SVGAnimatedNumber) getElevation self = liftDOM ((self ^. js "elevation") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDistantLightElement.elevation Mozilla SVGFEDistantLightElement.elevation documentation> +getElevationUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEDistantLightElement -> m SVGAnimatedNumber+getElevationUnsafe self+ = liftDOM+ (((self ^. js "elevation") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDistantLightElement.elevation Mozilla SVGFEDistantLightElement.elevation documentation> getElevationUnchecked ::
@@ -1,13 +1,18 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFEDropShadowElement- (setStdDeviation, getIn1, getIn1Unchecked, getDx, getDxUnchecked,- getDy, getDyUnchecked, getStdDeviationX, getStdDeviationXUnchecked,- getStdDeviationY, getStdDeviationYUnchecked,- SVGFEDropShadowElement, castToSVGFEDropShadowElement,- gTypeSVGFEDropShadowElement)+ (setStdDeviation, getIn1, getIn1Unsafe, getIn1Unchecked, getDx,+ getDxUnsafe, getDxUnchecked, getDy, getDyUnsafe, getDyUnchecked,+ getStdDeviationX, getStdDeviationXUnsafe,+ getStdDeviationXUnchecked, getStdDeviationY,+ getStdDeviationYUnsafe, getStdDeviationYUnchecked,+ SVGFEDropShadowElement(..), gTypeSVGFEDropShadowElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +23,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement.setStdDeviation Mozilla SVGFEDropShadowElement.setStdDeviation documentation> setStdDeviation ::@@ -35,6 +50,15 @@ getIn1 self = liftDOM ((self ^. js "in1") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement.in1 Mozilla SVGFEDropShadowElement.in1 documentation> +getIn1Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEDropShadowElement -> m SVGAnimatedString+getIn1Unsafe self+ = liftDOM+ (((self ^. js "in1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement.in1 Mozilla SVGFEDropShadowElement.in1 documentation> getIn1Unchecked :: (MonadDOM m) => SVGFEDropShadowElement -> m SVGAnimatedString getIn1Unchecked self@@ -47,6 +71,15 @@ getDx self = liftDOM ((self ^. js "dx") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement.dx Mozilla SVGFEDropShadowElement.dx documentation> +getDxUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEDropShadowElement -> m SVGAnimatedNumber+getDxUnsafe self+ = liftDOM+ (((self ^. js "dx") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement.dx Mozilla SVGFEDropShadowElement.dx documentation> getDxUnchecked :: (MonadDOM m) => SVGFEDropShadowElement -> m SVGAnimatedNumber getDxUnchecked self@@ -59,6 +92,15 @@ getDy self = liftDOM ((self ^. js "dy") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement.dy Mozilla SVGFEDropShadowElement.dy documentation> +getDyUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEDropShadowElement -> m SVGAnimatedNumber+getDyUnsafe self+ = liftDOM+ (((self ^. js "dy") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement.dy Mozilla SVGFEDropShadowElement.dy documentation> getDyUnchecked :: (MonadDOM m) => SVGFEDropShadowElement -> m SVGAnimatedNumber getDyUnchecked self@@ -72,6 +114,15 @@ = liftDOM ((self ^. js "stdDeviationX") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement.stdDeviationX Mozilla SVGFEDropShadowElement.stdDeviationX documentation> +getStdDeviationXUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEDropShadowElement -> m SVGAnimatedNumber+getStdDeviationXUnsafe self+ = liftDOM+ (((self ^. js "stdDeviationX") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement.stdDeviationX Mozilla SVGFEDropShadowElement.stdDeviationX documentation> getStdDeviationXUnchecked :: (MonadDOM m) => SVGFEDropShadowElement -> m SVGAnimatedNumber getStdDeviationXUnchecked self@@ -83,6 +134,15 @@ SVGFEDropShadowElement -> m (Maybe SVGAnimatedNumber) getStdDeviationY self = liftDOM ((self ^. js "stdDeviationY") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement.stdDeviationY Mozilla SVGFEDropShadowElement.stdDeviationY documentation> +getStdDeviationYUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEDropShadowElement -> m SVGAnimatedNumber+getStdDeviationYUnsafe self+ = liftDOM+ (((self ^. js "stdDeviationY") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement.stdDeviationY Mozilla SVGFEDropShadowElement.stdDeviationY documentation> getStdDeviationYUnchecked ::
@@ -1,15 +1,20 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFEGaussianBlurElement (setStdDeviation, pattern SVG_EDGEMODE_UNKNOWN, pattern SVG_EDGEMODE_DUPLICATE, pattern SVG_EDGEMODE_WRAP,- pattern SVG_EDGEMODE_NONE, getIn1, getIn1Unchecked,- getStdDeviationX, getStdDeviationXUnchecked, getStdDeviationY,- getStdDeviationYUnchecked, getEdgeMode, getEdgeModeUnchecked,- SVGFEGaussianBlurElement, castToSVGFEGaussianBlurElement,- gTypeSVGFEGaussianBlurElement)+ pattern SVG_EDGEMODE_NONE, getIn1, getIn1Unsafe, getIn1Unchecked,+ getStdDeviationX, getStdDeviationXUnsafe,+ getStdDeviationXUnchecked, getStdDeviationY,+ getStdDeviationYUnsafe, getStdDeviationYUnchecked, getEdgeMode,+ getEdgeModeUnsafe, getEdgeModeUnchecked,+ SVGFEGaussianBlurElement(..), gTypeSVGFEGaussianBlurElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -20,6 +25,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement.setStdDeviation Mozilla SVGFEGaussianBlurElement.setStdDeviation documentation> setStdDeviation ::@@ -41,6 +56,15 @@ getIn1 self = liftDOM ((self ^. js "in1") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement.in1 Mozilla SVGFEGaussianBlurElement.in1 documentation> +getIn1Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEGaussianBlurElement -> m SVGAnimatedString+getIn1Unsafe self+ = liftDOM+ (((self ^. js "in1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement.in1 Mozilla SVGFEGaussianBlurElement.in1 documentation> getIn1Unchecked :: (MonadDOM m) => SVGFEGaussianBlurElement -> m SVGAnimatedString getIn1Unchecked self@@ -54,6 +78,15 @@ = liftDOM ((self ^. js "stdDeviationX") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement.stdDeviationX Mozilla SVGFEGaussianBlurElement.stdDeviationX documentation> +getStdDeviationXUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEGaussianBlurElement -> m SVGAnimatedNumber+getStdDeviationXUnsafe self+ = liftDOM+ (((self ^. js "stdDeviationX") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement.stdDeviationX Mozilla SVGFEGaussianBlurElement.stdDeviationX documentation> getStdDeviationXUnchecked :: (MonadDOM m) => SVGFEGaussianBlurElement -> m SVGAnimatedNumber getStdDeviationXUnchecked self@@ -67,6 +100,15 @@ = liftDOM ((self ^. js "stdDeviationY") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement.stdDeviationY Mozilla SVGFEGaussianBlurElement.stdDeviationY documentation> +getStdDeviationYUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEGaussianBlurElement -> m SVGAnimatedNumber+getStdDeviationYUnsafe self+ = liftDOM+ (((self ^. js "stdDeviationY") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement.stdDeviationY Mozilla SVGFEGaussianBlurElement.stdDeviationY documentation> getStdDeviationYUnchecked :: (MonadDOM m) => SVGFEGaussianBlurElement -> m SVGAnimatedNumber getStdDeviationYUnchecked self@@ -77,6 +119,15 @@ (MonadDOM m) => SVGFEGaussianBlurElement -> m (Maybe SVGAnimatedEnumeration) getEdgeMode self = liftDOM ((self ^. js "edgeMode") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement.edgeMode Mozilla SVGFEGaussianBlurElement.edgeMode documentation> +getEdgeModeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEGaussianBlurElement -> m SVGAnimatedEnumeration+getEdgeModeUnsafe self+ = liftDOM+ (((self ^. js "edgeMode") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement.edgeMode Mozilla SVGFEGaussianBlurElement.edgeMode documentation> getEdgeModeUnchecked ::
@@ -1,10 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFEImageElement- (getPreserveAspectRatio, getPreserveAspectRatioUnchecked,- SVGFEImageElement, castToSVGFEImageElement, gTypeSVGFEImageElement)+ (getPreserveAspectRatio, getPreserveAspectRatioUnsafe,+ getPreserveAspectRatioUnchecked, SVGFEImageElement(..),+ gTypeSVGFEImageElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement.preserveAspectRatio Mozilla SVGFEImageElement.preserveAspectRatio documentation> getPreserveAspectRatio ::@@ -22,6 +37,15 @@ SVGFEImageElement -> m (Maybe SVGAnimatedPreserveAspectRatio) getPreserveAspectRatio self = liftDOM ((self ^. js "preserveAspectRatio") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement.preserveAspectRatio Mozilla SVGFEImageElement.preserveAspectRatio documentation> +getPreserveAspectRatioUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEImageElement -> m SVGAnimatedPreserveAspectRatio+getPreserveAspectRatioUnsafe self+ = liftDOM+ (((self ^. js "preserveAspectRatio") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement.preserveAspectRatio Mozilla SVGFEImageElement.preserveAspectRatio documentation> getPreserveAspectRatioUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFEMergeNodeElement- (getIn1, getIn1Unchecked, SVGFEMergeNodeElement,- castToSVGFEMergeNodeElement, gTypeSVGFEMergeNodeElement)+ (getIn1, getIn1Unsafe, getIn1Unchecked, SVGFEMergeNodeElement(..),+ gTypeSVGFEMergeNodeElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,12 +19,31 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeNodeElement.in1 Mozilla SVGFEMergeNodeElement.in1 documentation> getIn1 :: (MonadDOM m) => SVGFEMergeNodeElement -> m (Maybe SVGAnimatedString) getIn1 self = liftDOM ((self ^. js "in1") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeNodeElement.in1 Mozilla SVGFEMergeNodeElement.in1 documentation> +getIn1Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEMergeNodeElement -> m SVGAnimatedString+getIn1Unsafe self+ = liftDOM+ (((self ^. js "in1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeNodeElement.in1 Mozilla SVGFEMergeNodeElement.in1 documentation> getIn1Unchecked ::
@@ -1,14 +1,20 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFEMorphologyElement (setRadius, pattern SVG_MORPHOLOGY_OPERATOR_UNKNOWN, pattern SVG_MORPHOLOGY_OPERATOR_ERODE,- pattern SVG_MORPHOLOGY_OPERATOR_DILATE, getIn1, getIn1Unchecked,- getOperator, getOperatorUnchecked, getRadiusX, getRadiusXUnchecked,- getRadiusY, getRadiusYUnchecked, SVGFEMorphologyElement,- castToSVGFEMorphologyElement, gTypeSVGFEMorphologyElement)+ pattern SVG_MORPHOLOGY_OPERATOR_DILATE, getIn1, getIn1Unsafe,+ getIn1Unchecked, getOperator, getOperatorUnsafe,+ getOperatorUnchecked, getRadiusX, getRadiusXUnsafe,+ getRadiusXUnchecked, getRadiusY, getRadiusYUnsafe,+ getRadiusYUnchecked, SVGFEMorphologyElement(..),+ gTypeSVGFEMorphologyElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +25,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement.setRadius Mozilla SVGFEMorphologyElement.setRadius documentation> setRadius ::@@ -37,6 +53,15 @@ getIn1 self = liftDOM ((self ^. js "in1") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement.in1 Mozilla SVGFEMorphologyElement.in1 documentation> +getIn1Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEMorphologyElement -> m SVGAnimatedString+getIn1Unsafe self+ = liftDOM+ (((self ^. js "in1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement.in1 Mozilla SVGFEMorphologyElement.in1 documentation> getIn1Unchecked :: (MonadDOM m) => SVGFEMorphologyElement -> m SVGAnimatedString getIn1Unchecked self@@ -49,6 +74,15 @@ getOperator self = liftDOM ((self ^. js "operator") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement.operator Mozilla SVGFEMorphologyElement.operator documentation> +getOperatorUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEMorphologyElement -> m SVGAnimatedEnumeration+getOperatorUnsafe self+ = liftDOM+ (((self ^. js "operator") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement.operator Mozilla SVGFEMorphologyElement.operator documentation> getOperatorUnchecked :: (MonadDOM m) => SVGFEMorphologyElement -> m SVGAnimatedEnumeration getOperatorUnchecked self@@ -61,6 +95,15 @@ getRadiusX self = liftDOM ((self ^. js "radiusX") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement.radiusX Mozilla SVGFEMorphologyElement.radiusX documentation> +getRadiusXUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEMorphologyElement -> m SVGAnimatedNumber+getRadiusXUnsafe self+ = liftDOM+ (((self ^. js "radiusX") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement.radiusX Mozilla SVGFEMorphologyElement.radiusX documentation> getRadiusXUnchecked :: (MonadDOM m) => SVGFEMorphologyElement -> m SVGAnimatedNumber getRadiusXUnchecked self@@ -71,6 +114,15 @@ (MonadDOM m) => SVGFEMorphologyElement -> m (Maybe SVGAnimatedNumber) getRadiusY self = liftDOM ((self ^. js "radiusY") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement.radiusY Mozilla SVGFEMorphologyElement.radiusY documentation> +getRadiusYUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEMorphologyElement -> m SVGAnimatedNumber+getRadiusYUnsafe self+ = liftDOM+ (((self ^. js "radiusY") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement.radiusY Mozilla SVGFEMorphologyElement.radiusY documentation> getRadiusYUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFEOffsetElement- (getIn1, getIn1Unchecked, getDx, getDxUnchecked, getDy,- getDyUnchecked, SVGFEOffsetElement, castToSVGFEOffsetElement,- gTypeSVGFEOffsetElement)+ (getIn1, getIn1Unsafe, getIn1Unchecked, getDx, getDxUnsafe,+ getDxUnchecked, getDy, getDyUnsafe, getDyUnchecked,+ SVGFEOffsetElement(..), gTypeSVGFEOffsetElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement.in1 Mozilla SVGFEOffsetElement.in1 documentation> getIn1 ::@@ -23,6 +37,15 @@ getIn1 self = liftDOM ((self ^. js "in1") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement.in1 Mozilla SVGFEOffsetElement.in1 documentation> +getIn1Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEOffsetElement -> m SVGAnimatedString+getIn1Unsafe self+ = liftDOM+ (((self ^. js "in1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement.in1 Mozilla SVGFEOffsetElement.in1 documentation> getIn1Unchecked :: (MonadDOM m) => SVGFEOffsetElement -> m SVGAnimatedString getIn1Unchecked self@@ -34,6 +57,15 @@ getDx self = liftDOM ((self ^. js "dx") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement.dx Mozilla SVGFEOffsetElement.dx documentation> +getDxUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEOffsetElement -> m SVGAnimatedNumber+getDxUnsafe self+ = liftDOM+ (((self ^. js "dx") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement.dx Mozilla SVGFEOffsetElement.dx documentation> getDxUnchecked :: (MonadDOM m) => SVGFEOffsetElement -> m SVGAnimatedNumber getDxUnchecked self@@ -43,6 +75,15 @@ getDy :: (MonadDOM m) => SVGFEOffsetElement -> m (Maybe SVGAnimatedNumber) getDy self = liftDOM ((self ^. js "dy") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement.dy Mozilla SVGFEOffsetElement.dy documentation> +getDyUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEOffsetElement -> m SVGAnimatedNumber+getDyUnsafe self+ = liftDOM+ (((self ^. js "dy") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement.dy Mozilla SVGFEOffsetElement.dy documentation> getDyUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFEPointLightElement- (getX, getXUnchecked, getY, getYUnchecked, getZ, getZUnchecked,- SVGFEPointLightElement, castToSVGFEPointLightElement,+ (getX, getXUnsafe, getXUnchecked, getY, getYUnsafe, getYUnchecked,+ getZ, getZUnsafe, getZUnchecked, SVGFEPointLightElement(..), gTypeSVGFEPointLightElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEPointLightElement.x Mozilla SVGFEPointLightElement.x documentation> getX ::@@ -24,6 +38,15 @@ getX self = liftDOM ((self ^. js "x") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEPointLightElement.x Mozilla SVGFEPointLightElement.x documentation> +getXUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEPointLightElement -> m SVGAnimatedNumber+getXUnsafe self+ = liftDOM+ (((self ^. js "x") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEPointLightElement.x Mozilla SVGFEPointLightElement.x documentation> getXUnchecked :: (MonadDOM m) => SVGFEPointLightElement -> m SVGAnimatedNumber getXUnchecked self@@ -36,6 +59,15 @@ getY self = liftDOM ((self ^. js "y") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEPointLightElement.y Mozilla SVGFEPointLightElement.y documentation> +getYUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEPointLightElement -> m SVGAnimatedNumber+getYUnsafe self+ = liftDOM+ (((self ^. js "y") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEPointLightElement.y Mozilla SVGFEPointLightElement.y documentation> getYUnchecked :: (MonadDOM m) => SVGFEPointLightElement -> m SVGAnimatedNumber getYUnchecked self@@ -46,6 +78,15 @@ (MonadDOM m) => SVGFEPointLightElement -> m (Maybe SVGAnimatedNumber) getZ self = liftDOM ((self ^. js "z") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEPointLightElement.z Mozilla SVGFEPointLightElement.z documentation> +getZUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFEPointLightElement -> m SVGAnimatedNumber+getZUnsafe self+ = liftDOM+ (((self ^. js "z") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFEPointLightElement.z Mozilla SVGFEPointLightElement.z documentation> getZUnchecked ::
@@ -1,14 +1,19 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFESpecularLightingElement- (getIn1, getIn1Unchecked, getSurfaceScale,- getSurfaceScaleUnchecked, getSpecularConstant,+ (getIn1, getIn1Unsafe, getIn1Unchecked, getSurfaceScale,+ getSurfaceScaleUnsafe, getSurfaceScaleUnchecked,+ getSpecularConstant, getSpecularConstantUnsafe, getSpecularConstantUnchecked, getSpecularExponent,- getSpecularExponentUnchecked, SVGFESpecularLightingElement,- castToSVGFESpecularLightingElement,+ getSpecularExponentUnsafe, getSpecularExponentUnchecked,+ SVGFESpecularLightingElement(..), gTypeSVGFESpecularLightingElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +24,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement.in1 Mozilla SVGFESpecularLightingElement.in1 documentation> getIn1 ::@@ -27,6 +42,15 @@ getIn1 self = liftDOM ((self ^. js "in1") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement.in1 Mozilla SVGFESpecularLightingElement.in1 documentation> +getIn1Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFESpecularLightingElement -> m SVGAnimatedString+getIn1Unsafe self+ = liftDOM+ (((self ^. js "in1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement.in1 Mozilla SVGFESpecularLightingElement.in1 documentation> getIn1Unchecked :: (MonadDOM m) => SVGFESpecularLightingElement -> m SVGAnimatedString getIn1Unchecked self@@ -40,6 +64,15 @@ = liftDOM ((self ^. js "surfaceScale") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement.surfaceScale Mozilla SVGFESpecularLightingElement.surfaceScale documentation> +getSurfaceScaleUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFESpecularLightingElement -> m SVGAnimatedNumber+getSurfaceScaleUnsafe self+ = liftDOM+ (((self ^. js "surfaceScale") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement.surfaceScale Mozilla SVGFESpecularLightingElement.surfaceScale documentation> getSurfaceScaleUnchecked :: (MonadDOM m) => SVGFESpecularLightingElement -> m SVGAnimatedNumber getSurfaceScaleUnchecked self@@ -53,6 +86,15 @@ = liftDOM ((self ^. js "specularConstant") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement.specularConstant Mozilla SVGFESpecularLightingElement.specularConstant documentation> +getSpecularConstantUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFESpecularLightingElement -> m SVGAnimatedNumber+getSpecularConstantUnsafe self+ = liftDOM+ (((self ^. js "specularConstant") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement.specularConstant Mozilla SVGFESpecularLightingElement.specularConstant documentation> getSpecularConstantUnchecked :: (MonadDOM m) => SVGFESpecularLightingElement -> m SVGAnimatedNumber getSpecularConstantUnchecked self@@ -64,6 +106,15 @@ SVGFESpecularLightingElement -> m (Maybe SVGAnimatedNumber) getSpecularExponent self = liftDOM ((self ^. js "specularExponent") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement.specularExponent Mozilla SVGFESpecularLightingElement.specularExponent documentation> +getSpecularExponentUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFESpecularLightingElement -> m SVGAnimatedNumber+getSpecularExponentUnsafe self+ = liftDOM+ (((self ^. js "specularExponent") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement.specularExponent Mozilla SVGFESpecularLightingElement.specularExponent documentation> getSpecularExponentUnchecked ::
@@ -1,15 +1,21 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFESpotLightElement- (getX, getXUnchecked, getY, getYUnchecked, getZ, getZUnchecked,- getPointsAtX, getPointsAtXUnchecked, getPointsAtY,- getPointsAtYUnchecked, getPointsAtZ, getPointsAtZUnchecked,- getSpecularExponent, getSpecularExponentUnchecked,- getLimitingConeAngle, getLimitingConeAngleUnchecked,- SVGFESpotLightElement, castToSVGFESpotLightElement,+ (getX, getXUnsafe, getXUnchecked, getY, getYUnsafe, getYUnchecked,+ getZ, getZUnsafe, getZUnchecked, getPointsAtX, getPointsAtXUnsafe,+ getPointsAtXUnchecked, getPointsAtY, getPointsAtYUnsafe,+ getPointsAtYUnchecked, getPointsAtZ, getPointsAtZUnsafe,+ getPointsAtZUnchecked, getSpecularExponent,+ getSpecularExponentUnsafe, getSpecularExponentUnchecked,+ getLimitingConeAngle, getLimitingConeAngleUnsafe,+ getLimitingConeAngleUnchecked, SVGFESpotLightElement(..), gTypeSVGFESpotLightElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -20,6 +26,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement.x Mozilla SVGFESpotLightElement.x documentation> getX ::@@ -28,6 +44,15 @@ getX self = liftDOM ((self ^. js "x") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement.x Mozilla SVGFESpotLightElement.x documentation> +getXUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFESpotLightElement -> m SVGAnimatedNumber+getXUnsafe self+ = liftDOM+ (((self ^. js "x") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement.x Mozilla SVGFESpotLightElement.x documentation> getXUnchecked :: (MonadDOM m) => SVGFESpotLightElement -> m SVGAnimatedNumber getXUnchecked self@@ -40,6 +65,15 @@ getY self = liftDOM ((self ^. js "y") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement.y Mozilla SVGFESpotLightElement.y documentation> +getYUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFESpotLightElement -> m SVGAnimatedNumber+getYUnsafe self+ = liftDOM+ (((self ^. js "y") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement.y Mozilla SVGFESpotLightElement.y documentation> getYUnchecked :: (MonadDOM m) => SVGFESpotLightElement -> m SVGAnimatedNumber getYUnchecked self@@ -52,6 +86,15 @@ getZ self = liftDOM ((self ^. js "z") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement.z Mozilla SVGFESpotLightElement.z documentation> +getZUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFESpotLightElement -> m SVGAnimatedNumber+getZUnsafe self+ = liftDOM+ (((self ^. js "z") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement.z Mozilla SVGFESpotLightElement.z documentation> getZUnchecked :: (MonadDOM m) => SVGFESpotLightElement -> m SVGAnimatedNumber getZUnchecked self@@ -65,6 +108,15 @@ = liftDOM ((self ^. js "pointsAtX") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement.pointsAtX Mozilla SVGFESpotLightElement.pointsAtX documentation> +getPointsAtXUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFESpotLightElement -> m SVGAnimatedNumber+getPointsAtXUnsafe self+ = liftDOM+ (((self ^. js "pointsAtX") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement.pointsAtX Mozilla SVGFESpotLightElement.pointsAtX documentation> getPointsAtXUnchecked :: (MonadDOM m) => SVGFESpotLightElement -> m SVGAnimatedNumber getPointsAtXUnchecked self@@ -78,6 +130,15 @@ = liftDOM ((self ^. js "pointsAtY") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement.pointsAtY Mozilla SVGFESpotLightElement.pointsAtY documentation> +getPointsAtYUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFESpotLightElement -> m SVGAnimatedNumber+getPointsAtYUnsafe self+ = liftDOM+ (((self ^. js "pointsAtY") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement.pointsAtY Mozilla SVGFESpotLightElement.pointsAtY documentation> getPointsAtYUnchecked :: (MonadDOM m) => SVGFESpotLightElement -> m SVGAnimatedNumber getPointsAtYUnchecked self@@ -91,6 +152,15 @@ = liftDOM ((self ^. js "pointsAtZ") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement.pointsAtZ Mozilla SVGFESpotLightElement.pointsAtZ documentation> +getPointsAtZUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFESpotLightElement -> m SVGAnimatedNumber+getPointsAtZUnsafe self+ = liftDOM+ (((self ^. js "pointsAtZ") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement.pointsAtZ Mozilla SVGFESpotLightElement.pointsAtZ documentation> getPointsAtZUnchecked :: (MonadDOM m) => SVGFESpotLightElement -> m SVGAnimatedNumber getPointsAtZUnchecked self@@ -104,6 +174,15 @@ = liftDOM ((self ^. js "specularExponent") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement.specularExponent Mozilla SVGFESpotLightElement.specularExponent documentation> +getSpecularExponentUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFESpotLightElement -> m SVGAnimatedNumber+getSpecularExponentUnsafe self+ = liftDOM+ (((self ^. js "specularExponent") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement.specularExponent Mozilla SVGFESpotLightElement.specularExponent documentation> getSpecularExponentUnchecked :: (MonadDOM m) => SVGFESpotLightElement -> m SVGAnimatedNumber getSpecularExponentUnchecked self@@ -115,6 +194,15 @@ SVGFESpotLightElement -> m (Maybe SVGAnimatedNumber) getLimitingConeAngle self = liftDOM ((self ^. js "limitingConeAngle") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement.limitingConeAngle Mozilla SVGFESpotLightElement.limitingConeAngle documentation> +getLimitingConeAngleUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFESpotLightElement -> m SVGAnimatedNumber+getLimitingConeAngleUnsafe self+ = liftDOM+ (((self ^. js "limitingConeAngle") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement.limitingConeAngle Mozilla SVGFESpotLightElement.limitingConeAngle documentation> getLimitingConeAngleUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFETileElement- (getIn1, getIn1Unchecked, SVGFETileElement, castToSVGFETileElement,+ (getIn1, getIn1Unsafe, getIn1Unchecked, SVGFETileElement(..), gTypeSVGFETileElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,11 +19,30 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement.in1 Mozilla SVGFETileElement.in1 documentation> getIn1 :: (MonadDOM m) => SVGFETileElement -> m (Maybe SVGAnimatedString) getIn1 self = liftDOM ((self ^. js "in1") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement.in1 Mozilla SVGFETileElement.in1 documentation> +getIn1Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFETileElement -> m SVGAnimatedString+getIn1Unsafe self+ = liftDOM+ (((self ^. js "in1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement.in1 Mozilla SVGFETileElement.in1 documentation> getIn1Unchecked ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFETurbulenceElement (pattern SVG_TURBULENCE_TYPE_UNKNOWN,@@ -6,13 +9,16 @@ pattern SVG_TURBULENCE_TYPE_TURBULENCE, pattern SVG_STITCHTYPE_UNKNOWN, pattern SVG_STITCHTYPE_STITCH, pattern SVG_STITCHTYPE_NOSTITCH, getBaseFrequencyX,- getBaseFrequencyXUnchecked, getBaseFrequencyY,- getBaseFrequencyYUnchecked, getNumOctaves, getNumOctavesUnchecked,- getSeed, getSeedUnchecked, getStitchTiles, getStitchTilesUnchecked,- getType, getTypeUnchecked, SVGFETurbulenceElement,- castToSVGFETurbulenceElement, gTypeSVGFETurbulenceElement)+ getBaseFrequencyXUnsafe, getBaseFrequencyXUnchecked,+ getBaseFrequencyY, getBaseFrequencyYUnsafe,+ getBaseFrequencyYUnchecked, getNumOctaves, getNumOctavesUnsafe,+ getNumOctavesUnchecked, getSeed, getSeedUnsafe, getSeedUnchecked,+ getStitchTiles, getStitchTilesUnsafe, getStitchTilesUnchecked,+ getType, getTypeUnsafe, getTypeUnchecked,+ SVGFETurbulenceElement(..), gTypeSVGFETurbulenceElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -23,6 +29,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern SVG_TURBULENCE_TYPE_UNKNOWN = 0 pattern SVG_TURBULENCE_TYPE_FRACTALNOISE = 1 pattern SVG_TURBULENCE_TYPE_TURBULENCE = 2@@ -38,6 +54,15 @@ = liftDOM ((self ^. js "baseFrequencyX") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement.baseFrequencyX Mozilla SVGFETurbulenceElement.baseFrequencyX documentation> +getBaseFrequencyXUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFETurbulenceElement -> m SVGAnimatedNumber+getBaseFrequencyXUnsafe self+ = liftDOM+ (((self ^. js "baseFrequencyX") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement.baseFrequencyX Mozilla SVGFETurbulenceElement.baseFrequencyX documentation> getBaseFrequencyXUnchecked :: (MonadDOM m) => SVGFETurbulenceElement -> m SVGAnimatedNumber getBaseFrequencyXUnchecked self@@ -51,6 +76,15 @@ = liftDOM ((self ^. js "baseFrequencyY") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement.baseFrequencyY Mozilla SVGFETurbulenceElement.baseFrequencyY documentation> +getBaseFrequencyYUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFETurbulenceElement -> m SVGAnimatedNumber+getBaseFrequencyYUnsafe self+ = liftDOM+ (((self ^. js "baseFrequencyY") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement.baseFrequencyY Mozilla SVGFETurbulenceElement.baseFrequencyY documentation> getBaseFrequencyYUnchecked :: (MonadDOM m) => SVGFETurbulenceElement -> m SVGAnimatedNumber getBaseFrequencyYUnchecked self@@ -64,6 +98,15 @@ = liftDOM ((self ^. js "numOctaves") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement.numOctaves Mozilla SVGFETurbulenceElement.numOctaves documentation> +getNumOctavesUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFETurbulenceElement -> m SVGAnimatedInteger+getNumOctavesUnsafe self+ = liftDOM+ (((self ^. js "numOctaves") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement.numOctaves Mozilla SVGFETurbulenceElement.numOctaves documentation> getNumOctavesUnchecked :: (MonadDOM m) => SVGFETurbulenceElement -> m SVGAnimatedInteger getNumOctavesUnchecked self@@ -76,6 +119,15 @@ getSeed self = liftDOM ((self ^. js "seed") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement.seed Mozilla SVGFETurbulenceElement.seed documentation> +getSeedUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFETurbulenceElement -> m SVGAnimatedNumber+getSeedUnsafe self+ = liftDOM+ (((self ^. js "seed") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement.seed Mozilla SVGFETurbulenceElement.seed documentation> getSeedUnchecked :: (MonadDOM m) => SVGFETurbulenceElement -> m SVGAnimatedNumber getSeedUnchecked self@@ -89,6 +141,15 @@ = liftDOM ((self ^. js "stitchTiles") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement.stitchTiles Mozilla SVGFETurbulenceElement.stitchTiles documentation> +getStitchTilesUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFETurbulenceElement -> m SVGAnimatedEnumeration+getStitchTilesUnsafe self+ = liftDOM+ (((self ^. js "stitchTiles") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement.stitchTiles Mozilla SVGFETurbulenceElement.stitchTiles documentation> getStitchTilesUnchecked :: (MonadDOM m) => SVGFETurbulenceElement -> m SVGAnimatedEnumeration getStitchTilesUnchecked self@@ -99,6 +160,15 @@ (MonadDOM m) => SVGFETurbulenceElement -> m (Maybe SVGAnimatedEnumeration) getType self = liftDOM ((self ^. js "type") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement.type Mozilla SVGFETurbulenceElement.type documentation> +getTypeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFETurbulenceElement -> m SVGAnimatedEnumeration+getTypeUnsafe self+ = liftDOM+ (((self ^. js "type") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement.type Mozilla SVGFETurbulenceElement.type documentation> getTypeUnchecked ::
@@ -1,14 +1,21 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFilterElement- (setFilterRes, getFilterUnits, getFilterUnitsUnchecked,- getPrimitiveUnits, getPrimitiveUnitsUnchecked, getX, getXUnchecked,- getY, getYUnchecked, getWidth, getWidthUnchecked, getHeight,- getHeightUnchecked, getFilterResX, getFilterResXUnchecked,- getFilterResY, getFilterResYUnchecked, SVGFilterElement,- castToSVGFilterElement, gTypeSVGFilterElement)+ (setFilterRes, getFilterUnits, getFilterUnitsUnsafe,+ getFilterUnitsUnchecked, getPrimitiveUnits,+ getPrimitiveUnitsUnsafe, getPrimitiveUnitsUnchecked, getX,+ getXUnsafe, getXUnchecked, getY, getYUnsafe, getYUnchecked,+ getWidth, getWidthUnsafe, getWidthUnchecked, getHeight,+ getHeightUnsafe, getHeightUnchecked, getFilterResX,+ getFilterResXUnsafe, getFilterResXUnchecked, getFilterResY,+ getFilterResYUnsafe, getFilterResYUnchecked, SVGFilterElement(..),+ gTypeSVGFilterElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +26,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement.setFilterRes Mozilla SVGFilterElement.setFilterRes documentation> setFilterRes ::@@ -37,6 +54,15 @@ = liftDOM ((self ^. js "filterUnits") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement.filterUnits Mozilla SVGFilterElement.filterUnits documentation> +getFilterUnitsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFilterElement -> m SVGAnimatedEnumeration+getFilterUnitsUnsafe self+ = liftDOM+ (((self ^. js "filterUnits") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement.filterUnits Mozilla SVGFilterElement.filterUnits documentation> getFilterUnitsUnchecked :: (MonadDOM m) => SVGFilterElement -> m SVGAnimatedEnumeration getFilterUnitsUnchecked self@@ -50,6 +76,15 @@ = liftDOM ((self ^. js "primitiveUnits") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement.primitiveUnits Mozilla SVGFilterElement.primitiveUnits documentation> +getPrimitiveUnitsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFilterElement -> m SVGAnimatedEnumeration+getPrimitiveUnitsUnsafe self+ = liftDOM+ (((self ^. js "primitiveUnits") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement.primitiveUnits Mozilla SVGFilterElement.primitiveUnits documentation> getPrimitiveUnitsUnchecked :: (MonadDOM m) => SVGFilterElement -> m SVGAnimatedEnumeration getPrimitiveUnitsUnchecked self@@ -61,6 +96,15 @@ getX self = liftDOM ((self ^. js "x") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement.x Mozilla SVGFilterElement.x documentation> +getXUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFilterElement -> m SVGAnimatedLength+getXUnsafe self+ = liftDOM+ (((self ^. js "x") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement.x Mozilla SVGFilterElement.x documentation> getXUnchecked :: (MonadDOM m) => SVGFilterElement -> m SVGAnimatedLength getXUnchecked self@@ -72,6 +116,15 @@ getY self = liftDOM ((self ^. js "y") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement.y Mozilla SVGFilterElement.y documentation> +getYUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFilterElement -> m SVGAnimatedLength+getYUnsafe self+ = liftDOM+ (((self ^. js "y") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement.y Mozilla SVGFilterElement.y documentation> getYUnchecked :: (MonadDOM m) => SVGFilterElement -> m SVGAnimatedLength getYUnchecked self@@ -83,6 +136,15 @@ getWidth self = liftDOM ((self ^. js "width") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement.width Mozilla SVGFilterElement.width documentation> +getWidthUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFilterElement -> m SVGAnimatedLength+getWidthUnsafe self+ = liftDOM+ (((self ^. js "width") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement.width Mozilla SVGFilterElement.width documentation> getWidthUnchecked :: (MonadDOM m) => SVGFilterElement -> m SVGAnimatedLength getWidthUnchecked self@@ -94,6 +156,15 @@ getHeight self = liftDOM ((self ^. js "height") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement.height Mozilla SVGFilterElement.height documentation> +getHeightUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFilterElement -> m SVGAnimatedLength+getHeightUnsafe self+ = liftDOM+ (((self ^. js "height") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement.height Mozilla SVGFilterElement.height documentation> getHeightUnchecked :: (MonadDOM m) => SVGFilterElement -> m SVGAnimatedLength getHeightUnchecked self@@ -106,6 +177,15 @@ = liftDOM ((self ^. js "filterResX") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement.filterResX Mozilla SVGFilterElement.filterResX documentation> +getFilterResXUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFilterElement -> m SVGAnimatedInteger+getFilterResXUnsafe self+ = liftDOM+ (((self ^. js "filterResX") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement.filterResX Mozilla SVGFilterElement.filterResX documentation> getFilterResXUnchecked :: (MonadDOM m) => SVGFilterElement -> m SVGAnimatedInteger getFilterResXUnchecked self@@ -116,6 +196,15 @@ (MonadDOM m) => SVGFilterElement -> m (Maybe SVGAnimatedInteger) getFilterResY self = liftDOM ((self ^. js "filterResY") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement.filterResY Mozilla SVGFilterElement.filterResY documentation> +getFilterResYUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFilterElement -> m SVGAnimatedInteger+getFilterResYUnsafe self+ = liftDOM+ (((self ^. js "filterResY") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement.filterResY Mozilla SVGFilterElement.filterResY documentation> getFilterResYUnchecked ::
@@ -1,13 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFilterPrimitiveStandardAttributes- (getX, getXUnchecked, getY, getYUnchecked, getWidth,- getWidthUnchecked, getHeight, getHeightUnchecked, getResult,- getResultUnchecked, SVGFilterPrimitiveStandardAttributes,- castToSVGFilterPrimitiveStandardAttributes,+ (getX, getXUnsafe, getXUnchecked, getY, getYUnsafe, getYUnchecked,+ getWidth, getWidthUnsafe, getWidthUnchecked, getHeight,+ getHeightUnsafe, getHeightUnchecked, getResult, getResultUnsafe,+ getResultUnchecked, SVGFilterPrimitiveStandardAttributes(..), gTypeSVGFilterPrimitiveStandardAttributes) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterPrimitiveStandardAttributes.x Mozilla SVGFilterPrimitiveStandardAttributes.x documentation> getX ::@@ -26,6 +40,15 @@ getX self = liftDOM ((self ^. js "x") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterPrimitiveStandardAttributes.x Mozilla SVGFilterPrimitiveStandardAttributes.x documentation> +getXUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFilterPrimitiveStandardAttributes -> m SVGAnimatedLength+getXUnsafe self+ = liftDOM+ (((self ^. js "x") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterPrimitiveStandardAttributes.x Mozilla SVGFilterPrimitiveStandardAttributes.x documentation> getXUnchecked :: (MonadDOM m) => SVGFilterPrimitiveStandardAttributes -> m SVGAnimatedLength@@ -39,6 +62,15 @@ getY self = liftDOM ((self ^. js "y") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterPrimitiveStandardAttributes.y Mozilla SVGFilterPrimitiveStandardAttributes.y documentation> +getYUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFilterPrimitiveStandardAttributes -> m SVGAnimatedLength+getYUnsafe self+ = liftDOM+ (((self ^. js "y") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterPrimitiveStandardAttributes.y Mozilla SVGFilterPrimitiveStandardAttributes.y documentation> getYUnchecked :: (MonadDOM m) => SVGFilterPrimitiveStandardAttributes -> m SVGAnimatedLength@@ -52,6 +84,15 @@ getWidth self = liftDOM ((self ^. js "width") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterPrimitiveStandardAttributes.width Mozilla SVGFilterPrimitiveStandardAttributes.width documentation> +getWidthUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFilterPrimitiveStandardAttributes -> m SVGAnimatedLength+getWidthUnsafe self+ = liftDOM+ (((self ^. js "width") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterPrimitiveStandardAttributes.width Mozilla SVGFilterPrimitiveStandardAttributes.width documentation> getWidthUnchecked :: (MonadDOM m) => SVGFilterPrimitiveStandardAttributes -> m SVGAnimatedLength@@ -65,6 +106,15 @@ getHeight self = liftDOM ((self ^. js "height") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterPrimitiveStandardAttributes.height Mozilla SVGFilterPrimitiveStandardAttributes.height documentation> +getHeightUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFilterPrimitiveStandardAttributes -> m SVGAnimatedLength+getHeightUnsafe self+ = liftDOM+ (((self ^. js "height") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterPrimitiveStandardAttributes.height Mozilla SVGFilterPrimitiveStandardAttributes.height documentation> getHeightUnchecked :: (MonadDOM m) => SVGFilterPrimitiveStandardAttributes -> m SVGAnimatedLength@@ -76,6 +126,15 @@ (MonadDOM m) => SVGFilterPrimitiveStandardAttributes -> m (Maybe SVGAnimatedString) getResult self = liftDOM ((self ^. js "result") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterPrimitiveStandardAttributes.result Mozilla SVGFilterPrimitiveStandardAttributes.result documentation> +getResultUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFilterPrimitiveStandardAttributes -> m SVGAnimatedString+getResultUnsafe self+ = liftDOM+ (((self ^. js "result") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterPrimitiveStandardAttributes.result Mozilla SVGFilterPrimitiveStandardAttributes.result documentation> getResultUnchecked ::
@@ -1,11 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGFitToViewBox- (getViewBox, getViewBoxUnchecked, getPreserveAspectRatio,- getPreserveAspectRatioUnchecked, SVGFitToViewBox,- castToSVGFitToViewBox, gTypeSVGFitToViewBox)+ (getViewBox, getViewBoxUnsafe, getViewBoxUnchecked,+ getPreserveAspectRatio, getPreserveAspectRatioUnsafe,+ getPreserveAspectRatioUnchecked, SVGFitToViewBox(..),+ gTypeSVGFitToViewBox) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFitToViewBox.viewBox Mozilla SVGFitToViewBox.viewBox documentation> getViewBox ::@@ -23,6 +38,14 @@ getViewBox self = liftDOM ((self ^. js "viewBox") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFitToViewBox.viewBox Mozilla SVGFitToViewBox.viewBox documentation> +getViewBoxUnsafe ::+ (MonadDOM m, HasCallStack) => SVGFitToViewBox -> m SVGAnimatedRect+getViewBoxUnsafe self+ = liftDOM+ (((self ^. js "viewBox") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFitToViewBox.viewBox Mozilla SVGFitToViewBox.viewBox documentation> getViewBoxUnchecked :: (MonadDOM m) => SVGFitToViewBox -> m SVGAnimatedRect getViewBoxUnchecked self@@ -34,6 +57,15 @@ SVGFitToViewBox -> m (Maybe SVGAnimatedPreserveAspectRatio) getPreserveAspectRatio self = liftDOM ((self ^. js "preserveAspectRatio") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFitToViewBox.preserveAspectRatio Mozilla SVGFitToViewBox.preserveAspectRatio documentation> +getPreserveAspectRatioUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGFitToViewBox -> m SVGAnimatedPreserveAspectRatio+getPreserveAspectRatioUnsafe self+ = liftDOM+ (((self ^. js "preserveAspectRatio") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGFitToViewBox.preserveAspectRatio Mozilla SVGFitToViewBox.preserveAspectRatio documentation> getPreserveAspectRatioUnchecked ::
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGForeignObjectElement- (getX, getXUnchecked, getY, getYUnchecked, getWidth,- getWidthUnchecked, getHeight, getHeightUnchecked,- SVGForeignObjectElement, castToSVGForeignObjectElement,+ (getX, getXUnsafe, getXUnchecked, getY, getYUnsafe, getYUnchecked,+ getWidth, getWidthUnsafe, getWidthUnchecked, getHeight,+ getHeightUnsafe, getHeightUnchecked, SVGForeignObjectElement(..), gTypeSVGForeignObjectElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement.x Mozilla SVGForeignObjectElement.x documentation> getX ::@@ -25,6 +39,15 @@ getX self = liftDOM ((self ^. js "x") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement.x Mozilla SVGForeignObjectElement.x documentation> +getXUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGForeignObjectElement -> m SVGAnimatedLength+getXUnsafe self+ = liftDOM+ (((self ^. js "x") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement.x Mozilla SVGForeignObjectElement.x documentation> getXUnchecked :: (MonadDOM m) => SVGForeignObjectElement -> m SVGAnimatedLength getXUnchecked self@@ -37,6 +60,15 @@ getY self = liftDOM ((self ^. js "y") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement.y Mozilla SVGForeignObjectElement.y documentation> +getYUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGForeignObjectElement -> m SVGAnimatedLength+getYUnsafe self+ = liftDOM+ (((self ^. js "y") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement.y Mozilla SVGForeignObjectElement.y documentation> getYUnchecked :: (MonadDOM m) => SVGForeignObjectElement -> m SVGAnimatedLength getYUnchecked self@@ -49,6 +81,15 @@ getWidth self = liftDOM ((self ^. js "width") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement.width Mozilla SVGForeignObjectElement.width documentation> +getWidthUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGForeignObjectElement -> m SVGAnimatedLength+getWidthUnsafe self+ = liftDOM+ (((self ^. js "width") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement.width Mozilla SVGForeignObjectElement.width documentation> getWidthUnchecked :: (MonadDOM m) => SVGForeignObjectElement -> m SVGAnimatedLength getWidthUnchecked self@@ -59,6 +100,15 @@ (MonadDOM m) => SVGForeignObjectElement -> m (Maybe SVGAnimatedLength) getHeight self = liftDOM ((self ^. js "height") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement.height Mozilla SVGForeignObjectElement.height documentation> +getHeightUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGForeignObjectElement -> m SVGAnimatedLength+getHeightUnsafe self+ = liftDOM+ (((self ^. js "height") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement.height Mozilla SVGForeignObjectElement.height documentation> getHeightUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGGlyphRefElement (setGlyphRef, getGlyphRef, setFormat, getFormat, setX, getX, setY,- getY, setDx, getDx, setDy, getDy, SVGGlyphRefElement,- castToSVGGlyphRefElement, gTypeSVGGlyphRefElement)+ getY, setDx, getDx, setDy, getDy, SVGGlyphRefElement(..),+ gTypeSVGGlyphRefElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGlyphRefElement.glyphRef Mozilla SVGGlyphRefElement.glyphRef documentation> setGlyphRef ::
@@ -1,15 +1,20 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGGradientElement (pattern SVG_SPREADMETHOD_UNKNOWN, pattern SVG_SPREADMETHOD_PAD, pattern SVG_SPREADMETHOD_REFLECT, pattern SVG_SPREADMETHOD_REPEAT,- getGradientUnits, getGradientUnitsUnchecked, getGradientTransform,- getGradientTransformUnchecked, getSpreadMethod,- getSpreadMethodUnchecked, SVGGradientElement,- castToSVGGradientElement, gTypeSVGGradientElement,+ getGradientUnits, getGradientUnitsUnsafe,+ getGradientUnitsUnchecked, getGradientTransform,+ getGradientTransformUnsafe, getGradientTransformUnchecked,+ getSpreadMethod, getSpreadMethodUnsafe, getSpreadMethodUnchecked,+ SVGGradientElement(..), gTypeSVGGradientElement, IsSVGGradientElement, toSVGGradientElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -20,6 +25,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern SVG_SPREADMETHOD_UNKNOWN = 0 pattern SVG_SPREADMETHOD_PAD = 1 pattern SVG_SPREADMETHOD_REFLECT = 2@@ -34,6 +49,16 @@ (((toSVGGradientElement self) ^. js "gradientUnits") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement.gradientUnits Mozilla SVGGradientElement.gradientUnits documentation> +getGradientUnitsUnsafe ::+ (MonadDOM m, IsSVGGradientElement self, HasCallStack) =>+ self -> m SVGAnimatedEnumeration+getGradientUnitsUnsafe self+ = liftDOM+ ((((toSVGGradientElement self) ^. js "gradientUnits") >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement.gradientUnits Mozilla SVGGradientElement.gradientUnits documentation> getGradientUnitsUnchecked :: (MonadDOM m, IsSVGGradientElement self) => self -> m SVGAnimatedEnumeration@@ -52,6 +77,16 @@ fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement.gradientTransform Mozilla SVGGradientElement.gradientTransform documentation> +getGradientTransformUnsafe ::+ (MonadDOM m, IsSVGGradientElement self, HasCallStack) =>+ self -> m SVGAnimatedTransformList+getGradientTransformUnsafe self+ = liftDOM+ ((((toSVGGradientElement self) ^. js "gradientTransform") >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement.gradientTransform Mozilla SVGGradientElement.gradientTransform documentation> getGradientTransformUnchecked :: (MonadDOM m, IsSVGGradientElement self) => self -> m SVGAnimatedTransformList@@ -67,6 +102,15 @@ getSpreadMethod self = liftDOM (((toSVGGradientElement self) ^. js "spreadMethod") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement.spreadMethod Mozilla SVGGradientElement.spreadMethod documentation> +getSpreadMethodUnsafe ::+ (MonadDOM m, IsSVGGradientElement self, HasCallStack) =>+ self -> m SVGAnimatedEnumeration+getSpreadMethodUnsafe self+ = liftDOM+ ((((toSVGGradientElement self) ^. js "spreadMethod") >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement.spreadMethod Mozilla SVGGradientElement.spreadMethod documentation> getSpreadMethodUnchecked ::
@@ -1,17 +1,24 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGGraphicsElement- (getBBox, getBBox_, getBBoxUnchecked, getCTM, getCTM_,- getCTMUnchecked, getScreenCTM, getScreenCTM_,- getScreenCTMUnchecked, getTransformToElement,- getTransformToElement_, getTransformToElementUnchecked,- getTransform, getTransformUnchecked, getNearestViewportElement,+ (getBBox, getBBox_, getBBoxUnsafe, getBBoxUnchecked, getCTM,+ getCTM_, getCTMUnsafe, getCTMUnchecked, getScreenCTM,+ getScreenCTM_, getScreenCTMUnsafe, getScreenCTMUnchecked,+ getTransformToElement, getTransformToElement_,+ getTransformToElementUnsafe, getTransformToElementUnchecked,+ getTransform, getTransformUnsafe, getTransformUnchecked,+ getNearestViewportElement, getNearestViewportElementUnsafe, getNearestViewportElementUnchecked, getFarthestViewportElement,- getFarthestViewportElementUnchecked, SVGGraphicsElement,- castToSVGGraphicsElement, gTypeSVGGraphicsElement,- IsSVGGraphicsElement, toSVGGraphicsElement)+ getFarthestViewportElementUnsafe,+ getFarthestViewportElementUnchecked, SVGGraphicsElement(..),+ gTypeSVGGraphicsElement, IsSVGGraphicsElement,+ toSVGGraphicsElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -22,6 +29,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement.getBBox Mozilla SVGGraphicsElement.getBBox documentation> getBBox ::@@ -37,6 +54,15 @@ = liftDOM (void ((toSVGGraphicsElement self) ^. jsf "getBBox" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement.getBBox Mozilla SVGGraphicsElement.getBBox documentation> +getBBoxUnsafe ::+ (MonadDOM m, IsSVGGraphicsElement self, HasCallStack) =>+ self -> m SVGRect+getBBoxUnsafe self+ = liftDOM+ ((((toSVGGraphicsElement self) ^. jsf "getBBox" ()) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement.getBBox Mozilla SVGGraphicsElement.getBBox documentation> getBBoxUnchecked :: (MonadDOM m, IsSVGGraphicsElement self) => self -> m SVGRect getBBoxUnchecked self@@ -58,6 +84,15 @@ = liftDOM (void ((toSVGGraphicsElement self) ^. jsf "getCTM" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement.getCTM Mozilla SVGGraphicsElement.getCTM documentation> +getCTMUnsafe ::+ (MonadDOM m, IsSVGGraphicsElement self, HasCallStack) =>+ self -> m SVGMatrix+getCTMUnsafe self+ = liftDOM+ ((((toSVGGraphicsElement self) ^. jsf "getCTM" ()) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement.getCTM Mozilla SVGGraphicsElement.getCTM documentation> getCTMUnchecked :: (MonadDOM m, IsSVGGraphicsElement self) => self -> m SVGMatrix getCTMUnchecked self@@ -82,6 +117,16 @@ (void ((toSVGGraphicsElement self) ^. jsf "getScreenCTM" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement.getScreenCTM Mozilla SVGGraphicsElement.getScreenCTM documentation> +getScreenCTMUnsafe ::+ (MonadDOM m, IsSVGGraphicsElement self, HasCallStack) =>+ self -> m SVGMatrix+getScreenCTMUnsafe self+ = liftDOM+ ((((toSVGGraphicsElement self) ^. jsf "getScreenCTM" ()) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement.getScreenCTM Mozilla SVGGraphicsElement.getScreenCTM documentation> getScreenCTMUnchecked :: (MonadDOM m, IsSVGGraphicsElement self) => self -> m SVGMatrix getScreenCTMUnchecked self@@ -110,6 +155,18 @@ [toJSVal element])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement.getTransformToElement Mozilla SVGGraphicsElement.getTransformToElement documentation> +getTransformToElementUnsafe ::+ (MonadDOM m, IsSVGGraphicsElement self, IsSVGElement element,+ HasCallStack) =>+ self -> Maybe element -> m SVGMatrix+getTransformToElementUnsafe self element+ = liftDOM+ ((((toSVGGraphicsElement self) ^. jsf "getTransformToElement"+ [toJSVal element])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement.getTransformToElement Mozilla SVGGraphicsElement.getTransformToElement documentation> getTransformToElementUnchecked :: (MonadDOM m, IsSVGGraphicsElement self, IsSVGElement element) => self -> Maybe element -> m SVGMatrix@@ -128,6 +185,15 @@ (((toSVGGraphicsElement self) ^. js "transform") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement.transform Mozilla SVGGraphicsElement.transform documentation> +getTransformUnsafe ::+ (MonadDOM m, IsSVGGraphicsElement self, HasCallStack) =>+ self -> m SVGAnimatedTransformList+getTransformUnsafe self+ = liftDOM+ ((((toSVGGraphicsElement self) ^. js "transform") >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement.transform Mozilla SVGGraphicsElement.transform documentation> getTransformUnchecked :: (MonadDOM m, IsSVGGraphicsElement self) => self -> m SVGAnimatedTransformList@@ -146,6 +212,16 @@ fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement.nearestViewportElement Mozilla SVGGraphicsElement.nearestViewportElement documentation> +getNearestViewportElementUnsafe ::+ (MonadDOM m, IsSVGGraphicsElement self, HasCallStack) =>+ self -> m SVGElement+getNearestViewportElementUnsafe self+ = liftDOM+ ((((toSVGGraphicsElement self) ^. js "nearestViewportElement") >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement.nearestViewportElement Mozilla SVGGraphicsElement.nearestViewportElement documentation> getNearestViewportElementUnchecked :: (MonadDOM m, IsSVGGraphicsElement self) => self -> m SVGElement getNearestViewportElementUnchecked self@@ -161,6 +237,16 @@ = liftDOM (((toSVGGraphicsElement self) ^. js "farthestViewportElement") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement.farthestViewportElement Mozilla SVGGraphicsElement.farthestViewportElement documentation> +getFarthestViewportElementUnsafe ::+ (MonadDOM m, IsSVGGraphicsElement self, HasCallStack) =>+ self -> m SVGElement+getFarthestViewportElementUnsafe self+ = liftDOM+ ((((toSVGGraphicsElement self) ^. js "farthestViewportElement") >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement.farthestViewportElement Mozilla SVGGraphicsElement.farthestViewportElement documentation> getFarthestViewportElementUnchecked ::
@@ -1,12 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGImageElement- (getX, getXUnchecked, getY, getYUnchecked, getWidth,- getWidthUnchecked, getHeight, getHeightUnchecked,- getPreserveAspectRatio, getPreserveAspectRatioUnchecked,- SVGImageElement, castToSVGImageElement, gTypeSVGImageElement)+ (getX, getXUnsafe, getXUnchecked, getY, getYUnsafe, getYUnchecked,+ getWidth, getWidthUnsafe, getWidthUnchecked, getHeight,+ getHeightUnsafe, getHeightUnchecked, getPreserveAspectRatio,+ getPreserveAspectRatioUnsafe, getPreserveAspectRatioUnchecked,+ SVGImageElement(..), gTypeSVGImageElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement.x Mozilla SVGImageElement.x documentation> getX ::@@ -24,6 +39,15 @@ getX self = liftDOM ((self ^. js "x") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement.x Mozilla SVGImageElement.x documentation> +getXUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGImageElement -> m SVGAnimatedLength+getXUnsafe self+ = liftDOM+ (((self ^. js "x") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement.x Mozilla SVGImageElement.x documentation> getXUnchecked :: (MonadDOM m) => SVGImageElement -> m SVGAnimatedLength getXUnchecked self@@ -35,6 +59,15 @@ getY self = liftDOM ((self ^. js "y") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement.y Mozilla SVGImageElement.y documentation> +getYUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGImageElement -> m SVGAnimatedLength+getYUnsafe self+ = liftDOM+ (((self ^. js "y") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement.y Mozilla SVGImageElement.y documentation> getYUnchecked :: (MonadDOM m) => SVGImageElement -> m SVGAnimatedLength getYUnchecked self@@ -46,6 +79,15 @@ getWidth self = liftDOM ((self ^. js "width") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement.width Mozilla SVGImageElement.width documentation> +getWidthUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGImageElement -> m SVGAnimatedLength+getWidthUnsafe self+ = liftDOM+ (((self ^. js "width") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement.width Mozilla SVGImageElement.width documentation> getWidthUnchecked :: (MonadDOM m) => SVGImageElement -> m SVGAnimatedLength getWidthUnchecked self@@ -57,6 +99,15 @@ getHeight self = liftDOM ((self ^. js "height") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement.height Mozilla SVGImageElement.height documentation> +getHeightUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGImageElement -> m SVGAnimatedLength+getHeightUnsafe self+ = liftDOM+ (((self ^. js "height") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement.height Mozilla SVGImageElement.height documentation> getHeightUnchecked :: (MonadDOM m) => SVGImageElement -> m SVGAnimatedLength getHeightUnchecked self@@ -68,6 +119,15 @@ SVGImageElement -> m (Maybe SVGAnimatedPreserveAspectRatio) getPreserveAspectRatio self = liftDOM ((self ^. js "preserveAspectRatio") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement.preserveAspectRatio Mozilla SVGImageElement.preserveAspectRatio documentation> +getPreserveAspectRatioUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGImageElement -> m SVGAnimatedPreserveAspectRatio+getPreserveAspectRatioUnsafe self+ = liftDOM+ (((self ^. js "preserveAspectRatio") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement.preserveAspectRatio Mozilla SVGImageElement.preserveAspectRatio documentation> getPreserveAspectRatioUnchecked ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGLength (newValueSpecifiedUnits, convertToSpecifiedUnits,@@ -9,10 +12,11 @@ pattern SVG_LENGTHTYPE_IN, pattern SVG_LENGTHTYPE_PT, pattern SVG_LENGTHTYPE_PC, getUnitType, setValue, getValue, setValueInSpecifiedUnits, getValueInSpecifiedUnits,- setValueAsString, getValueAsString, getValueAsStringUnchecked,- SVGLength, castToSVGLength, gTypeSVGLength)+ setValueAsString, getValueAsString, getValueAsStringUnsafe,+ getValueAsStringUnchecked, SVGLength(..), gTypeSVGLength) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -23,6 +27,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLength.newValueSpecifiedUnits Mozilla SVGLength.newValueSpecifiedUnits documentation> newValueSpecifiedUnits ::@@ -89,6 +103,15 @@ (MonadDOM m, FromJSString result) => SVGLength -> m (Maybe result) getValueAsString self = liftDOM ((self ^. js "valueAsString") >>= fromMaybeJSString)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLength.valueAsString Mozilla SVGLength.valueAsString documentation> +getValueAsStringUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ SVGLength -> m result+getValueAsStringUnsafe self+ = liftDOM+ (((self ^. js "valueAsString") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLength.valueAsString Mozilla SVGLength.valueAsString documentation> getValueAsStringUnchecked ::
@@ -1,14 +1,20 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGLengthList- (clear, initialize, initialize_, initializeUnchecked, getItem,- getItem_, getItemUnchecked, insertItemBefore, insertItemBefore_,- insertItemBeforeUnchecked, replaceItem, replaceItem_,- replaceItemUnchecked, removeItem, removeItem_, removeItemUnchecked,- appendItem, appendItem_, appendItemUnchecked, getNumberOfItems,- SVGLengthList, castToSVGLengthList, gTypeSVGLengthList)+ (clear, initialize, initialize_, initializeUnsafe,+ initializeUnchecked, getItem, getItem_, getItemUnsafe,+ getItemUnchecked, insertItemBefore, insertItemBefore_,+ insertItemBeforeUnsafe, insertItemBeforeUnchecked, replaceItem,+ replaceItem_, replaceItemUnsafe, replaceItemUnchecked, removeItem,+ removeItem_, removeItemUnsafe, removeItemUnchecked, appendItem,+ appendItem_, appendItemUnsafe, appendItemUnchecked,+ getNumberOfItems, SVGLengthList(..), gTypeSVGLengthList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +25,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList.clear Mozilla SVGLengthList.clear documentation> clear :: (MonadDOM m) => SVGLengthList -> m ()@@ -38,6 +54,15 @@ = liftDOM (void (self ^. jsf "initialize" [toJSVal item])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList.initialize Mozilla SVGLengthList.initialize documentation> +initializeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGLengthList -> Maybe SVGLength -> m SVGLength+initializeUnsafe self item+ = liftDOM+ (((self ^. jsf "initialize" [toJSVal item]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList.initialize Mozilla SVGLengthList.initialize documentation> initializeUnchecked :: (MonadDOM m) => SVGLengthList -> Maybe SVGLength -> m SVGLength initializeUnchecked self item@@ -56,6 +81,14 @@ = liftDOM (void (self ^. jsf "getItem" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList.getItem Mozilla SVGLengthList.getItem documentation> +getItemUnsafe ::+ (MonadDOM m, HasCallStack) => SVGLengthList -> Word -> m SVGLength+getItemUnsafe self index+ = liftDOM+ (((self ^. jsf "getItem" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList.getItem Mozilla SVGLengthList.getItem documentation> getItemUnchecked :: (MonadDOM m) => SVGLengthList -> Word -> m SVGLength getItemUnchecked self index@@ -80,6 +113,16 @@ (self ^. jsf "insertItemBefore" [toJSVal item, toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList.insertItemBefore Mozilla SVGLengthList.insertItemBefore documentation> +insertItemBeforeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGLengthList -> Maybe SVGLength -> Word -> m SVGLength+insertItemBeforeUnsafe self item index+ = liftDOM+ (((self ^. jsf "insertItemBefore" [toJSVal item, toJSVal index])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList.insertItemBefore Mozilla SVGLengthList.insertItemBefore documentation> insertItemBeforeUnchecked :: (MonadDOM m) => SVGLengthList -> Maybe SVGLength -> Word -> m SVGLength@@ -105,6 +148,16 @@ (void (self ^. jsf "replaceItem" [toJSVal item, toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList.replaceItem Mozilla SVGLengthList.replaceItem documentation> +replaceItemUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGLengthList -> Maybe SVGLength -> Word -> m SVGLength+replaceItemUnsafe self item index+ = liftDOM+ (((self ^. jsf "replaceItem" [toJSVal item, toJSVal index]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList.replaceItem Mozilla SVGLengthList.replaceItem documentation> replaceItemUnchecked :: (MonadDOM m) => SVGLengthList -> Maybe SVGLength -> Word -> m SVGLength@@ -126,6 +179,14 @@ = liftDOM (void (self ^. jsf "removeItem" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList.removeItem Mozilla SVGLengthList.removeItem documentation> +removeItemUnsafe ::+ (MonadDOM m, HasCallStack) => SVGLengthList -> Word -> m SVGLength+removeItemUnsafe self index+ = liftDOM+ (((self ^. jsf "removeItem" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList.removeItem Mozilla SVGLengthList.removeItem documentation> removeItemUnchecked :: (MonadDOM m) => SVGLengthList -> Word -> m SVGLength removeItemUnchecked self index@@ -144,6 +205,15 @@ (MonadDOM m) => SVGLengthList -> Maybe SVGLength -> m () appendItem_ self item = liftDOM (void (self ^. jsf "appendItem" [toJSVal item]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList.appendItem Mozilla SVGLengthList.appendItem documentation> +appendItemUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGLengthList -> Maybe SVGLength -> m SVGLength+appendItemUnsafe self item+ = liftDOM+ (((self ^. jsf "appendItem" [toJSVal item]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList.appendItem Mozilla SVGLengthList.appendItem documentation> appendItemUnchecked ::
@@ -1,11 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGLineElement- (getX1, getX1Unchecked, getY1, getY1Unchecked, getX2,- getX2Unchecked, getY2, getY2Unchecked, SVGLineElement,- castToSVGLineElement, gTypeSVGLineElement)+ (getX1, getX1Unsafe, getX1Unchecked, getY1, getY1Unsafe,+ getY1Unchecked, getX2, getX2Unsafe, getX2Unchecked, getY2,+ getY2Unsafe, getY2Unchecked, SVGLineElement(..),+ gTypeSVGLineElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement.x1 Mozilla SVGLineElement.x1 documentation> getX1 ::@@ -23,6 +38,14 @@ getX1 self = liftDOM ((self ^. js "x1") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement.x1 Mozilla SVGLineElement.x1 documentation> +getX1Unsafe ::+ (MonadDOM m, HasCallStack) => SVGLineElement -> m SVGAnimatedLength+getX1Unsafe self+ = liftDOM+ (((self ^. js "x1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement.x1 Mozilla SVGLineElement.x1 documentation> getX1Unchecked :: (MonadDOM m) => SVGLineElement -> m SVGAnimatedLength getX1Unchecked self@@ -34,6 +57,14 @@ getY1 self = liftDOM ((self ^. js "y1") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement.y1 Mozilla SVGLineElement.y1 documentation> +getY1Unsafe ::+ (MonadDOM m, HasCallStack) => SVGLineElement -> m SVGAnimatedLength+getY1Unsafe self+ = liftDOM+ (((self ^. js "y1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement.y1 Mozilla SVGLineElement.y1 documentation> getY1Unchecked :: (MonadDOM m) => SVGLineElement -> m SVGAnimatedLength getY1Unchecked self@@ -45,6 +76,14 @@ getX2 self = liftDOM ((self ^. js "x2") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement.x2 Mozilla SVGLineElement.x2 documentation> +getX2Unsafe ::+ (MonadDOM m, HasCallStack) => SVGLineElement -> m SVGAnimatedLength+getX2Unsafe self+ = liftDOM+ (((self ^. js "x2") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement.x2 Mozilla SVGLineElement.x2 documentation> getX2Unchecked :: (MonadDOM m) => SVGLineElement -> m SVGAnimatedLength getX2Unchecked self@@ -54,6 +93,14 @@ getY2 :: (MonadDOM m) => SVGLineElement -> m (Maybe SVGAnimatedLength) getY2 self = liftDOM ((self ^. js "y2") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement.y2 Mozilla SVGLineElement.y2 documentation> +getY2Unsafe ::+ (MonadDOM m, HasCallStack) => SVGLineElement -> m SVGAnimatedLength+getY2Unsafe self+ = liftDOM+ (((self ^. js "y2") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement.y2 Mozilla SVGLineElement.y2 documentation> getY2Unchecked ::
@@ -1,11 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGLinearGradientElement- (getX1, getX1Unchecked, getY1, getY1Unchecked, getX2,- getX2Unchecked, getY2, getY2Unchecked, SVGLinearGradientElement,- castToSVGLinearGradientElement, gTypeSVGLinearGradientElement)+ (getX1, getX1Unsafe, getX1Unchecked, getY1, getY1Unsafe,+ getY1Unchecked, getX2, getX2Unsafe, getX2Unchecked, getY2,+ getY2Unsafe, getY2Unchecked, SVGLinearGradientElement(..),+ gTypeSVGLinearGradientElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +21,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement.x1 Mozilla SVGLinearGradientElement.x1 documentation> getX1 ::@@ -24,6 +39,15 @@ getX1 self = liftDOM ((self ^. js "x1") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement.x1 Mozilla SVGLinearGradientElement.x1 documentation> +getX1Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGLinearGradientElement -> m SVGAnimatedLength+getX1Unsafe self+ = liftDOM+ (((self ^. js "x1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement.x1 Mozilla SVGLinearGradientElement.x1 documentation> getX1Unchecked :: (MonadDOM m) => SVGLinearGradientElement -> m SVGAnimatedLength getX1Unchecked self@@ -36,6 +60,15 @@ getY1 self = liftDOM ((self ^. js "y1") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement.y1 Mozilla SVGLinearGradientElement.y1 documentation> +getY1Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGLinearGradientElement -> m SVGAnimatedLength+getY1Unsafe self+ = liftDOM+ (((self ^. js "y1") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement.y1 Mozilla SVGLinearGradientElement.y1 documentation> getY1Unchecked :: (MonadDOM m) => SVGLinearGradientElement -> m SVGAnimatedLength getY1Unchecked self@@ -48,6 +81,15 @@ getX2 self = liftDOM ((self ^. js "x2") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement.x2 Mozilla SVGLinearGradientElement.x2 documentation> +getX2Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGLinearGradientElement -> m SVGAnimatedLength+getX2Unsafe self+ = liftDOM+ (((self ^. js "x2") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement.x2 Mozilla SVGLinearGradientElement.x2 documentation> getX2Unchecked :: (MonadDOM m) => SVGLinearGradientElement -> m SVGAnimatedLength getX2Unchecked self@@ -58,6 +100,15 @@ (MonadDOM m) => SVGLinearGradientElement -> m (Maybe SVGAnimatedLength) getY2 self = liftDOM ((self ^. js "y2") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement.y2 Mozilla SVGLinearGradientElement.y2 documentation> +getY2Unsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGLinearGradientElement -> m SVGAnimatedLength+getY2Unsafe self+ = liftDOM+ (((self ^. js "y2") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement.y2 Mozilla SVGLinearGradientElement.y2 documentation> getY2Unchecked ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGMarkerElement (setOrientToAuto, setOrientToAngle,@@ -6,14 +9,17 @@ pattern SVG_MARKERUNITS_USERSPACEONUSE, pattern SVG_MARKERUNITS_STROKEWIDTH, pattern SVG_MARKER_ORIENT_UNKNOWN, pattern SVG_MARKER_ORIENT_AUTO,- pattern SVG_MARKER_ORIENT_ANGLE, getRefX, getRefXUnchecked,- getRefY, getRefYUnchecked, getMarkerUnits, getMarkerUnitsUnchecked,- getMarkerWidth, getMarkerWidthUnchecked, getMarkerHeight,- getMarkerHeightUnchecked, getOrientType, getOrientTypeUnchecked,- getOrientAngle, getOrientAngleUnchecked, SVGMarkerElement,- castToSVGMarkerElement, gTypeSVGMarkerElement)+ pattern SVG_MARKER_ORIENT_ANGLE, getRefX, getRefXUnsafe,+ getRefXUnchecked, getRefY, getRefYUnsafe, getRefYUnchecked,+ getMarkerUnits, getMarkerUnitsUnsafe, getMarkerUnitsUnchecked,+ getMarkerWidth, getMarkerWidthUnsafe, getMarkerWidthUnchecked,+ getMarkerHeight, getMarkerHeightUnsafe, getMarkerHeightUnchecked,+ getOrientType, getOrientTypeUnsafe, getOrientTypeUnchecked,+ getOrientAngle, getOrientAngleUnsafe, getOrientAngleUnchecked,+ SVGMarkerElement(..), gTypeSVGMarkerElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -24,6 +30,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement.setOrientToAuto Mozilla SVGMarkerElement.setOrientToAuto documentation> setOrientToAuto :: (MonadDOM m) => SVGMarkerElement -> m ()@@ -48,6 +64,15 @@ getRefX self = liftDOM ((self ^. js "refX") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement.refX Mozilla SVGMarkerElement.refX documentation> +getRefXUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGMarkerElement -> m SVGAnimatedLength+getRefXUnsafe self+ = liftDOM+ (((self ^. js "refX") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement.refX Mozilla SVGMarkerElement.refX documentation> getRefXUnchecked :: (MonadDOM m) => SVGMarkerElement -> m SVGAnimatedLength getRefXUnchecked self@@ -59,6 +84,15 @@ getRefY self = liftDOM ((self ^. js "refY") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement.refY Mozilla SVGMarkerElement.refY documentation> +getRefYUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGMarkerElement -> m SVGAnimatedLength+getRefYUnsafe self+ = liftDOM+ (((self ^. js "refY") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement.refY Mozilla SVGMarkerElement.refY documentation> getRefYUnchecked :: (MonadDOM m) => SVGMarkerElement -> m SVGAnimatedLength getRefYUnchecked self@@ -72,6 +106,15 @@ = liftDOM ((self ^. js "markerUnits") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement.markerUnits Mozilla SVGMarkerElement.markerUnits documentation> +getMarkerUnitsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGMarkerElement -> m SVGAnimatedEnumeration+getMarkerUnitsUnsafe self+ = liftDOM+ (((self ^. js "markerUnits") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement.markerUnits Mozilla SVGMarkerElement.markerUnits documentation> getMarkerUnitsUnchecked :: (MonadDOM m) => SVGMarkerElement -> m SVGAnimatedEnumeration getMarkerUnitsUnchecked self@@ -84,6 +127,15 @@ = liftDOM ((self ^. js "markerWidth") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement.markerWidth Mozilla SVGMarkerElement.markerWidth documentation> +getMarkerWidthUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGMarkerElement -> m SVGAnimatedLength+getMarkerWidthUnsafe self+ = liftDOM+ (((self ^. js "markerWidth") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement.markerWidth Mozilla SVGMarkerElement.markerWidth documentation> getMarkerWidthUnchecked :: (MonadDOM m) => SVGMarkerElement -> m SVGAnimatedLength getMarkerWidthUnchecked self@@ -96,6 +148,15 @@ = liftDOM ((self ^. js "markerHeight") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement.markerHeight Mozilla SVGMarkerElement.markerHeight documentation> +getMarkerHeightUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGMarkerElement -> m SVGAnimatedLength+getMarkerHeightUnsafe self+ = liftDOM+ (((self ^. js "markerHeight") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement.markerHeight Mozilla SVGMarkerElement.markerHeight documentation> getMarkerHeightUnchecked :: (MonadDOM m) => SVGMarkerElement -> m SVGAnimatedLength getMarkerHeightUnchecked self@@ -109,6 +170,15 @@ = liftDOM ((self ^. js "orientType") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement.orientType Mozilla SVGMarkerElement.orientType documentation> +getOrientTypeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGMarkerElement -> m SVGAnimatedEnumeration+getOrientTypeUnsafe self+ = liftDOM+ (((self ^. js "orientType") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement.orientType Mozilla SVGMarkerElement.orientType documentation> getOrientTypeUnchecked :: (MonadDOM m) => SVGMarkerElement -> m SVGAnimatedEnumeration getOrientTypeUnchecked self@@ -119,6 +189,15 @@ (MonadDOM m) => SVGMarkerElement -> m (Maybe SVGAnimatedAngle) getOrientAngle self = liftDOM ((self ^. js "orientAngle") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement.orientAngle Mozilla SVGMarkerElement.orientAngle documentation> +getOrientAngleUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGMarkerElement -> m SVGAnimatedAngle+getOrientAngleUnsafe self+ = liftDOM+ (((self ^. js "orientAngle") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement.orientAngle Mozilla SVGMarkerElement.orientAngle documentation> getOrientAngleUnchecked ::
@@ -1,13 +1,18 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGMaskElement- (getMaskUnits, getMaskUnitsUnchecked, getMaskContentUnits,- getMaskContentUnitsUnchecked, getX, getXUnchecked, getY,- getYUnchecked, getWidth, getWidthUnchecked, getHeight,- getHeightUnchecked, SVGMaskElement, castToSVGMaskElement,- gTypeSVGMaskElement)+ (getMaskUnits, getMaskUnitsUnsafe, getMaskUnitsUnchecked,+ getMaskContentUnits, getMaskContentUnitsUnsafe,+ getMaskContentUnitsUnchecked, getX, getXUnsafe, getXUnchecked,+ getY, getYUnsafe, getYUnchecked, getWidth, getWidthUnsafe,+ getWidthUnchecked, getHeight, getHeightUnsafe, getHeightUnchecked,+ SVGMaskElement(..), gTypeSVGMaskElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -18,6 +23,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement.maskUnits Mozilla SVGMaskElement.maskUnits documentation> getMaskUnits ::@@ -26,6 +41,15 @@ = liftDOM ((self ^. js "maskUnits") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement.maskUnits Mozilla SVGMaskElement.maskUnits documentation> +getMaskUnitsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGMaskElement -> m SVGAnimatedEnumeration+getMaskUnitsUnsafe self+ = liftDOM+ (((self ^. js "maskUnits") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement.maskUnits Mozilla SVGMaskElement.maskUnits documentation> getMaskUnitsUnchecked :: (MonadDOM m) => SVGMaskElement -> m SVGAnimatedEnumeration getMaskUnitsUnchecked self@@ -38,6 +62,15 @@ = liftDOM ((self ^. js "maskContentUnits") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement.maskContentUnits Mozilla SVGMaskElement.maskContentUnits documentation> +getMaskContentUnitsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGMaskElement -> m SVGAnimatedEnumeration+getMaskContentUnitsUnsafe self+ = liftDOM+ (((self ^. js "maskContentUnits") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement.maskContentUnits Mozilla SVGMaskElement.maskContentUnits documentation> getMaskContentUnitsUnchecked :: (MonadDOM m) => SVGMaskElement -> m SVGAnimatedEnumeration getMaskContentUnitsUnchecked self@@ -49,6 +82,14 @@ getX self = liftDOM ((self ^. js "x") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement.x Mozilla SVGMaskElement.x documentation> +getXUnsafe ::+ (MonadDOM m, HasCallStack) => SVGMaskElement -> m SVGAnimatedLength+getXUnsafe self+ = liftDOM+ (((self ^. js "x") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement.x Mozilla SVGMaskElement.x documentation> getXUnchecked :: (MonadDOM m) => SVGMaskElement -> m SVGAnimatedLength getXUnchecked self@@ -60,6 +101,14 @@ getY self = liftDOM ((self ^. js "y") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement.y Mozilla SVGMaskElement.y documentation> +getYUnsafe ::+ (MonadDOM m, HasCallStack) => SVGMaskElement -> m SVGAnimatedLength+getYUnsafe self+ = liftDOM+ (((self ^. js "y") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement.y Mozilla SVGMaskElement.y documentation> getYUnchecked :: (MonadDOM m) => SVGMaskElement -> m SVGAnimatedLength getYUnchecked self@@ -71,6 +120,14 @@ getWidth self = liftDOM ((self ^. js "width") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement.width Mozilla SVGMaskElement.width documentation> +getWidthUnsafe ::+ (MonadDOM m, HasCallStack) => SVGMaskElement -> m SVGAnimatedLength+getWidthUnsafe self+ = liftDOM+ (((self ^. js "width") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement.width Mozilla SVGMaskElement.width documentation> getWidthUnchecked :: (MonadDOM m) => SVGMaskElement -> m SVGAnimatedLength getWidthUnchecked self@@ -80,6 +137,14 @@ getHeight :: (MonadDOM m) => SVGMaskElement -> m (Maybe SVGAnimatedLength) getHeight self = liftDOM ((self ^. js "height") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement.height Mozilla SVGMaskElement.height documentation> +getHeightUnsafe ::+ (MonadDOM m, HasCallStack) => SVGMaskElement -> m SVGAnimatedLength+getHeightUnsafe self+ = liftDOM+ (((self ^. js "height") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement.height Mozilla SVGMaskElement.height documentation> getHeightUnchecked ::
@@ -1,17 +1,24 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGMatrix- (multiply, multiply_, multiplyUnchecked, inverse, inverse_,- inverseUnchecked, translate, translate_, translateUnchecked, scale,- scale_, scaleUnchecked, scaleNonUniform, scaleNonUniform_,- scaleNonUniformUnchecked, rotate, rotate_, rotateUnchecked,- rotateFromVector, rotateFromVector_, rotateFromVectorUnchecked,- flipX, flipX_, flipXUnchecked, flipY, flipY_, flipYUnchecked,- skewX, skewX_, skewXUnchecked, skewY, skewY_, skewYUnchecked, setA,- getA, setB, getB, setC, getC, setD, getD, setE, getE, setF, getF,- SVGMatrix, castToSVGMatrix, gTypeSVGMatrix)+ (multiply, multiply_, multiplyUnsafe, multiplyUnchecked, inverse,+ inverse_, inverseUnsafe, inverseUnchecked, translate, translate_,+ translateUnsafe, translateUnchecked, scale, scale_, scaleUnsafe,+ scaleUnchecked, scaleNonUniform, scaleNonUniform_,+ scaleNonUniformUnsafe, scaleNonUniformUnchecked, rotate, rotate_,+ rotateUnsafe, rotateUnchecked, rotateFromVector, rotateFromVector_,+ rotateFromVectorUnsafe, rotateFromVectorUnchecked, flipX, flipX_,+ flipXUnsafe, flipXUnchecked, flipY, flipY_, flipYUnsafe,+ flipYUnchecked, skewX, skewX_, skewXUnsafe, skewXUnchecked, skewY,+ skewY_, skewYUnsafe, skewYUnchecked, setA, getA, setB, getB, setC,+ getC, setD, getD, setE, getE, setF, getF, SVGMatrix(..),+ gTypeSVGMatrix) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -22,6 +29,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.multiply Mozilla SVGMatrix.multiply documentation> multiply ::@@ -36,6 +53,15 @@ = liftDOM (void (self ^. jsf "multiply" [toJSVal secondMatrix])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.multiply Mozilla SVGMatrix.multiply documentation> +multiplyUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGMatrix -> Maybe SVGMatrix -> m SVGMatrix+multiplyUnsafe self secondMatrix+ = liftDOM+ (((self ^. jsf "multiply" [toJSVal secondMatrix]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.multiply Mozilla SVGMatrix.multiply documentation> multiplyUnchecked :: (MonadDOM m) => SVGMatrix -> Maybe SVGMatrix -> m SVGMatrix multiplyUnchecked self secondMatrix@@ -52,6 +78,14 @@ inverse_ self = liftDOM (void (self ^. jsf "inverse" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.inverse Mozilla SVGMatrix.inverse documentation> +inverseUnsafe ::+ (MonadDOM m, HasCallStack) => SVGMatrix -> m SVGMatrix+inverseUnsafe self+ = liftDOM+ (((self ^. jsf "inverse" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.inverse Mozilla SVGMatrix.inverse documentation> inverseUnchecked :: (MonadDOM m) => SVGMatrix -> m SVGMatrix inverseUnchecked self = liftDOM ((self ^. jsf "inverse" ()) >>= fromJSValUnchecked)@@ -69,6 +103,15 @@ = liftDOM (void (self ^. jsf "translate" [toJSVal x, toJSVal y])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.translate Mozilla SVGMatrix.translate documentation> +translateUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGMatrix -> Float -> Float -> m SVGMatrix+translateUnsafe self x y+ = liftDOM+ (((self ^. jsf "translate" [toJSVal x, toJSVal y]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.translate Mozilla SVGMatrix.translate documentation> translateUnchecked :: (MonadDOM m) => SVGMatrix -> Float -> Float -> m SVGMatrix translateUnchecked self x y@@ -88,6 +131,14 @@ = liftDOM (void (self ^. jsf "scale" [toJSVal scaleFactor])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.scale Mozilla SVGMatrix.scale documentation> +scaleUnsafe ::+ (MonadDOM m, HasCallStack) => SVGMatrix -> Float -> m SVGMatrix+scaleUnsafe self scaleFactor+ = liftDOM+ (((self ^. jsf "scale" [toJSVal scaleFactor]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.scale Mozilla SVGMatrix.scale documentation> scaleUnchecked :: (MonadDOM m) => SVGMatrix -> Float -> m SVGMatrix scaleUnchecked self scaleFactor = liftDOM@@ -113,6 +164,17 @@ [toJSVal scaleFactorX, toJSVal scaleFactorY])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.scaleNonUniform Mozilla SVGMatrix.scaleNonUniform documentation> +scaleNonUniformUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGMatrix -> Float -> Float -> m SVGMatrix+scaleNonUniformUnsafe self scaleFactorX scaleFactorY+ = liftDOM+ (((self ^. jsf "scaleNonUniform"+ [toJSVal scaleFactorX, toJSVal scaleFactorY])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.scaleNonUniform Mozilla SVGMatrix.scaleNonUniform documentation> scaleNonUniformUnchecked :: (MonadDOM m) => SVGMatrix -> Float -> Float -> m SVGMatrix scaleNonUniformUnchecked self scaleFactorX scaleFactorY@@ -132,6 +194,14 @@ = liftDOM (void (self ^. jsf "rotate" [toJSVal angle])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.rotate Mozilla SVGMatrix.rotate documentation> +rotateUnsafe ::+ (MonadDOM m, HasCallStack) => SVGMatrix -> Float -> m SVGMatrix+rotateUnsafe self angle+ = liftDOM+ (((self ^. jsf "rotate" [toJSVal angle]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.rotate Mozilla SVGMatrix.rotate documentation> rotateUnchecked :: (MonadDOM m) => SVGMatrix -> Float -> m SVGMatrix rotateUnchecked self angle@@ -154,6 +224,16 @@ (void (self ^. jsf "rotateFromVector" [toJSVal x, toJSVal y])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.rotateFromVector Mozilla SVGMatrix.rotateFromVector documentation> +rotateFromVectorUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGMatrix -> Float -> Float -> m SVGMatrix+rotateFromVectorUnsafe self x y+ = liftDOM+ (((self ^. jsf "rotateFromVector" [toJSVal x, toJSVal y]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.rotateFromVector Mozilla SVGMatrix.rotateFromVector documentation> rotateFromVectorUnchecked :: (MonadDOM m) => SVGMatrix -> Float -> Float -> m SVGMatrix rotateFromVectorUnchecked self x y@@ -170,6 +250,14 @@ flipX_ self = liftDOM (void (self ^. jsf "flipX" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.flipX Mozilla SVGMatrix.flipX documentation> +flipXUnsafe ::+ (MonadDOM m, HasCallStack) => SVGMatrix -> m SVGMatrix+flipXUnsafe self+ = liftDOM+ (((self ^. jsf "flipX" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.flipX Mozilla SVGMatrix.flipX documentation> flipXUnchecked :: (MonadDOM m) => SVGMatrix -> m SVGMatrix flipXUnchecked self = liftDOM ((self ^. jsf "flipX" ()) >>= fromJSValUnchecked)@@ -183,6 +271,14 @@ flipY_ self = liftDOM (void (self ^. jsf "flipY" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.flipY Mozilla SVGMatrix.flipY documentation> +flipYUnsafe ::+ (MonadDOM m, HasCallStack) => SVGMatrix -> m SVGMatrix+flipYUnsafe self+ = liftDOM+ (((self ^. jsf "flipY" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.flipY Mozilla SVGMatrix.flipY documentation> flipYUnchecked :: (MonadDOM m) => SVGMatrix -> m SVGMatrix flipYUnchecked self = liftDOM ((self ^. jsf "flipY" ()) >>= fromJSValUnchecked)@@ -198,6 +294,14 @@ = liftDOM (void (self ^. jsf "skewX" [toJSVal angle])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.skewX Mozilla SVGMatrix.skewX documentation> +skewXUnsafe ::+ (MonadDOM m, HasCallStack) => SVGMatrix -> Float -> m SVGMatrix+skewXUnsafe self angle+ = liftDOM+ (((self ^. jsf "skewX" [toJSVal angle]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.skewX Mozilla SVGMatrix.skewX documentation> skewXUnchecked :: (MonadDOM m) => SVGMatrix -> Float -> m SVGMatrix skewXUnchecked self angle = liftDOM@@ -212,6 +316,14 @@ skewY_ :: (MonadDOM m) => SVGMatrix -> Float -> m () skewY_ self angle = liftDOM (void (self ^. jsf "skewY" [toJSVal angle]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.skewY Mozilla SVGMatrix.skewY documentation> +skewYUnsafe ::+ (MonadDOM m, HasCallStack) => SVGMatrix -> Float -> m SVGMatrix+skewYUnsafe self angle+ = liftDOM+ (((self ^. jsf "skewY" [toJSVal angle]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix.skewY Mozilla SVGMatrix.skewY documentation> skewYUnchecked :: (MonadDOM m) => SVGMatrix -> Float -> m SVGMatrix
@@ -1,9 +1,12 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGNumber- (setValue, getValue, SVGNumber, castToSVGNumber, gTypeSVGNumber)- where+ (setValue, getValue, SVGNumber(..), gTypeSVGNumber) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -14,6 +17,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGNumber.value Mozilla SVGNumber.value documentation> setValue :: (MonadDOM m) => SVGNumber -> Float -> m ()
@@ -1,14 +1,20 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGNumberList- (clear, initialize, initialize_, initializeUnchecked, getItem,- getItem_, getItemUnchecked, insertItemBefore, insertItemBefore_,- insertItemBeforeUnchecked, replaceItem, replaceItem_,- replaceItemUnchecked, removeItem, removeItem_, removeItemUnchecked,- appendItem, appendItem_, appendItemUnchecked, getNumberOfItems,- SVGNumberList, castToSVGNumberList, gTypeSVGNumberList)+ (clear, initialize, initialize_, initializeUnsafe,+ initializeUnchecked, getItem, getItem_, getItemUnsafe,+ getItemUnchecked, insertItemBefore, insertItemBefore_,+ insertItemBeforeUnsafe, insertItemBeforeUnchecked, replaceItem,+ replaceItem_, replaceItemUnsafe, replaceItemUnchecked, removeItem,+ removeItem_, removeItemUnsafe, removeItemUnchecked, appendItem,+ appendItem_, appendItemUnsafe, appendItemUnchecked,+ getNumberOfItems, SVGNumberList(..), gTypeSVGNumberList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +25,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList.clear Mozilla SVGNumberList.clear documentation> clear :: (MonadDOM m) => SVGNumberList -> m ()@@ -38,6 +54,15 @@ = liftDOM (void (self ^. jsf "initialize" [toJSVal item])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList.initialize Mozilla SVGNumberList.initialize documentation> +initializeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGNumberList -> Maybe SVGNumber -> m SVGNumber+initializeUnsafe self item+ = liftDOM+ (((self ^. jsf "initialize" [toJSVal item]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList.initialize Mozilla SVGNumberList.initialize documentation> initializeUnchecked :: (MonadDOM m) => SVGNumberList -> Maybe SVGNumber -> m SVGNumber initializeUnchecked self item@@ -56,6 +81,14 @@ = liftDOM (void (self ^. jsf "getItem" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList.getItem Mozilla SVGNumberList.getItem documentation> +getItemUnsafe ::+ (MonadDOM m, HasCallStack) => SVGNumberList -> Word -> m SVGNumber+getItemUnsafe self index+ = liftDOM+ (((self ^. jsf "getItem" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList.getItem Mozilla SVGNumberList.getItem documentation> getItemUnchecked :: (MonadDOM m) => SVGNumberList -> Word -> m SVGNumber getItemUnchecked self index@@ -80,6 +113,16 @@ (self ^. jsf "insertItemBefore" [toJSVal item, toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList.insertItemBefore Mozilla SVGNumberList.insertItemBefore documentation> +insertItemBeforeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGNumberList -> Maybe SVGNumber -> Word -> m SVGNumber+insertItemBeforeUnsafe self item index+ = liftDOM+ (((self ^. jsf "insertItemBefore" [toJSVal item, toJSVal index])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList.insertItemBefore Mozilla SVGNumberList.insertItemBefore documentation> insertItemBeforeUnchecked :: (MonadDOM m) => SVGNumberList -> Maybe SVGNumber -> Word -> m SVGNumber@@ -105,6 +148,16 @@ (void (self ^. jsf "replaceItem" [toJSVal item, toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList.replaceItem Mozilla SVGNumberList.replaceItem documentation> +replaceItemUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGNumberList -> Maybe SVGNumber -> Word -> m SVGNumber+replaceItemUnsafe self item index+ = liftDOM+ (((self ^. jsf "replaceItem" [toJSVal item, toJSVal index]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList.replaceItem Mozilla SVGNumberList.replaceItem documentation> replaceItemUnchecked :: (MonadDOM m) => SVGNumberList -> Maybe SVGNumber -> Word -> m SVGNumber@@ -126,6 +179,14 @@ = liftDOM (void (self ^. jsf "removeItem" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList.removeItem Mozilla SVGNumberList.removeItem documentation> +removeItemUnsafe ::+ (MonadDOM m, HasCallStack) => SVGNumberList -> Word -> m SVGNumber+removeItemUnsafe self index+ = liftDOM+ (((self ^. jsf "removeItem" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList.removeItem Mozilla SVGNumberList.removeItem documentation> removeItemUnchecked :: (MonadDOM m) => SVGNumberList -> Word -> m SVGNumber removeItemUnchecked self index@@ -144,6 +205,15 @@ (MonadDOM m) => SVGNumberList -> Maybe SVGNumber -> m () appendItem_ self item = liftDOM (void (self ^. jsf "appendItem" [toJSVal item]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList.appendItem Mozilla SVGNumberList.appendItem documentation> +appendItemUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGNumberList -> Maybe SVGNumber -> m SVGNumber+appendItemUnsafe self item+ = liftDOM+ (((self ^. jsf "appendItem" [toJSVal item]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList.appendItem Mozilla SVGNumberList.appendItem documentation> appendItemUnchecked ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPaint (setUri, setPaint, pattern SVG_PAINTTYPE_UNKNOWN,@@ -9,10 +12,11 @@ pattern SVG_PAINTTYPE_URI_CURRENTCOLOR, pattern SVG_PAINTTYPE_URI_RGBCOLOR, pattern SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR,- pattern SVG_PAINTTYPE_URI, getPaintType, getUri, SVGPaint,- castToSVGPaint, gTypeSVGPaint)+ pattern SVG_PAINTTYPE_URI, getPaintType, getUri, SVGPaint(..),+ gTypeSVGPaint) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -23,6 +27,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPaint.setUri Mozilla SVGPaint.setUri documentation> setUri :: (MonadDOM m, ToJSString uri) => SVGPaint -> uri -> m ()
@@ -1,61 +1,85 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathElement (getTotalLength, getTotalLength_, getPointAtLength,- getPointAtLength_, getPointAtLengthUnchecked, getPathSegAtLength,- getPathSegAtLength_, createSVGPathSegClosePath,- createSVGPathSegClosePath_, createSVGPathSegClosePathUnchecked,- createSVGPathSegMovetoAbs, createSVGPathSegMovetoAbs_,+ getPointAtLength_, getPointAtLengthUnsafe,+ getPointAtLengthUnchecked, getPathSegAtLength, getPathSegAtLength_,+ createSVGPathSegClosePath, createSVGPathSegClosePath_,+ createSVGPathSegClosePathUnsafe,+ createSVGPathSegClosePathUnchecked, createSVGPathSegMovetoAbs,+ createSVGPathSegMovetoAbs_, createSVGPathSegMovetoAbsUnsafe, createSVGPathSegMovetoAbsUnchecked, createSVGPathSegMovetoRel,- createSVGPathSegMovetoRel_, createSVGPathSegMovetoRelUnchecked,- createSVGPathSegLinetoAbs, createSVGPathSegLinetoAbs_,+ createSVGPathSegMovetoRel_, createSVGPathSegMovetoRelUnsafe,+ createSVGPathSegMovetoRelUnchecked, createSVGPathSegLinetoAbs,+ createSVGPathSegLinetoAbs_, createSVGPathSegLinetoAbsUnsafe, createSVGPathSegLinetoAbsUnchecked, createSVGPathSegLinetoRel,- createSVGPathSegLinetoRel_, createSVGPathSegLinetoRelUnchecked,+ createSVGPathSegLinetoRel_, createSVGPathSegLinetoRelUnsafe,+ createSVGPathSegLinetoRelUnchecked, createSVGPathSegCurvetoCubicAbs, createSVGPathSegCurvetoCubicAbs_,+ createSVGPathSegCurvetoCubicAbsUnsafe, createSVGPathSegCurvetoCubicAbsUnchecked, createSVGPathSegCurvetoCubicRel, createSVGPathSegCurvetoCubicRel_,+ createSVGPathSegCurvetoCubicRelUnsafe, createSVGPathSegCurvetoCubicRelUnchecked, createSVGPathSegCurvetoQuadraticAbs, createSVGPathSegCurvetoQuadraticAbs_,+ createSVGPathSegCurvetoQuadraticAbsUnsafe, createSVGPathSegCurvetoQuadraticAbsUnchecked, createSVGPathSegCurvetoQuadraticRel, createSVGPathSegCurvetoQuadraticRel_,+ createSVGPathSegCurvetoQuadraticRelUnsafe, createSVGPathSegCurvetoQuadraticRelUnchecked, createSVGPathSegArcAbs, createSVGPathSegArcAbs_,- createSVGPathSegArcAbsUnchecked, createSVGPathSegArcRel,- createSVGPathSegArcRel_, createSVGPathSegArcRelUnchecked,+ createSVGPathSegArcAbsUnsafe, createSVGPathSegArcAbsUnchecked,+ createSVGPathSegArcRel, createSVGPathSegArcRel_,+ createSVGPathSegArcRelUnsafe, createSVGPathSegArcRelUnchecked, createSVGPathSegLinetoHorizontalAbs, createSVGPathSegLinetoHorizontalAbs_,+ createSVGPathSegLinetoHorizontalAbsUnsafe, createSVGPathSegLinetoHorizontalAbsUnchecked, createSVGPathSegLinetoHorizontalRel, createSVGPathSegLinetoHorizontalRel_,+ createSVGPathSegLinetoHorizontalRelUnsafe, createSVGPathSegLinetoHorizontalRelUnchecked, createSVGPathSegLinetoVerticalAbs, createSVGPathSegLinetoVerticalAbs_,+ createSVGPathSegLinetoVerticalAbsUnsafe, createSVGPathSegLinetoVerticalAbsUnchecked, createSVGPathSegLinetoVerticalRel, createSVGPathSegLinetoVerticalRel_,+ createSVGPathSegLinetoVerticalRelUnsafe, createSVGPathSegLinetoVerticalRelUnchecked, createSVGPathSegCurvetoCubicSmoothAbs, createSVGPathSegCurvetoCubicSmoothAbs_,+ createSVGPathSegCurvetoCubicSmoothAbsUnsafe, createSVGPathSegCurvetoCubicSmoothAbsUnchecked, createSVGPathSegCurvetoCubicSmoothRel, createSVGPathSegCurvetoCubicSmoothRel_,+ createSVGPathSegCurvetoCubicSmoothRelUnsafe, createSVGPathSegCurvetoCubicSmoothRelUnchecked, createSVGPathSegCurvetoQuadraticSmoothAbs, createSVGPathSegCurvetoQuadraticSmoothAbs_,+ createSVGPathSegCurvetoQuadraticSmoothAbsUnsafe, createSVGPathSegCurvetoQuadraticSmoothAbsUnchecked, createSVGPathSegCurvetoQuadraticSmoothRel, createSVGPathSegCurvetoQuadraticSmoothRel_,+ createSVGPathSegCurvetoQuadraticSmoothRelUnsafe, createSVGPathSegCurvetoQuadraticSmoothRelUnchecked, getPathLength,- getPathLengthUnchecked, getPathSegList, getPathSegListUnchecked,- getNormalizedPathSegList, getNormalizedPathSegListUnchecked,- getAnimatedPathSegList, getAnimatedPathSegListUnchecked,+ getPathLengthUnsafe, getPathLengthUnchecked, getPathSegList,+ getPathSegListUnsafe, getPathSegListUnchecked,+ getNormalizedPathSegList, getNormalizedPathSegListUnsafe,+ getNormalizedPathSegListUnchecked, getAnimatedPathSegList,+ getAnimatedPathSegListUnsafe, getAnimatedPathSegListUnchecked, getAnimatedNormalizedPathSegList,- getAnimatedNormalizedPathSegListUnchecked, SVGPathElement,- castToSVGPathElement, gTypeSVGPathElement)+ getAnimatedNormalizedPathSegListUnsafe,+ getAnimatedNormalizedPathSegListUnchecked, SVGPathElement(..),+ gTypeSVGPathElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -66,6 +90,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.getTotalLength Mozilla SVGPathElement.getTotalLength documentation> getTotalLength :: (MonadDOM m) => SVGPathElement -> m Float@@ -94,6 +128,15 @@ (void (self ^. jsf "getPointAtLength" [toJSVal distance])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.getPointAtLength Mozilla SVGPathElement.getPointAtLength documentation> +getPointAtLengthUnsafe ::+ (MonadDOM m, HasCallStack) => SVGPathElement -> Float -> m SVGPoint+getPointAtLengthUnsafe self distance+ = liftDOM+ (((self ^. jsf "getPointAtLength" [toJSVal distance]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.getPointAtLength Mozilla SVGPathElement.getPointAtLength documentation> getPointAtLengthUnchecked :: (MonadDOM m) => SVGPathElement -> Float -> m SVGPoint getPointAtLengthUnchecked self distance@@ -131,6 +174,15 @@ = liftDOM (void (self ^. jsf "createSVGPathSegClosePath" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegClosePath Mozilla SVGPathElement.createSVGPathSegClosePath documentation> +createSVGPathSegClosePathUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement -> m SVGPathSegClosePath+createSVGPathSegClosePathUnsafe self+ = liftDOM+ (((self ^. jsf "createSVGPathSegClosePath" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegClosePath Mozilla SVGPathElement.createSVGPathSegClosePath documentation> createSVGPathSegClosePathUnchecked :: (MonadDOM m) => SVGPathElement -> m SVGPathSegClosePath createSVGPathSegClosePathUnchecked self@@ -156,6 +208,16 @@ (self ^. jsf "createSVGPathSegMovetoAbs" [toJSVal x, toJSVal y])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegMovetoAbs Mozilla SVGPathElement.createSVGPathSegMovetoAbs documentation> +createSVGPathSegMovetoAbsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement -> Float -> Float -> m SVGPathSegMovetoAbs+createSVGPathSegMovetoAbsUnsafe self x y+ = liftDOM+ (((self ^. jsf "createSVGPathSegMovetoAbs" [toJSVal x, toJSVal y])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegMovetoAbs Mozilla SVGPathElement.createSVGPathSegMovetoAbs documentation> createSVGPathSegMovetoAbsUnchecked :: (MonadDOM m) => SVGPathElement -> Float -> Float -> m SVGPathSegMovetoAbs@@ -182,6 +244,16 @@ (self ^. jsf "createSVGPathSegMovetoRel" [toJSVal x, toJSVal y])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegMovetoRel Mozilla SVGPathElement.createSVGPathSegMovetoRel documentation> +createSVGPathSegMovetoRelUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement -> Float -> Float -> m SVGPathSegMovetoRel+createSVGPathSegMovetoRelUnsafe self x y+ = liftDOM+ (((self ^. jsf "createSVGPathSegMovetoRel" [toJSVal x, toJSVal y])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegMovetoRel Mozilla SVGPathElement.createSVGPathSegMovetoRel documentation> createSVGPathSegMovetoRelUnchecked :: (MonadDOM m) => SVGPathElement -> Float -> Float -> m SVGPathSegMovetoRel@@ -208,6 +280,16 @@ (self ^. jsf "createSVGPathSegLinetoAbs" [toJSVal x, toJSVal y])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegLinetoAbs Mozilla SVGPathElement.createSVGPathSegLinetoAbs documentation> +createSVGPathSegLinetoAbsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement -> Float -> Float -> m SVGPathSegLinetoAbs+createSVGPathSegLinetoAbsUnsafe self x y+ = liftDOM+ (((self ^. jsf "createSVGPathSegLinetoAbs" [toJSVal x, toJSVal y])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegLinetoAbs Mozilla SVGPathElement.createSVGPathSegLinetoAbs documentation> createSVGPathSegLinetoAbsUnchecked :: (MonadDOM m) => SVGPathElement -> Float -> Float -> m SVGPathSegLinetoAbs@@ -234,6 +316,16 @@ (self ^. jsf "createSVGPathSegLinetoRel" [toJSVal x, toJSVal y])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegLinetoRel Mozilla SVGPathElement.createSVGPathSegLinetoRel documentation> +createSVGPathSegLinetoRelUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement -> Float -> Float -> m SVGPathSegLinetoRel+createSVGPathSegLinetoRelUnsafe self x y+ = liftDOM+ (((self ^. jsf "createSVGPathSegLinetoRel" [toJSVal x, toJSVal y])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegLinetoRel Mozilla SVGPathElement.createSVGPathSegLinetoRel documentation> createSVGPathSegLinetoRelUnchecked :: (MonadDOM m) => SVGPathElement -> Float -> Float -> m SVGPathSegLinetoRel@@ -271,6 +363,23 @@ toJSVal y2])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegCurvetoCubicAbs Mozilla SVGPathElement.createSVGPathSegCurvetoCubicAbs documentation> +createSVGPathSegCurvetoCubicAbsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement ->+ Float ->+ Float ->+ Float ->+ Float ->+ Float -> Float -> m SVGPathSegCurvetoCubicAbs+createSVGPathSegCurvetoCubicAbsUnsafe self x y x1 y1 x2 y2+ = liftDOM+ (((self ^. jsf "createSVGPathSegCurvetoCubicAbs"+ [toJSVal x, toJSVal y, toJSVal x1, toJSVal y1, toJSVal x2,+ toJSVal y2])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegCurvetoCubicAbs Mozilla SVGPathElement.createSVGPathSegCurvetoCubicAbs documentation> createSVGPathSegCurvetoCubicAbsUnchecked :: (MonadDOM m) => SVGPathElement ->@@ -315,6 +424,23 @@ toJSVal y2])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegCurvetoCubicRel Mozilla SVGPathElement.createSVGPathSegCurvetoCubicRel documentation> +createSVGPathSegCurvetoCubicRelUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement ->+ Float ->+ Float ->+ Float ->+ Float ->+ Float -> Float -> m SVGPathSegCurvetoCubicRel+createSVGPathSegCurvetoCubicRelUnsafe self x y x1 y1 x2 y2+ = liftDOM+ (((self ^. jsf "createSVGPathSegCurvetoCubicRel"+ [toJSVal x, toJSVal y, toJSVal x1, toJSVal y1, toJSVal x2,+ toJSVal y2])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegCurvetoCubicRel Mozilla SVGPathElement.createSVGPathSegCurvetoCubicRel documentation> createSVGPathSegCurvetoCubicRelUnchecked :: (MonadDOM m) => SVGPathElement ->@@ -355,6 +481,20 @@ [toJSVal x, toJSVal y, toJSVal x1, toJSVal y1])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegCurvetoQuadraticAbs Mozilla SVGPathElement.createSVGPathSegCurvetoQuadraticAbs documentation> +createSVGPathSegCurvetoQuadraticAbsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement ->+ Float ->+ Float ->+ Float -> Float -> m SVGPathSegCurvetoQuadraticAbs+createSVGPathSegCurvetoQuadraticAbsUnsafe self x y x1 y1+ = liftDOM+ (((self ^. jsf "createSVGPathSegCurvetoQuadraticAbs"+ [toJSVal x, toJSVal y, toJSVal x1, toJSVal y1])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegCurvetoQuadraticAbs Mozilla SVGPathElement.createSVGPathSegCurvetoQuadraticAbs documentation> createSVGPathSegCurvetoQuadraticAbsUnchecked :: (MonadDOM m) => SVGPathElement ->@@ -393,6 +533,20 @@ [toJSVal x, toJSVal y, toJSVal x1, toJSVal y1])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegCurvetoQuadraticRel Mozilla SVGPathElement.createSVGPathSegCurvetoQuadraticRel documentation> +createSVGPathSegCurvetoQuadraticRelUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement ->+ Float ->+ Float ->+ Float -> Float -> m SVGPathSegCurvetoQuadraticRel+createSVGPathSegCurvetoQuadraticRelUnsafe self x y x1 y1+ = liftDOM+ (((self ^. jsf "createSVGPathSegCurvetoQuadraticRel"+ [toJSVal x, toJSVal y, toJSVal x1, toJSVal y1])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegCurvetoQuadraticRel Mozilla SVGPathElement.createSVGPathSegCurvetoQuadraticRel documentation> createSVGPathSegCurvetoQuadraticRelUnchecked :: (MonadDOM m) => SVGPathElement ->@@ -434,6 +588,22 @@ toJSVal largeArcFlag, toJSVal sweepFlag])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegArcAbs Mozilla SVGPathElement.createSVGPathSegArcAbs documentation> +createSVGPathSegArcAbsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement ->+ Float ->+ Float ->+ Float -> Float -> Float -> Bool -> Bool -> m SVGPathSegArcAbs+createSVGPathSegArcAbsUnsafe self x y r1 r2 angle largeArcFlag+ sweepFlag+ = liftDOM+ (((self ^. jsf "createSVGPathSegArcAbs"+ [toJSVal x, toJSVal y, toJSVal r1, toJSVal r2, toJSVal angle,+ toJSVal largeArcFlag, toJSVal sweepFlag])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegArcAbs Mozilla SVGPathElement.createSVGPathSegArcAbs documentation> createSVGPathSegArcAbsUnchecked :: (MonadDOM m) => SVGPathElement ->@@ -477,6 +647,22 @@ toJSVal largeArcFlag, toJSVal sweepFlag])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegArcRel Mozilla SVGPathElement.createSVGPathSegArcRel documentation> +createSVGPathSegArcRelUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement ->+ Float ->+ Float ->+ Float -> Float -> Float -> Bool -> Bool -> m SVGPathSegArcRel+createSVGPathSegArcRelUnsafe self x y r1 r2 angle largeArcFlag+ sweepFlag+ = liftDOM+ (((self ^. jsf "createSVGPathSegArcRel"+ [toJSVal x, toJSVal y, toJSVal r1, toJSVal r2, toJSVal angle,+ toJSVal largeArcFlag, toJSVal sweepFlag])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegArcRel Mozilla SVGPathElement.createSVGPathSegArcRel documentation> createSVGPathSegArcRelUnchecked :: (MonadDOM m) => SVGPathElement ->@@ -511,6 +697,17 @@ (self ^. jsf "createSVGPathSegLinetoHorizontalAbs" [toJSVal x])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegLinetoHorizontalAbs Mozilla SVGPathElement.createSVGPathSegLinetoHorizontalAbs documentation> +createSVGPathSegLinetoHorizontalAbsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement ->+ Float -> m SVGPathSegLinetoHorizontalAbs+createSVGPathSegLinetoHorizontalAbsUnsafe self x+ = liftDOM+ (((self ^. jsf "createSVGPathSegLinetoHorizontalAbs" [toJSVal x])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegLinetoHorizontalAbs Mozilla SVGPathElement.createSVGPathSegLinetoHorizontalAbs documentation> createSVGPathSegLinetoHorizontalAbsUnchecked :: (MonadDOM m) => SVGPathElement ->@@ -539,6 +736,17 @@ (self ^. jsf "createSVGPathSegLinetoHorizontalRel" [toJSVal x])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegLinetoHorizontalRel Mozilla SVGPathElement.createSVGPathSegLinetoHorizontalRel documentation> +createSVGPathSegLinetoHorizontalRelUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement ->+ Float -> m SVGPathSegLinetoHorizontalRel+createSVGPathSegLinetoHorizontalRelUnsafe self x+ = liftDOM+ (((self ^. jsf "createSVGPathSegLinetoHorizontalRel" [toJSVal x])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegLinetoHorizontalRel Mozilla SVGPathElement.createSVGPathSegLinetoHorizontalRel documentation> createSVGPathSegLinetoHorizontalRelUnchecked :: (MonadDOM m) => SVGPathElement ->@@ -566,6 +774,16 @@ (self ^. jsf "createSVGPathSegLinetoVerticalAbs" [toJSVal y])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegLinetoVerticalAbs Mozilla SVGPathElement.createSVGPathSegLinetoVerticalAbs documentation> +createSVGPathSegLinetoVerticalAbsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement -> Float -> m SVGPathSegLinetoVerticalAbs+createSVGPathSegLinetoVerticalAbsUnsafe self y+ = liftDOM+ (((self ^. jsf "createSVGPathSegLinetoVerticalAbs" [toJSVal y]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegLinetoVerticalAbs Mozilla SVGPathElement.createSVGPathSegLinetoVerticalAbs documentation> createSVGPathSegLinetoVerticalAbsUnchecked :: (MonadDOM m) => SVGPathElement ->@@ -593,6 +811,16 @@ (self ^. jsf "createSVGPathSegLinetoVerticalRel" [toJSVal y])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegLinetoVerticalRel Mozilla SVGPathElement.createSVGPathSegLinetoVerticalRel documentation> +createSVGPathSegLinetoVerticalRelUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement -> Float -> m SVGPathSegLinetoVerticalRel+createSVGPathSegLinetoVerticalRelUnsafe self y+ = liftDOM+ (((self ^. jsf "createSVGPathSegLinetoVerticalRel" [toJSVal y]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegLinetoVerticalRel Mozilla SVGPathElement.createSVGPathSegLinetoVerticalRel documentation> createSVGPathSegLinetoVerticalRelUnchecked :: (MonadDOM m) => SVGPathElement ->@@ -627,6 +855,21 @@ [toJSVal x, toJSVal y, toJSVal x2, toJSVal y2])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegCurvetoCubicSmoothAbs Mozilla SVGPathElement.createSVGPathSegCurvetoCubicSmoothAbs documentation> +createSVGPathSegCurvetoCubicSmoothAbsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement ->+ Float ->+ Float ->+ Float ->+ Float -> m SVGPathSegCurvetoCubicSmoothAbs+createSVGPathSegCurvetoCubicSmoothAbsUnsafe self x y x2 y2+ = liftDOM+ (((self ^. jsf "createSVGPathSegCurvetoCubicSmoothAbs"+ [toJSVal x, toJSVal y, toJSVal x2, toJSVal y2])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegCurvetoCubicSmoothAbs Mozilla SVGPathElement.createSVGPathSegCurvetoCubicSmoothAbs documentation> createSVGPathSegCurvetoCubicSmoothAbsUnchecked :: (MonadDOM m) => SVGPathElement ->@@ -665,6 +908,21 @@ [toJSVal x, toJSVal y, toJSVal x2, toJSVal y2])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegCurvetoCubicSmoothRel Mozilla SVGPathElement.createSVGPathSegCurvetoCubicSmoothRel documentation> +createSVGPathSegCurvetoCubicSmoothRelUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement ->+ Float ->+ Float ->+ Float ->+ Float -> m SVGPathSegCurvetoCubicSmoothRel+createSVGPathSegCurvetoCubicSmoothRelUnsafe self x y x2 y2+ = liftDOM+ (((self ^. jsf "createSVGPathSegCurvetoCubicSmoothRel"+ [toJSVal x, toJSVal y, toJSVal x2, toJSVal y2])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegCurvetoCubicSmoothRel Mozilla SVGPathElement.createSVGPathSegCurvetoCubicSmoothRel documentation> createSVGPathSegCurvetoCubicSmoothRelUnchecked :: (MonadDOM m) => SVGPathElement ->@@ -701,6 +959,19 @@ [toJSVal x, toJSVal y])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothAbs Mozilla SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothAbs documentation> +createSVGPathSegCurvetoQuadraticSmoothAbsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement ->+ Float ->+ Float -> m SVGPathSegCurvetoQuadraticSmoothAbs+createSVGPathSegCurvetoQuadraticSmoothAbsUnsafe self x y+ = liftDOM+ (((self ^. jsf "createSVGPathSegCurvetoQuadraticSmoothAbs"+ [toJSVal x, toJSVal y])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothAbs Mozilla SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothAbs documentation> createSVGPathSegCurvetoQuadraticSmoothAbsUnchecked :: (MonadDOM m) => SVGPathElement ->@@ -736,6 +1007,19 @@ [toJSVal x, toJSVal y])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothRel Mozilla SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothRel documentation> +createSVGPathSegCurvetoQuadraticSmoothRelUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement ->+ Float ->+ Float -> m SVGPathSegCurvetoQuadraticSmoothRel+createSVGPathSegCurvetoQuadraticSmoothRelUnsafe self x y+ = liftDOM+ (((self ^. jsf "createSVGPathSegCurvetoQuadraticSmoothRel"+ [toJSVal x, toJSVal y])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothRel Mozilla SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothRel documentation> createSVGPathSegCurvetoQuadraticSmoothRelUnchecked :: (MonadDOM m) => SVGPathElement ->@@ -755,6 +1039,14 @@ = liftDOM ((self ^. js "pathLength") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.pathLength Mozilla SVGPathElement.pathLength documentation> +getPathLengthUnsafe ::+ (MonadDOM m, HasCallStack) => SVGPathElement -> m SVGAnimatedNumber+getPathLengthUnsafe self+ = liftDOM+ (((self ^. js "pathLength") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.pathLength Mozilla SVGPathElement.pathLength documentation> getPathLengthUnchecked :: (MonadDOM m) => SVGPathElement -> m SVGAnimatedNumber getPathLengthUnchecked self@@ -767,6 +1059,14 @@ = liftDOM ((self ^. js "pathSegList") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.pathSegList Mozilla SVGPathElement.pathSegList documentation> +getPathSegListUnsafe ::+ (MonadDOM m, HasCallStack) => SVGPathElement -> m SVGPathSegList+getPathSegListUnsafe self+ = liftDOM+ (((self ^. js "pathSegList") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.pathSegList Mozilla SVGPathElement.pathSegList documentation> getPathSegListUnchecked :: (MonadDOM m) => SVGPathElement -> m SVGPathSegList getPathSegListUnchecked self@@ -779,6 +1079,14 @@ = liftDOM ((self ^. js "normalizedPathSegList") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.normalizedPathSegList Mozilla SVGPathElement.normalizedPathSegList documentation> +getNormalizedPathSegListUnsafe ::+ (MonadDOM m, HasCallStack) => SVGPathElement -> m SVGPathSegList+getNormalizedPathSegListUnsafe self+ = liftDOM+ (((self ^. js "normalizedPathSegList") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.normalizedPathSegList Mozilla SVGPathElement.normalizedPathSegList documentation> getNormalizedPathSegListUnchecked :: (MonadDOM m) => SVGPathElement -> m SVGPathSegList getNormalizedPathSegListUnchecked self@@ -792,6 +1100,14 @@ = liftDOM ((self ^. js "animatedPathSegList") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.animatedPathSegList Mozilla SVGPathElement.animatedPathSegList documentation> +getAnimatedPathSegListUnsafe ::+ (MonadDOM m, HasCallStack) => SVGPathElement -> m SVGPathSegList+getAnimatedPathSegListUnsafe self+ = liftDOM+ (((self ^. js "animatedPathSegList") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.animatedPathSegList Mozilla SVGPathElement.animatedPathSegList documentation> getAnimatedPathSegListUnchecked :: (MonadDOM m) => SVGPathElement -> m SVGPathSegList getAnimatedPathSegListUnchecked self@@ -804,6 +1120,15 @@ getAnimatedNormalizedPathSegList self = liftDOM ((self ^. js "animatedNormalizedPathSegList") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.animatedNormalizedPathSegList Mozilla SVGPathElement.animatedNormalizedPathSegList documentation> +getAnimatedNormalizedPathSegListUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathElement -> m SVGPathSegList+getAnimatedNormalizedPathSegListUnsafe self+ = liftDOM+ (((self ^. js "animatedNormalizedPathSegList") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement.animatedNormalizedPathSegList Mozilla SVGPathElement.animatedNormalizedPathSegList documentation> getAnimatedNormalizedPathSegListUnchecked ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSeg (pattern PATHSEG_UNKNOWN, pattern PATHSEG_CLOSEPATH,@@ -16,10 +19,11 @@ pattern PATHSEG_CURVETO_CUBIC_SMOOTH_REL, pattern PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS, pattern PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL, getPathSegType,- getPathSegTypeAsLetter, SVGPathSeg, castToSVGPathSeg,- gTypeSVGPathSeg, IsSVGPathSeg, toSVGPathSeg)+ getPathSegTypeAsLetter, SVGPathSeg(..), gTypeSVGPathSeg,+ IsSVGPathSeg, toSVGPathSeg) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -30,6 +34,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern PATHSEG_UNKNOWN = 0 pattern PATHSEG_CLOSEPATH = 1 pattern PATHSEG_MOVETO_ABS = 2
@@ -1,12 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSegArcAbs (setX, getX, setY, getY, setR1, getR1, setR2, getR2, setAngle, getAngle, setLargeArcFlag, getLargeArcFlag, setSweepFlag,- getSweepFlag, SVGPathSegArcAbs, castToSVGPathSegArcAbs,- gTypeSVGPathSegArcAbs)+ getSweepFlag, SVGPathSegArcAbs(..), gTypeSVGPathSegArcAbs) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs.x Mozilla SVGPathSegArcAbs.x documentation> setX :: (MonadDOM m) => SVGPathSegArcAbs -> Float -> m ()
@@ -1,12 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSegArcRel (setX, getX, setY, getY, setR1, getR1, setR2, getR2, setAngle, getAngle, setLargeArcFlag, getLargeArcFlag, setSweepFlag,- getSweepFlag, SVGPathSegArcRel, castToSVGPathSegArcRel,- gTypeSVGPathSegArcRel)+ getSweepFlag, SVGPathSegArcRel(..), gTypeSVGPathSegArcRel) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel.x Mozilla SVGPathSegArcRel.x documentation> setX :: (MonadDOM m) => SVGPathSegArcRel -> Float -> m ()
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSegCurvetoCubicAbs (setX, getX, setY, getY, setX1, getX1, setY1, getY1, setX2, getX2,- setY2, getY2, SVGPathSegCurvetoCubicAbs,- castToSVGPathSegCurvetoCubicAbs, gTypeSVGPathSegCurvetoCubicAbs)+ setY2, getY2, SVGPathSegCurvetoCubicAbs(..),+ gTypeSVGPathSegCurvetoCubicAbs) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs.x Mozilla SVGPathSegCurvetoCubicAbs.x documentation> setX :: (MonadDOM m) => SVGPathSegCurvetoCubicAbs -> Float -> m ()
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSegCurvetoCubicRel (setX, getX, setY, getY, setX1, getX1, setY1, getY1, setX2, getX2,- setY2, getY2, SVGPathSegCurvetoCubicRel,- castToSVGPathSegCurvetoCubicRel, gTypeSVGPathSegCurvetoCubicRel)+ setY2, getY2, SVGPathSegCurvetoCubicRel(..),+ gTypeSVGPathSegCurvetoCubicRel) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel.x Mozilla SVGPathSegCurvetoCubicRel.x documentation> setX :: (MonadDOM m) => SVGPathSegCurvetoCubicRel -> Float -> m ()
@@ -1,12 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSegCurvetoCubicSmoothAbs (setX, getX, setY, getY, setX2, getX2, setY2, getY2,- SVGPathSegCurvetoCubicSmoothAbs,- castToSVGPathSegCurvetoCubicSmoothAbs,+ SVGPathSegCurvetoCubicSmoothAbs(..), gTypeSVGPathSegCurvetoCubicSmoothAbs) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs.x Mozilla SVGPathSegCurvetoCubicSmoothAbs.x documentation> setX ::
@@ -1,12 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSegCurvetoCubicSmoothRel (setX, getX, setY, getY, setX2, getX2, setY2, getY2,- SVGPathSegCurvetoCubicSmoothRel,- castToSVGPathSegCurvetoCubicSmoothRel,+ SVGPathSegCurvetoCubicSmoothRel(..), gTypeSVGPathSegCurvetoCubicSmoothRel) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel.x Mozilla SVGPathSegCurvetoCubicSmoothRel.x documentation> setX ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSegCurvetoQuadraticAbs (setX, getX, setY, getY, setX1, getX1, setY1, getY1,- SVGPathSegCurvetoQuadraticAbs, castToSVGPathSegCurvetoQuadraticAbs,+ SVGPathSegCurvetoQuadraticAbs(..), gTypeSVGPathSegCurvetoQuadraticAbs) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs.x Mozilla SVGPathSegCurvetoQuadraticAbs.x documentation> setX ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSegCurvetoQuadraticRel (setX, getX, setY, getY, setX1, getX1, setY1, getY1,- SVGPathSegCurvetoQuadraticRel, castToSVGPathSegCurvetoQuadraticRel,+ SVGPathSegCurvetoQuadraticRel(..), gTypeSVGPathSegCurvetoQuadraticRel) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel.x Mozilla SVGPathSegCurvetoQuadraticRel.x documentation> setX ::
@@ -1,11 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSegCurvetoQuadraticSmoothAbs- (setX, getX, setY, getY, SVGPathSegCurvetoQuadraticSmoothAbs,- castToSVGPathSegCurvetoQuadraticSmoothAbs,+ (setX, getX, setY, getY, SVGPathSegCurvetoQuadraticSmoothAbs(..), gTypeSVGPathSegCurvetoQuadraticSmoothAbs) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothAbs.x Mozilla SVGPathSegCurvetoQuadraticSmoothAbs.x documentation> setX ::
@@ -1,11 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSegCurvetoQuadraticSmoothRel- (setX, getX, setY, getY, SVGPathSegCurvetoQuadraticSmoothRel,- castToSVGPathSegCurvetoQuadraticSmoothRel,+ (setX, getX, setY, getY, SVGPathSegCurvetoQuadraticSmoothRel(..), gTypeSVGPathSegCurvetoQuadraticSmoothRel) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothRel.x Mozilla SVGPathSegCurvetoQuadraticSmoothRel.x documentation> setX ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSegLinetoAbs- (setX, getX, setY, getY, SVGPathSegLinetoAbs,- castToSVGPathSegLinetoAbs, gTypeSVGPathSegLinetoAbs)+ (setX, getX, setY, getY, SVGPathSegLinetoAbs(..),+ gTypeSVGPathSegLinetoAbs) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoAbs.x Mozilla SVGPathSegLinetoAbs.x documentation> setX :: (MonadDOM m) => SVGPathSegLinetoAbs -> Float -> m ()
@@ -1,11 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSegLinetoHorizontalAbs- (setX, getX, SVGPathSegLinetoHorizontalAbs,- castToSVGPathSegLinetoHorizontalAbs,+ (setX, getX, SVGPathSegLinetoHorizontalAbs(..), gTypeSVGPathSegLinetoHorizontalAbs) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoHorizontalAbs.x Mozilla SVGPathSegLinetoHorizontalAbs.x documentation> setX ::
@@ -1,11 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSegLinetoHorizontalRel- (setX, getX, SVGPathSegLinetoHorizontalRel,- castToSVGPathSegLinetoHorizontalRel,+ (setX, getX, SVGPathSegLinetoHorizontalRel(..), gTypeSVGPathSegLinetoHorizontalRel) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoHorizontalRel.x Mozilla SVGPathSegLinetoHorizontalRel.x documentation> setX ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSegLinetoRel- (setX, getX, setY, getY, SVGPathSegLinetoRel,- castToSVGPathSegLinetoRel, gTypeSVGPathSegLinetoRel)+ (setX, getX, setY, getY, SVGPathSegLinetoRel(..),+ gTypeSVGPathSegLinetoRel) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoRel.x Mozilla SVGPathSegLinetoRel.x documentation> setX :: (MonadDOM m) => SVGPathSegLinetoRel -> Float -> m ()
@@ -1,11 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSegLinetoVerticalAbs- (setY, getY, SVGPathSegLinetoVerticalAbs,- castToSVGPathSegLinetoVerticalAbs,+ (setY, getY, SVGPathSegLinetoVerticalAbs(..), gTypeSVGPathSegLinetoVerticalAbs) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoVerticalAbs.y Mozilla SVGPathSegLinetoVerticalAbs.y documentation> setY ::
@@ -1,11 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSegLinetoVerticalRel- (setY, getY, SVGPathSegLinetoVerticalRel,- castToSVGPathSegLinetoVerticalRel,+ (setY, getY, SVGPathSegLinetoVerticalRel(..), gTypeSVGPathSegLinetoVerticalRel) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoVerticalRel.y Mozilla SVGPathSegLinetoVerticalRel.y documentation> setY ::
@@ -1,14 +1,20 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSegList- (clear, initialize, initialize_, initializeUnchecked, getItem,- getItem_, getItemUnchecked, insertItemBefore, insertItemBefore_,- insertItemBeforeUnchecked, replaceItem, replaceItem_,- replaceItemUnchecked, removeItem, removeItem_, removeItemUnchecked,- appendItem, appendItem_, appendItemUnchecked, getNumberOfItems,- SVGPathSegList, castToSVGPathSegList, gTypeSVGPathSegList)+ (clear, initialize, initialize_, initializeUnsafe,+ initializeUnchecked, getItem, getItem_, getItemUnsafe,+ getItemUnchecked, insertItemBefore, insertItemBefore_,+ insertItemBeforeUnsafe, insertItemBeforeUnchecked, replaceItem,+ replaceItem_, replaceItemUnsafe, replaceItemUnchecked, removeItem,+ removeItem_, removeItemUnsafe, removeItemUnchecked, appendItem,+ appendItem_, appendItemUnsafe, appendItemUnchecked,+ getNumberOfItems, SVGPathSegList(..), gTypeSVGPathSegList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +25,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList.clear Mozilla SVGPathSegList.clear documentation> clear :: (MonadDOM m) => SVGPathSegList -> m ()@@ -40,6 +56,15 @@ = liftDOM (void (self ^. jsf "initialize" [toJSVal newItem])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList.initialize Mozilla SVGPathSegList.initialize documentation> +initializeUnsafe ::+ (MonadDOM m, IsSVGPathSeg newItem, HasCallStack) =>+ SVGPathSegList -> Maybe newItem -> m SVGPathSeg+initializeUnsafe self newItem+ = liftDOM+ (((self ^. jsf "initialize" [toJSVal newItem]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList.initialize Mozilla SVGPathSegList.initialize documentation> initializeUnchecked :: (MonadDOM m, IsSVGPathSeg newItem) => SVGPathSegList -> Maybe newItem -> m SVGPathSeg@@ -60,6 +85,15 @@ = liftDOM (void (self ^. jsf "getItem" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList.getItem Mozilla SVGPathSegList.getItem documentation> +getItemUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathSegList -> Word -> m SVGPathSeg+getItemUnsafe self index+ = liftDOM+ (((self ^. jsf "getItem" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList.getItem Mozilla SVGPathSegList.getItem documentation> getItemUnchecked :: (MonadDOM m) => SVGPathSegList -> Word -> m SVGPathSeg getItemUnchecked self index@@ -85,6 +119,16 @@ (self ^. jsf "insertItemBefore" [toJSVal newItem, toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList.insertItemBefore Mozilla SVGPathSegList.insertItemBefore documentation> +insertItemBeforeUnsafe ::+ (MonadDOM m, IsSVGPathSeg newItem, HasCallStack) =>+ SVGPathSegList -> Maybe newItem -> Word -> m SVGPathSeg+insertItemBeforeUnsafe self newItem index+ = liftDOM+ (((self ^. jsf "insertItemBefore" [toJSVal newItem, toJSVal index])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList.insertItemBefore Mozilla SVGPathSegList.insertItemBefore documentation> insertItemBeforeUnchecked :: (MonadDOM m, IsSVGPathSeg newItem) => SVGPathSegList -> Maybe newItem -> Word -> m SVGPathSeg@@ -111,6 +155,16 @@ (void (self ^. jsf "replaceItem" [toJSVal newItem, toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList.replaceItem Mozilla SVGPathSegList.replaceItem documentation> +replaceItemUnsafe ::+ (MonadDOM m, IsSVGPathSeg newItem, HasCallStack) =>+ SVGPathSegList -> Maybe newItem -> Word -> m SVGPathSeg+replaceItemUnsafe self newItem index+ = liftDOM+ (((self ^. jsf "replaceItem" [toJSVal newItem, toJSVal index]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList.replaceItem Mozilla SVGPathSegList.replaceItem documentation> replaceItemUnchecked :: (MonadDOM m, IsSVGPathSeg newItem) => SVGPathSegList -> Maybe newItem -> Word -> m SVGPathSeg@@ -132,6 +186,15 @@ = liftDOM (void (self ^. jsf "removeItem" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList.removeItem Mozilla SVGPathSegList.removeItem documentation> +removeItemUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPathSegList -> Word -> m SVGPathSeg+removeItemUnsafe self index+ = liftDOM+ (((self ^. jsf "removeItem" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList.removeItem Mozilla SVGPathSegList.removeItem documentation> removeItemUnchecked :: (MonadDOM m) => SVGPathSegList -> Word -> m SVGPathSeg removeItemUnchecked self index@@ -152,6 +215,15 @@ SVGPathSegList -> Maybe newItem -> m () appendItem_ self newItem = liftDOM (void (self ^. jsf "appendItem" [toJSVal newItem]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList.appendItem Mozilla SVGPathSegList.appendItem documentation> +appendItemUnsafe ::+ (MonadDOM m, IsSVGPathSeg newItem, HasCallStack) =>+ SVGPathSegList -> Maybe newItem -> m SVGPathSeg+appendItemUnsafe self newItem+ = liftDOM+ (((self ^. jsf "appendItem" [toJSVal newItem]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList.appendItem Mozilla SVGPathSegList.appendItem documentation> appendItemUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSegMovetoAbs- (setX, getX, setY, getY, SVGPathSegMovetoAbs,- castToSVGPathSegMovetoAbs, gTypeSVGPathSegMovetoAbs)+ (setX, getX, setY, getY, SVGPathSegMovetoAbs(..),+ gTypeSVGPathSegMovetoAbs) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoAbs.x Mozilla SVGPathSegMovetoAbs.x documentation> setX :: (MonadDOM m) => SVGPathSegMovetoAbs -> Float -> m ()
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPathSegMovetoRel- (setX, getX, setY, getY, SVGPathSegMovetoRel,- castToSVGPathSegMovetoRel, gTypeSVGPathSegMovetoRel)+ (setX, getX, setY, getY, SVGPathSegMovetoRel(..),+ gTypeSVGPathSegMovetoRel) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoRel.x Mozilla SVGPathSegMovetoRel.x documentation> setX :: (MonadDOM m) => SVGPathSegMovetoRel -> Float -> m ()
@@ -1,14 +1,20 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPatternElement- (getPatternUnits, getPatternUnitsUnchecked, getPatternContentUnits,+ (getPatternUnits, getPatternUnitsUnsafe, getPatternUnitsUnchecked,+ getPatternContentUnits, getPatternContentUnitsUnsafe, getPatternContentUnitsUnchecked, getPatternTransform,- getPatternTransformUnchecked, getX, getXUnchecked, getY,- getYUnchecked, getWidth, getWidthUnchecked, getHeight,- getHeightUnchecked, SVGPatternElement, castToSVGPatternElement,+ getPatternTransformUnsafe, getPatternTransformUnchecked, getX,+ getXUnsafe, getXUnchecked, getY, getYUnsafe, getYUnchecked,+ getWidth, getWidthUnsafe, getWidthUnchecked, getHeight,+ getHeightUnsafe, getHeightUnchecked, SVGPatternElement(..), gTypeSVGPatternElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +25,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement.patternUnits Mozilla SVGPatternElement.patternUnits documentation> getPatternUnits ::@@ -28,6 +44,15 @@ = liftDOM ((self ^. js "patternUnits") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement.patternUnits Mozilla SVGPatternElement.patternUnits documentation> +getPatternUnitsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPatternElement -> m SVGAnimatedEnumeration+getPatternUnitsUnsafe self+ = liftDOM+ (((self ^. js "patternUnits") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement.patternUnits Mozilla SVGPatternElement.patternUnits documentation> getPatternUnitsUnchecked :: (MonadDOM m) => SVGPatternElement -> m SVGAnimatedEnumeration getPatternUnitsUnchecked self@@ -41,6 +66,15 @@ = liftDOM ((self ^. js "patternContentUnits") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement.patternContentUnits Mozilla SVGPatternElement.patternContentUnits documentation> +getPatternContentUnitsUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPatternElement -> m SVGAnimatedEnumeration+getPatternContentUnitsUnsafe self+ = liftDOM+ (((self ^. js "patternContentUnits") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement.patternContentUnits Mozilla SVGPatternElement.patternContentUnits documentation> getPatternContentUnitsUnchecked :: (MonadDOM m) => SVGPatternElement -> m SVGAnimatedEnumeration getPatternContentUnitsUnchecked self@@ -55,6 +89,15 @@ = liftDOM ((self ^. js "patternTransform") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement.patternTransform Mozilla SVGPatternElement.patternTransform documentation> +getPatternTransformUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPatternElement -> m SVGAnimatedTransformList+getPatternTransformUnsafe self+ = liftDOM+ (((self ^. js "patternTransform") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement.patternTransform Mozilla SVGPatternElement.patternTransform documentation> getPatternTransformUnchecked :: (MonadDOM m) => SVGPatternElement -> m SVGAnimatedTransformList getPatternTransformUnchecked self@@ -66,6 +109,15 @@ getX self = liftDOM ((self ^. js "x") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement.x Mozilla SVGPatternElement.x documentation> +getXUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPatternElement -> m SVGAnimatedLength+getXUnsafe self+ = liftDOM+ (((self ^. js "x") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement.x Mozilla SVGPatternElement.x documentation> getXUnchecked :: (MonadDOM m) => SVGPatternElement -> m SVGAnimatedLength getXUnchecked self@@ -77,6 +129,15 @@ getY self = liftDOM ((self ^. js "y") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement.y Mozilla SVGPatternElement.y documentation> +getYUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPatternElement -> m SVGAnimatedLength+getYUnsafe self+ = liftDOM+ (((self ^. js "y") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement.y Mozilla SVGPatternElement.y documentation> getYUnchecked :: (MonadDOM m) => SVGPatternElement -> m SVGAnimatedLength getYUnchecked self@@ -88,6 +149,15 @@ getWidth self = liftDOM ((self ^. js "width") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement.width Mozilla SVGPatternElement.width documentation> +getWidthUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPatternElement -> m SVGAnimatedLength+getWidthUnsafe self+ = liftDOM+ (((self ^. js "width") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement.width Mozilla SVGPatternElement.width documentation> getWidthUnchecked :: (MonadDOM m) => SVGPatternElement -> m SVGAnimatedLength getWidthUnchecked self@@ -97,6 +167,15 @@ getHeight :: (MonadDOM m) => SVGPatternElement -> m (Maybe SVGAnimatedLength) getHeight self = liftDOM ((self ^. js "height") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement.height Mozilla SVGPatternElement.height documentation> +getHeightUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPatternElement -> m SVGAnimatedLength+getHeightUnsafe self+ = liftDOM+ (((self ^. js "height") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement.height Mozilla SVGPatternElement.height documentation> getHeightUnchecked ::
@@ -1,10 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPoint- (matrixTransform, matrixTransform_, matrixTransformUnchecked, setX,- getX, setY, getY, SVGPoint, castToSVGPoint, gTypeSVGPoint)+ (matrixTransform, matrixTransform_, matrixTransformUnsafe,+ matrixTransformUnchecked, setX, getX, setY, getY, SVGPoint(..),+ gTypeSVGPoint) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint.matrixTransform Mozilla SVGPoint.matrixTransform documentation> matrixTransform ::@@ -28,6 +43,15 @@ (MonadDOM m) => SVGPoint -> Maybe SVGMatrix -> m () matrixTransform_ self matrix = liftDOM (void (self ^. jsf "matrixTransform" [toJSVal matrix]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint.matrixTransform Mozilla SVGPoint.matrixTransform documentation> +matrixTransformUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPoint -> Maybe SVGMatrix -> m SVGPoint+matrixTransformUnsafe self matrix+ = liftDOM+ (((self ^. jsf "matrixTransform" [toJSVal matrix]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint.matrixTransform Mozilla SVGPoint.matrixTransform documentation> matrixTransformUnchecked ::
@@ -1,14 +1,20 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPointList- (clear, initialize, initialize_, initializeUnchecked, getItem,- getItem_, getItemUnchecked, insertItemBefore, insertItemBefore_,- insertItemBeforeUnchecked, replaceItem, replaceItem_,- replaceItemUnchecked, removeItem, removeItem_, removeItemUnchecked,- appendItem, appendItem_, appendItemUnchecked, getNumberOfItems,- SVGPointList, castToSVGPointList, gTypeSVGPointList)+ (clear, initialize, initialize_, initializeUnsafe,+ initializeUnchecked, getItem, getItem_, getItemUnsafe,+ getItemUnchecked, insertItemBefore, insertItemBefore_,+ insertItemBeforeUnsafe, insertItemBeforeUnchecked, replaceItem,+ replaceItem_, replaceItemUnsafe, replaceItemUnchecked, removeItem,+ removeItem_, removeItemUnsafe, removeItemUnchecked, appendItem,+ appendItem_, appendItemUnsafe, appendItemUnchecked,+ getNumberOfItems, SVGPointList(..), gTypeSVGPointList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +25,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList.clear Mozilla SVGPointList.clear documentation> clear :: (MonadDOM m) => SVGPointList -> m ()@@ -38,6 +54,15 @@ = liftDOM (void (self ^. jsf "initialize" [toJSVal item])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList.initialize Mozilla SVGPointList.initialize documentation> +initializeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPointList -> Maybe SVGPoint -> m SVGPoint+initializeUnsafe self item+ = liftDOM+ (((self ^. jsf "initialize" [toJSVal item]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList.initialize Mozilla SVGPointList.initialize documentation> initializeUnchecked :: (MonadDOM m) => SVGPointList -> Maybe SVGPoint -> m SVGPoint initializeUnchecked self item@@ -56,6 +81,14 @@ = liftDOM (void (self ^. jsf "getItem" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList.getItem Mozilla SVGPointList.getItem documentation> +getItemUnsafe ::+ (MonadDOM m, HasCallStack) => SVGPointList -> Word -> m SVGPoint+getItemUnsafe self index+ = liftDOM+ (((self ^. jsf "getItem" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList.getItem Mozilla SVGPointList.getItem documentation> getItemUnchecked :: (MonadDOM m) => SVGPointList -> Word -> m SVGPoint getItemUnchecked self index@@ -80,6 +113,16 @@ (self ^. jsf "insertItemBefore" [toJSVal item, toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList.insertItemBefore Mozilla SVGPointList.insertItemBefore documentation> +insertItemBeforeUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPointList -> Maybe SVGPoint -> Word -> m SVGPoint+insertItemBeforeUnsafe self item index+ = liftDOM+ (((self ^. jsf "insertItemBefore" [toJSVal item, toJSVal index])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList.insertItemBefore Mozilla SVGPointList.insertItemBefore documentation> insertItemBeforeUnchecked :: (MonadDOM m) => SVGPointList -> Maybe SVGPoint -> Word -> m SVGPoint@@ -105,6 +148,16 @@ (void (self ^. jsf "replaceItem" [toJSVal item, toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList.replaceItem Mozilla SVGPointList.replaceItem documentation> +replaceItemUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPointList -> Maybe SVGPoint -> Word -> m SVGPoint+replaceItemUnsafe self item index+ = liftDOM+ (((self ^. jsf "replaceItem" [toJSVal item, toJSVal index]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList.replaceItem Mozilla SVGPointList.replaceItem documentation> replaceItemUnchecked :: (MonadDOM m) => SVGPointList -> Maybe SVGPoint -> Word -> m SVGPoint@@ -126,6 +179,14 @@ = liftDOM (void (self ^. jsf "removeItem" [toJSVal index])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList.removeItem Mozilla SVGPointList.removeItem documentation> +removeItemUnsafe ::+ (MonadDOM m, HasCallStack) => SVGPointList -> Word -> m SVGPoint+removeItemUnsafe self index+ = liftDOM+ (((self ^. jsf "removeItem" [toJSVal index]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList.removeItem Mozilla SVGPointList.removeItem documentation> removeItemUnchecked :: (MonadDOM m) => SVGPointList -> Word -> m SVGPoint removeItemUnchecked self index@@ -144,6 +205,15 @@ (MonadDOM m) => SVGPointList -> Maybe SVGPoint -> m () appendItem_ self item = liftDOM (void (self ^. jsf "appendItem" [toJSVal item]))++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList.appendItem Mozilla SVGPointList.appendItem documentation> +appendItemUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGPointList -> Maybe SVGPoint -> m SVGPoint+appendItemUnsafe self item+ = liftDOM+ (((self ^. jsf "appendItem" [toJSVal item]) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList.appendItem Mozilla SVGPointList.appendItem documentation> appendItemUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPolygonElement- (getPoints, getPointsUnchecked, getAnimatedPoints,- getAnimatedPointsUnchecked, SVGPolygonElement,- castToSVGPolygonElement, gTypeSVGPolygonElement)+ (getPoints, getPointsUnsafe, getPointsUnchecked, getAnimatedPoints,+ getAnimatedPointsUnsafe, getAnimatedPointsUnchecked,+ SVGPolygonElement(..), gTypeSVGPolygonElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPolygonElement.points Mozilla SVGPolygonElement.points documentation> getPoints ::@@ -23,6 +37,14 @@ getPoints self = liftDOM ((self ^. js "points") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPolygonElement.points Mozilla SVGPolygonElement.points documentation> +getPointsUnsafe ::+ (MonadDOM m, HasCallStack) => SVGPolygonElement -> m SVGPointList+getPointsUnsafe self+ = liftDOM+ (((self ^. js "points") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPolygonElement.points Mozilla SVGPolygonElement.points documentation> getPointsUnchecked :: (MonadDOM m) => SVGPolygonElement -> m SVGPointList getPointsUnchecked self@@ -33,6 +55,14 @@ (MonadDOM m) => SVGPolygonElement -> m (Maybe SVGPointList) getAnimatedPoints self = liftDOM ((self ^. js "animatedPoints") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPolygonElement.animatedPoints Mozilla SVGPolygonElement.animatedPoints documentation> +getAnimatedPointsUnsafe ::+ (MonadDOM m, HasCallStack) => SVGPolygonElement -> m SVGPointList+getAnimatedPointsUnsafe self+ = liftDOM+ (((self ^. js "animatedPoints") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPolygonElement.animatedPoints Mozilla SVGPolygonElement.animatedPoints documentation> getAnimatedPointsUnchecked ::
@@ -1,11 +1,15 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPolylineElement- (getPoints, getPointsUnchecked, getAnimatedPoints,- getAnimatedPointsUnchecked, SVGPolylineElement,- castToSVGPolylineElement, gTypeSVGPolylineElement)+ (getPoints, getPointsUnsafe, getPointsUnchecked, getAnimatedPoints,+ getAnimatedPointsUnsafe, getAnimatedPointsUnchecked,+ SVGPolylineElement(..), gTypeSVGPolylineElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -16,6 +20,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPolylineElement.points Mozilla SVGPolylineElement.points documentation> getPoints ::@@ -23,6 +37,14 @@ getPoints self = liftDOM ((self ^. js "points") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPolylineElement.points Mozilla SVGPolylineElement.points documentation> +getPointsUnsafe ::+ (MonadDOM m, HasCallStack) => SVGPolylineElement -> m SVGPointList+getPointsUnsafe self+ = liftDOM+ (((self ^. js "points") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPolylineElement.points Mozilla SVGPolylineElement.points documentation> getPointsUnchecked :: (MonadDOM m) => SVGPolylineElement -> m SVGPointList getPointsUnchecked self@@ -33,6 +55,14 @@ (MonadDOM m) => SVGPolylineElement -> m (Maybe SVGPointList) getAnimatedPoints self = liftDOM ((self ^. js "animatedPoints") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPolylineElement.animatedPoints Mozilla SVGPolylineElement.animatedPoints documentation> +getAnimatedPointsUnsafe ::+ (MonadDOM m, HasCallStack) => SVGPolylineElement -> m SVGPointList+getAnimatedPointsUnsafe self+ = liftDOM+ (((self ^. js "animatedPoints") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPolylineElement.animatedPoints Mozilla SVGPolylineElement.animatedPoints documentation> getAnimatedPointsUnchecked ::
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGPreserveAspectRatio (pattern SVG_PRESERVEASPECTRATIO_UNKNOWN,@@ -14,10 +17,11 @@ pattern SVG_PRESERVEASPECTRATIO_XMAXYMAX, pattern SVG_MEETORSLICE_UNKNOWN, pattern SVG_MEETORSLICE_MEET, pattern SVG_MEETORSLICE_SLICE, setAlign, getAlign, setMeetOrSlice,- getMeetOrSlice, SVGPreserveAspectRatio,- castToSVGPreserveAspectRatio, gTypeSVGPreserveAspectRatio)+ getMeetOrSlice, SVGPreserveAspectRatio(..),+ gTypeSVGPreserveAspectRatio) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -28,6 +32,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern SVG_PRESERVEASPECTRATIO_UNKNOWN = 0 pattern SVG_PRESERVEASPECTRATIO_NONE = 1 pattern SVG_PRESERVEASPECTRATIO_XMINYMIN = 2
@@ -1,12 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGRadialGradientElement- (getCx, getCxUnchecked, getCy, getCyUnchecked, getR, getRUnchecked,- getFx, getFxUnchecked, getFy, getFyUnchecked, getFr,- getFrUnchecked, SVGRadialGradientElement,- castToSVGRadialGradientElement, gTypeSVGRadialGradientElement)+ (getCx, getCxUnsafe, getCxUnchecked, getCy, getCyUnsafe,+ getCyUnchecked, getR, getRUnsafe, getRUnchecked, getFx,+ getFxUnsafe, getFxUnchecked, getFy, getFyUnsafe, getFyUnchecked,+ getFr, getFrUnsafe, getFrUnchecked, SVGRadialGradientElement(..),+ gTypeSVGRadialGradientElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement.cx Mozilla SVGRadialGradientElement.cx documentation> getCx ::@@ -25,6 +40,15 @@ getCx self = liftDOM ((self ^. js "cx") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement.cx Mozilla SVGRadialGradientElement.cx documentation> +getCxUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGRadialGradientElement -> m SVGAnimatedLength+getCxUnsafe self+ = liftDOM+ (((self ^. js "cx") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement.cx Mozilla SVGRadialGradientElement.cx documentation> getCxUnchecked :: (MonadDOM m) => SVGRadialGradientElement -> m SVGAnimatedLength getCxUnchecked self@@ -37,6 +61,15 @@ getCy self = liftDOM ((self ^. js "cy") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement.cy Mozilla SVGRadialGradientElement.cy documentation> +getCyUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGRadialGradientElement -> m SVGAnimatedLength+getCyUnsafe self+ = liftDOM+ (((self ^. js "cy") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement.cy Mozilla SVGRadialGradientElement.cy documentation> getCyUnchecked :: (MonadDOM m) => SVGRadialGradientElement -> m SVGAnimatedLength getCyUnchecked self@@ -49,6 +82,15 @@ getR self = liftDOM ((self ^. js "r") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement.r Mozilla SVGRadialGradientElement.r documentation> +getRUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGRadialGradientElement -> m SVGAnimatedLength+getRUnsafe self+ = liftDOM+ (((self ^. js "r") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement.r Mozilla SVGRadialGradientElement.r documentation> getRUnchecked :: (MonadDOM m) => SVGRadialGradientElement -> m SVGAnimatedLength getRUnchecked self@@ -61,6 +103,15 @@ getFx self = liftDOM ((self ^. js "fx") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement.fx Mozilla SVGRadialGradientElement.fx documentation> +getFxUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGRadialGradientElement -> m SVGAnimatedLength+getFxUnsafe self+ = liftDOM+ (((self ^. js "fx") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement.fx Mozilla SVGRadialGradientElement.fx documentation> getFxUnchecked :: (MonadDOM m) => SVGRadialGradientElement -> m SVGAnimatedLength getFxUnchecked self@@ -73,6 +124,15 @@ getFy self = liftDOM ((self ^. js "fy") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement.fy Mozilla SVGRadialGradientElement.fy documentation> +getFyUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGRadialGradientElement -> m SVGAnimatedLength+getFyUnsafe self+ = liftDOM+ (((self ^. js "fy") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement.fy Mozilla SVGRadialGradientElement.fy documentation> getFyUnchecked :: (MonadDOM m) => SVGRadialGradientElement -> m SVGAnimatedLength getFyUnchecked self@@ -83,6 +143,15 @@ (MonadDOM m) => SVGRadialGradientElement -> m (Maybe SVGAnimatedLength) getFr self = liftDOM ((self ^. js "fr") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement.fr Mozilla SVGRadialGradientElement.fr documentation> +getFrUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGRadialGradientElement -> m SVGAnimatedLength+getFrUnsafe self+ = liftDOM+ (((self ^. js "fr") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement.fr Mozilla SVGRadialGradientElement.fr documentation> getFrUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGRect (setX, getX, setY, getY, setWidth, getWidth, setHeight, getHeight,- SVGRect, castToSVGRect, gTypeSVGRect)+ SVGRect(..), gTypeSVGRect) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRect.x Mozilla SVGRect.x documentation> setX :: (MonadDOM m) => SVGRect -> Float -> m ()
@@ -1,12 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGRectElement- (getX, getXUnchecked, getY, getYUnchecked, getWidth,- getWidthUnchecked, getHeight, getHeightUnchecked, getRx,- getRxUnchecked, getRy, getRyUnchecked, SVGRectElement,- castToSVGRectElement, gTypeSVGRectElement)+ (getX, getXUnsafe, getXUnchecked, getY, getYUnsafe, getYUnchecked,+ getWidth, getWidthUnsafe, getWidthUnchecked, getHeight,+ getHeightUnsafe, getHeightUnchecked, getRx, getRxUnsafe,+ getRxUnchecked, getRy, getRyUnsafe, getRyUnchecked,+ SVGRectElement(..), gTypeSVGRectElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -17,6 +22,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement.x Mozilla SVGRectElement.x documentation> getX ::@@ -24,6 +39,14 @@ getX self = liftDOM ((self ^. js "x") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement.x Mozilla SVGRectElement.x documentation> +getXUnsafe ::+ (MonadDOM m, HasCallStack) => SVGRectElement -> m SVGAnimatedLength+getXUnsafe self+ = liftDOM+ (((self ^. js "x") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement.x Mozilla SVGRectElement.x documentation> getXUnchecked :: (MonadDOM m) => SVGRectElement -> m SVGAnimatedLength getXUnchecked self@@ -35,6 +58,14 @@ getY self = liftDOM ((self ^. js "y") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement.y Mozilla SVGRectElement.y documentation> +getYUnsafe ::+ (MonadDOM m, HasCallStack) => SVGRectElement -> m SVGAnimatedLength+getYUnsafe self+ = liftDOM+ (((self ^. js "y") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement.y Mozilla SVGRectElement.y documentation> getYUnchecked :: (MonadDOM m) => SVGRectElement -> m SVGAnimatedLength getYUnchecked self@@ -46,6 +77,14 @@ getWidth self = liftDOM ((self ^. js "width") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement.width Mozilla SVGRectElement.width documentation> +getWidthUnsafe ::+ (MonadDOM m, HasCallStack) => SVGRectElement -> m SVGAnimatedLength+getWidthUnsafe self+ = liftDOM+ (((self ^. js "width") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement.width Mozilla SVGRectElement.width documentation> getWidthUnchecked :: (MonadDOM m) => SVGRectElement -> m SVGAnimatedLength getWidthUnchecked self@@ -57,6 +96,14 @@ getHeight self = liftDOM ((self ^. js "height") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement.height Mozilla SVGRectElement.height documentation> +getHeightUnsafe ::+ (MonadDOM m, HasCallStack) => SVGRectElement -> m SVGAnimatedLength+getHeightUnsafe self+ = liftDOM+ (((self ^. js "height") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement.height Mozilla SVGRectElement.height documentation> getHeightUnchecked :: (MonadDOM m) => SVGRectElement -> m SVGAnimatedLength getHeightUnchecked self@@ -68,6 +115,14 @@ getRx self = liftDOM ((self ^. js "rx") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement.rx Mozilla SVGRectElement.rx documentation> +getRxUnsafe ::+ (MonadDOM m, HasCallStack) => SVGRectElement -> m SVGAnimatedLength+getRxUnsafe self+ = liftDOM+ (((self ^. js "rx") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement.rx Mozilla SVGRectElement.rx documentation> getRxUnchecked :: (MonadDOM m) => SVGRectElement -> m SVGAnimatedLength getRxUnchecked self@@ -77,6 +132,14 @@ getRy :: (MonadDOM m) => SVGRectElement -> m (Maybe SVGAnimatedLength) getRy self = liftDOM ((self ^. js "ry") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement.ry Mozilla SVGRectElement.ry documentation> +getRyUnsafe ::+ (MonadDOM m, HasCallStack) => SVGRectElement -> m SVGAnimatedLength+getRyUnsafe self+ = liftDOM+ (((self ^. js "ry") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement.ry Mozilla SVGRectElement.ry documentation> getRyUnchecked ::
@@ -1,14 +1,18 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGRenderingIntent (pattern RENDERING_INTENT_UNKNOWN, pattern RENDERING_INTENT_AUTO, pattern RENDERING_INTENT_PERCEPTUAL, pattern RENDERING_INTENT_RELATIVE_COLORIMETRIC, pattern RENDERING_INTENT_SATURATION,- pattern RENDERING_INTENT_ABSOLUTE_COLORIMETRIC, SVGRenderingIntent,- castToSVGRenderingIntent, gTypeSVGRenderingIntent)+ pattern RENDERING_INTENT_ABSOLUTE_COLORIMETRIC,+ SVGRenderingIntent(..), gTypeSVGRenderingIntent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -19,6 +23,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif pattern RENDERING_INTENT_UNKNOWN = 0 pattern RENDERING_INTENT_AUTO = 1 pattern RENDERING_INTENT_PERCEPTUAL = 2
@@ -1,4 +1,7 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGSVGElement (suspendRedraw, suspendRedraw_, unsuspendRedraw,@@ -6,30 +9,38 @@ unpauseAnimations, animationsPaused, animationsPaused_, getCurrentTime, getCurrentTime_, setCurrentTime, getIntersectionList, getIntersectionList_,- getIntersectionListUnchecked, getEnclosureList, getEnclosureList_,+ getIntersectionListUnsafe, getIntersectionListUnchecked,+ getEnclosureList, getEnclosureList_, getEnclosureListUnsafe, getEnclosureListUnchecked, checkIntersection, checkIntersection_, checkEnclosure, checkEnclosure_, deselectAll, createSVGNumber,- createSVGNumber_, createSVGNumberUnchecked, createSVGLength,- createSVGLength_, createSVGLengthUnchecked, createSVGAngle,- createSVGAngle_, createSVGAngleUnchecked, createSVGPoint,- createSVGPoint_, createSVGPointUnchecked, createSVGMatrix,- createSVGMatrix_, createSVGMatrixUnchecked, createSVGRect,- createSVGRect_, createSVGRectUnchecked, createSVGTransform,- createSVGTransform_, createSVGTransformUnchecked,- createSVGTransformFromMatrix, createSVGTransformFromMatrix_,+ createSVGNumber_, createSVGNumberUnsafe, createSVGNumberUnchecked,+ createSVGLength, createSVGLength_, createSVGLengthUnsafe,+ createSVGLengthUnchecked, createSVGAngle, createSVGAngle_,+ createSVGAngleUnsafe, createSVGAngleUnchecked, createSVGPoint,+ createSVGPoint_, createSVGPointUnsafe, createSVGPointUnchecked,+ createSVGMatrix, createSVGMatrix_, createSVGMatrixUnsafe,+ createSVGMatrixUnchecked, createSVGRect, createSVGRect_,+ createSVGRectUnsafe, createSVGRectUnchecked, createSVGTransform,+ createSVGTransform_, createSVGTransformUnsafe,+ createSVGTransformUnchecked, createSVGTransformFromMatrix,+ createSVGTransformFromMatrix_, createSVGTransformFromMatrixUnsafe, createSVGTransformFromMatrixUnchecked, getElementById,- getElementById_, getElementByIdUnchecked, getX, getXUnchecked,- getY, getYUnchecked, getWidth, getWidthUnchecked, getHeight,- getHeightUnchecked, setContentScriptType, getContentScriptType,- setContentStyleType, getContentStyleType, getViewport,- getViewportUnchecked, getPixelUnitToMillimeterX,- getPixelUnitToMillimeterY, getScreenPixelToMillimeterX,- getScreenPixelToMillimeterY, getUseCurrentView, getCurrentView,+ getElementById_, getElementByIdUnsafe, getElementByIdUnchecked,+ getX, getXUnsafe, getXUnchecked, getY, getYUnsafe, getYUnchecked,+ getWidth, getWidthUnsafe, getWidthUnchecked, getHeight,+ getHeightUnsafe, getHeightUnchecked, setContentScriptType,+ getContentScriptType, setContentStyleType, getContentStyleType,+ getViewport, getViewportUnsafe, getViewportUnchecked,+ getPixelUnitToMillimeterX, getPixelUnitToMillimeterY,+ getScreenPixelToMillimeterX, getScreenPixelToMillimeterY,+ getUseCurrentView, getCurrentView, getCurrentViewUnsafe, getCurrentViewUnchecked, setCurrentScale, getCurrentScale,- getCurrentTranslate, getCurrentTranslateUnchecked, SVGSVGElement,- castToSVGSVGElement, gTypeSVGSVGElement)+ getCurrentTranslate, getCurrentTranslateUnsafe,+ getCurrentTranslateUnchecked, SVGSVGElement(..),+ gTypeSVGSVGElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -40,6 +51,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.suspendRedraw Mozilla SVGSVGElement.suspendRedraw documentation> suspendRedraw :: (MonadDOM m) => SVGSVGElement -> Word -> m Word@@ -129,6 +150,18 @@ [toJSVal rect, toJSVal referenceElement])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.getIntersectionList Mozilla SVGSVGElement.getIntersectionList documentation> +getIntersectionListUnsafe ::+ (MonadDOM m, IsSVGElement referenceElement, HasCallStack) =>+ SVGSVGElement ->+ Maybe SVGRect -> Maybe referenceElement -> m NodeList+getIntersectionListUnsafe self rect referenceElement+ = liftDOM+ (((self ^. jsf "getIntersectionList"+ [toJSVal rect, toJSVal referenceElement])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.getIntersectionList Mozilla SVGSVGElement.getIntersectionList documentation> getIntersectionListUnchecked :: (MonadDOM m, IsSVGElement referenceElement) => SVGSVGElement ->@@ -161,6 +194,18 @@ [toJSVal rect, toJSVal referenceElement])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.getEnclosureList Mozilla SVGSVGElement.getEnclosureList documentation> +getEnclosureListUnsafe ::+ (MonadDOM m, IsSVGElement referenceElement, HasCallStack) =>+ SVGSVGElement ->+ Maybe SVGRect -> Maybe referenceElement -> m NodeList+getEnclosureListUnsafe self rect referenceElement+ = liftDOM+ (((self ^. jsf "getEnclosureList"+ [toJSVal rect, toJSVal referenceElement])+ >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.getEnclosureList Mozilla SVGSVGElement.getEnclosureList documentation> getEnclosureListUnchecked :: (MonadDOM m, IsSVGElement referenceElement) => SVGSVGElement ->@@ -223,6 +268,14 @@ = liftDOM (void (self ^. jsf "createSVGNumber" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.createSVGNumber Mozilla SVGSVGElement.createSVGNumber documentation> +createSVGNumberUnsafe ::+ (MonadDOM m, HasCallStack) => SVGSVGElement -> m SVGNumber+createSVGNumberUnsafe self+ = liftDOM+ (((self ^. jsf "createSVGNumber" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.createSVGNumber Mozilla SVGSVGElement.createSVGNumber documentation> createSVGNumberUnchecked :: (MonadDOM m) => SVGSVGElement -> m SVGNumber createSVGNumberUnchecked self@@ -241,6 +294,14 @@ = liftDOM (void (self ^. jsf "createSVGLength" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.createSVGLength Mozilla SVGSVGElement.createSVGLength documentation> +createSVGLengthUnsafe ::+ (MonadDOM m, HasCallStack) => SVGSVGElement -> m SVGLength+createSVGLengthUnsafe self+ = liftDOM+ (((self ^. jsf "createSVGLength" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.createSVGLength Mozilla SVGSVGElement.createSVGLength documentation> createSVGLengthUnchecked :: (MonadDOM m) => SVGSVGElement -> m SVGLength createSVGLengthUnchecked self@@ -259,6 +320,14 @@ = liftDOM (void (self ^. jsf "createSVGAngle" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.createSVGAngle Mozilla SVGSVGElement.createSVGAngle documentation> +createSVGAngleUnsafe ::+ (MonadDOM m, HasCallStack) => SVGSVGElement -> m SVGAngle+createSVGAngleUnsafe self+ = liftDOM+ (((self ^. jsf "createSVGAngle" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.createSVGAngle Mozilla SVGSVGElement.createSVGAngle documentation> createSVGAngleUnchecked :: (MonadDOM m) => SVGSVGElement -> m SVGAngle createSVGAngleUnchecked self@@ -277,6 +346,14 @@ = liftDOM (void (self ^. jsf "createSVGPoint" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.createSVGPoint Mozilla SVGSVGElement.createSVGPoint documentation> +createSVGPointUnsafe ::+ (MonadDOM m, HasCallStack) => SVGSVGElement -> m SVGPoint+createSVGPointUnsafe self+ = liftDOM+ (((self ^. jsf "createSVGPoint" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.createSVGPoint Mozilla SVGSVGElement.createSVGPoint documentation> createSVGPointUnchecked :: (MonadDOM m) => SVGSVGElement -> m SVGPoint createSVGPointUnchecked self@@ -295,6 +372,14 @@ = liftDOM (void (self ^. jsf "createSVGMatrix" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.createSVGMatrix Mozilla SVGSVGElement.createSVGMatrix documentation> +createSVGMatrixUnsafe ::+ (MonadDOM m, HasCallStack) => SVGSVGElement -> m SVGMatrix+createSVGMatrixUnsafe self+ = liftDOM+ (((self ^. jsf "createSVGMatrix" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.createSVGMatrix Mozilla SVGSVGElement.createSVGMatrix documentation> createSVGMatrixUnchecked :: (MonadDOM m) => SVGSVGElement -> m SVGMatrix createSVGMatrixUnchecked self@@ -312,6 +397,14 @@ = liftDOM (void (self ^. jsf "createSVGRect" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.createSVGRect Mozilla SVGSVGElement.createSVGRect documentation> +createSVGRectUnsafe ::+ (MonadDOM m, HasCallStack) => SVGSVGElement -> m SVGRect+createSVGRectUnsafe self+ = liftDOM+ (((self ^. jsf "createSVGRect" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.createSVGRect Mozilla SVGSVGElement.createSVGRect documentation> createSVGRectUnchecked :: (MonadDOM m) => SVGSVGElement -> m SVGRect createSVGRectUnchecked self@@ -329,6 +422,14 @@ = liftDOM (void (self ^. jsf "createSVGTransform" ())) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.createSVGTransform Mozilla SVGSVGElement.createSVGTransform documentation> +createSVGTransformUnsafe ::+ (MonadDOM m, HasCallStack) => SVGSVGElement -> m SVGTransform+createSVGTransformUnsafe self+ = liftDOM+ (((self ^. jsf "createSVGTransform" ()) >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.createSVGTransform Mozilla SVGSVGElement.createSVGTransform documentation> createSVGTransformUnchecked :: (MonadDOM m) => SVGSVGElement -> m SVGTransform createSVGTransformUnchecked self@@ -353,6 +454,16 @@ (self ^. jsf "createSVGTransformFromMatrix" [toJSVal matrix])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.createSVGTransformFromMatrix Mozilla SVGSVGElement.createSVGTransformFromMatrix documentation> +createSVGTransformFromMatrixUnsafe ::+ (MonadDOM m, HasCallStack) =>+ SVGSVGElement -> Maybe SVGMatrix -> m SVGTransform+createSVGTransformFromMatrixUnsafe self matrix+ = liftDOM+ (((self ^. jsf "createSVGTransformFromMatrix" [toJSVal matrix]) >>=+ fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.createSVGTransformFromMatrix Mozilla SVGSVGElement.createSVGTransformFromMatrix documentation> createSVGTransformFromMatrixUnchecked :: (MonadDOM m) => SVGSVGElement -> Maybe SVGMatrix -> m SVGTransform@@ -377,6 +488,15 @@ = liftDOM (void (self ^. jsf "getElementById" [toJSVal elementId])) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.getElementById Mozilla SVGSVGElement.getElementById documentation> +getElementByIdUnsafe ::+ (MonadDOM m, ToJSString elementId, HasCallStack) =>+ SVGSVGElement -> elementId -> m Element+getElementByIdUnsafe self elementId+ = liftDOM+ (((self ^. jsf "getElementById" [toJSVal elementId]) >>= fromJSVal)+ >>= maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.getElementById Mozilla SVGSVGElement.getElementById documentation> getElementByIdUnchecked :: (MonadDOM m, ToJSString elementId) => SVGSVGElement -> elementId -> m Element@@ -391,6 +511,14 @@ getX self = liftDOM ((self ^. js "x") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.x Mozilla SVGSVGElement.x documentation> +getXUnsafe ::+ (MonadDOM m, HasCallStack) => SVGSVGElement -> m SVGAnimatedLength+getXUnsafe self+ = liftDOM+ (((self ^. js "x") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.x Mozilla SVGSVGElement.x documentation> getXUnchecked :: (MonadDOM m) => SVGSVGElement -> m SVGAnimatedLength getXUnchecked self@@ -402,6 +530,14 @@ getY self = liftDOM ((self ^. js "y") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.y Mozilla SVGSVGElement.y documentation> +getYUnsafe ::+ (MonadDOM m, HasCallStack) => SVGSVGElement -> m SVGAnimatedLength+getYUnsafe self+ = liftDOM+ (((self ^. js "y") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.y Mozilla SVGSVGElement.y documentation> getYUnchecked :: (MonadDOM m) => SVGSVGElement -> m SVGAnimatedLength getYUnchecked self@@ -413,6 +549,14 @@ getWidth self = liftDOM ((self ^. js "width") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.width Mozilla SVGSVGElement.width documentation> +getWidthUnsafe ::+ (MonadDOM m, HasCallStack) => SVGSVGElement -> m SVGAnimatedLength+getWidthUnsafe self+ = liftDOM+ (((self ^. js "width") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.width Mozilla SVGSVGElement.width documentation> getWidthUnchecked :: (MonadDOM m) => SVGSVGElement -> m SVGAnimatedLength getWidthUnchecked self@@ -424,6 +568,14 @@ getHeight self = liftDOM ((self ^. js "height") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.height Mozilla SVGSVGElement.height documentation> +getHeightUnsafe ::+ (MonadDOM m, HasCallStack) => SVGSVGElement -> m SVGAnimatedLength+getHeightUnsafe self+ = liftDOM+ (((self ^. js "height") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.height Mozilla SVGSVGElement.height documentation> getHeightUnchecked :: (MonadDOM m) => SVGSVGElement -> m SVGAnimatedLength getHeightUnchecked self@@ -458,6 +610,14 @@ getViewport self = liftDOM ((self ^. js "viewport") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.viewport Mozilla SVGSVGElement.viewport documentation> +getViewportUnsafe ::+ (MonadDOM m, HasCallStack) => SVGSVGElement -> m SVGRect+getViewportUnsafe self+ = liftDOM+ (((self ^. js "viewport") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.viewport Mozilla SVGSVGElement.viewport documentation> getViewportUnchecked :: (MonadDOM m) => SVGSVGElement -> m SVGRect getViewportUnchecked self = liftDOM ((self ^. js "viewport") >>= fromJSValUnchecked)@@ -506,6 +666,14 @@ = liftDOM ((self ^. js "currentView") >>= fromJSVal) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.currentView Mozilla SVGSVGElement.currentView documentation> +getCurrentViewUnsafe ::+ (MonadDOM m, HasCallStack) => SVGSVGElement -> m SVGViewSpec+getCurrentViewUnsafe self+ = liftDOM+ (((self ^. js "currentView") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.currentView Mozilla SVGSVGElement.currentView documentation> getCurrentViewUnchecked :: (MonadDOM m) => SVGSVGElement -> m SVGViewSpec getCurrentViewUnchecked self@@ -527,6 +695,14 @@ (MonadDOM m) => SVGSVGElement -> m (Maybe SVGPoint) getCurrentTranslate self = liftDOM ((self ^. js "currentTranslate") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.currentTranslate Mozilla SVGSVGElement.currentTranslate documentation> +getCurrentTranslateUnsafe ::+ (MonadDOM m, HasCallStack) => SVGSVGElement -> m SVGPoint+getCurrentTranslateUnsafe self+ = liftDOM+ (((self ^. js "currentTranslate") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement.currentTranslate Mozilla SVGSVGElement.currentTranslate documentation> getCurrentTranslateUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGScriptElement- (setType, getType, getTypeUnchecked, SVGScriptElement,- castToSVGScriptElement, gTypeSVGScriptElement)+ (setType, getType, getTypeUnsafe, getTypeUnchecked,+ SVGScriptElement(..), gTypeSVGScriptElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,6 +19,16 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement.type Mozilla SVGScriptElement.type documentation> setType ::@@ -27,6 +41,15 @@ (MonadDOM m, FromJSString result) => SVGScriptElement -> m (Maybe result) getType self = liftDOM ((self ^. js "type") >>= fromMaybeJSString)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement.type Mozilla SVGScriptElement.type documentation> +getTypeUnsafe ::+ (MonadDOM m, HasCallStack, FromJSString result) =>+ SVGScriptElement -> m result+getTypeUnsafe self+ = liftDOM+ (((self ^. js "type") >>= fromMaybeJSString) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement.type Mozilla SVGScriptElement.type documentation> getTypeUnchecked ::
@@ -1,10 +1,14 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE PatternSynonyms #-}+-- For HasCallStack compatibility+{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module JSDOM.Generated.SVGStopElement- (getOffset, getOffsetUnchecked, SVGStopElement,- castToSVGStopElement, gTypeSVGStopElement)+ (getOffset, getOffsetUnsafe, getOffsetUnchecked,+ SVGStopElement(..), gTypeSVGStopElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))+import qualified Prelude (error) import Data.Typeable (Typeable) import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array) import Data.Int (Int64)@@ -15,11 +19,29 @@ import Control.Lens.Operators ((^.)) import JSDOM.EventTargetClosures (EventName, unsafeEventName) import JSDOM.Enums+#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#elif MIN_VERSION_base(4,8,0)+import GHC.Stack (CallStack)+import GHC.Exts (Constraint)+type HasCallStack = ((?callStack :: CallStack) :: Constraint)+#else+import GHC.Exts (Constraint)+type HasCallStack = (() :: Constraint)+#endif -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGStopElement.offset Mozilla SVGStopElement.offset documentation> getOffset :: (MonadDOM m) => SVGStopElement -> m (Maybe SVGAnimatedNumber) getOffset self = liftDOM ((self ^. js "offset") >>= fromJSVal)++-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGStopElement.offset Mozilla SVGStopElement.offset documentation> +getOffsetUnsafe ::+ (MonadDOM m, HasCallStack) => SVGStopElement -> m SVGAnimatedNumber+getOffsetUnsafe self+ = liftDOM+ (((self ^. js "offset") >>= fromJSVal) >>=+ maybe (Prelude.error "Nothing to return") return) -- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGStopElement.offset Mozilla SVGStopElement.offset documentation> getOffsetUnchecked ::
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff