Created
August 3, 2023 01:35
-
-
Save pete-murphy/78c05504a6344a5ac63f5613dab1dccc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module App where | |
import Prelude | |
import Beta.DOM as DOM | |
import Beta.DOM.HTML as HTML | |
import Data.Foldable as Foldable | |
import Effect.Class.Console as Console | |
import Effect.Timer as Timer | |
-- import React.Basic.DOM as DOM | |
import React.Basic.DOM.Events as DOM.Events | |
import React.Basic.Events as Events | |
import React.Basic.Hooks (Component, (/\)) | |
import React.Basic.Hooks as Hooks | |
mkApp :: Component Unit | |
mkApp = do | |
Hooks.component "App" \_ -> Hooks.do | |
text /\ setText <- Hooks.useState' "" | |
timer /\ setTimer <- Hooks.useState 0 | |
Hooks.useEffect text do | |
handle <- Timer.setInterval 1_000 (setTimer (_ + 1)) | |
pure (setTimer (\_ -> 0) *> Timer.clearInterval handle) | |
pure | |
( HTML.div {} | |
[ HTML.input | |
{ onChange: ?what | |
-- Events.handler DOM.Events.targetValue | |
-- ( Foldable.traverse_ \value -> do | |
-- Console.log value | |
-- setText value | |
-- ) | |
, value: text | |
} | |
-- , HTML.p [ DOM.text (show timer) ] | |
] | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1 of 2] Compiling App | |
Warning 1 of 2: | |
in module App | |
at src/App.purs:20:5 - 20:10 (line 20, column 5 - line 20, column 10) | |
Name timer was introduced but not used. | |
in value declaration mkApp | |
See https://github.com/purescript/documentation/blob/master/errors/UnusedName.md for more information, | |
or to contribute content related to this warning. | |
Warning 2 of 2: | |
in module App | |
at src/App.purs:19:13 - 19:20 (line 19, column 13 - line 19, column 20) | |
Name setText was introduced but not used. | |
in value declaration mkApp | |
See https://github.com/purescript/documentation/blob/master/errors/UnusedName.md for more information, | |
or to contribute content related to this warning. | |
Error found: | |
in module App | |
at src/App.purs:26:13 - 34:16 (line 26, column 13 - line 34, column 16) | |
Could not match type | |
( onChange :: t3 | |
... | |
| t2 | |
) | |
with type | |
( accept :: String | |
, accessKey :: String | |
, "aria-atomic" :: Boolean | |
, "aria-busy" :: Boolean | |
, "aria-checked" :: Boolean | |
, "aria-colcount" :: Int | |
, "aria-colindex" :: Int | |
, "aria-colspan" :: Int | |
, "aria-controls" :: String | |
, "aria-current" :: String | |
, "aria-describedby" :: String | |
, "aria-details" :: String | |
, "aria-disabled" :: Boolean | |
, "aria-dropeffect" :: String | |
, "aria-errormessage" :: String | |
, "aria-expanded" :: Boolean | |
, "aria-flowto" :: String | |
, "aria-grabbed" :: Boolean | |
, "aria-haspopup" :: Boolean | |
, "aria-hidden" :: Boolean | |
, "aria-invalid" :: Boolean | |
, "aria-keyshortcuts" :: String | |
, "aria-label" :: String | |
, "aria-labelledby" :: String | |
, "aria-level" :: Int | |
, "aria-live" :: String | |
, "aria-modal" :: Boolean | |
, "aria-multiline" :: Boolean | |
, "aria-multiselectable" :: Boolean | |
, "aria-orientation" :: String | |
, "aria-owns" :: String | |
, "aria-placeholder" :: String | |
, "aria-posinset" :: Int | |
, "aria-pressed" :: Boolean | |
, "aria-readonly" :: Boolean | |
, "aria-relevant" :: String | |
, "aria-required" :: Boolean | |
, "aria-roledescription" :: String | |
, "aria-rowcount" :: Int | |
, "aria-rowindex" :: Int | |
, "aria-rowspan" :: Int | |
, "aria-selected" :: Boolean | |
, "aria-setsize" :: Int | |
, "aria-sort" :: String | |
, "aria-valuemax" :: Int | |
, "aria-valuemin" :: Int | |
, "aria-valuenow" :: Int | |
, "aria-valuetext" :: String | |
, autoCapitalize :: AutoCapitalize | |
, autocomplete :: String | |
, autofocus :: Boolean | |
, checked :: Boolean | |
, className :: String | |
, contentEditable :: Boolean | |
, dangerouslySetInnerHTML :: { __html :: String | |
} | |
, disabled :: Boolean | |
, draggable :: Boolean | |
, enterKeyHint :: String | |
, form :: String | |
, hidden :: Boolean | |
, id :: String | |
, inputMode :: InputMode | |
, is :: String | |
, itemProp :: String | |
, itemRef :: String | |
, itemScope :: Boolean | |
, itemType :: String | |
, key :: String | |
, lang :: String | |
, name :: String | |
, onAnimationEnd :: EffectFn1 SyntheticEvent Unit | |
, onAnimationEndCapture :: EffectFn1 SyntheticEvent Unit | |
, onAnimationIteration :: EffectFn1 SyntheticEvent Unit | |
, onAnimationIterationCapture :: EffectFn1 SyntheticEvent Unit | |
, onAnimationStart :: EffectFn1 SyntheticEvent Unit | |
, onAnimationStartCapture :: EffectFn1 SyntheticEvent Unit | |
, onAuxClick :: EffectFn1 SyntheticEvent Unit | |
, onAuxClickCapture :: EffectFn1 SyntheticEvent Unit | |
, onBeforeInput :: EffectFn1 SyntheticEvent Unit | |
, onBeforeInputCapture :: EffectFn1 SyntheticEvent Unit | |
, onBlur :: EffectFn1 SyntheticEvent Unit | |
, onBlurCapture :: EffectFn1 SyntheticEvent Unit | |
, onClick :: EffectFn1 SyntheticEvent Unit | |
, onClickCapture :: EffectFn1 SyntheticEvent Unit | |
, onCompositionEnd :: EffectFn1 SyntheticEvent Unit | |
, onCompositionEndCapture :: EffectFn1 SyntheticEvent Unit | |
, onCompositionStart :: EffectFn1 SyntheticEvent Unit | |
, onCompositionStartCapture :: EffectFn1 SyntheticEvent Unit | |
, onCompositionUpdate :: EffectFn1 SyntheticEvent Unit | |
, onCompositionUpdateCapture :: EffectFn1 SyntheticEvent Unit | |
, onContextMenu :: EffectFn1 SyntheticEvent Unit | |
, onContextMenuCapture :: EffectFn1 SyntheticEvent Unit | |
, onCopy :: EffectFn1 SyntheticEvent Unit | |
, onCopyCapture :: EffectFn1 SyntheticEvent Unit | |
, onCut :: EffectFn1 SyntheticEvent Unit | |
, onCutCapture :: EffectFn1 SyntheticEvent Unit | |
, onDoubleClick :: EffectFn1 SyntheticEvent Unit | |
, onDoubleClickCapture :: EffectFn1 SyntheticEvent Unit | |
, onDrag :: EffectFn1 SyntheticEvent Unit | |
, onDragCapture :: EffectFn1 SyntheticEvent Unit | |
, onDragEnd :: EffectFn1 SyntheticEvent Unit | |
, onDragEndCapture :: EffectFn1 SyntheticEvent Unit | |
, onDragEnter :: EffectFn1 SyntheticEvent Unit | |
, onDragEnterCapture :: EffectFn1 SyntheticEvent Unit | |
, onDragStart :: EffectFn1 SyntheticEvent Unit | |
, onDragStartCapture :: EffectFn1 SyntheticEvent Unit | |
, onDrop :: EffectFn1 SyntheticEvent Unit | |
, onDropCapture :: EffectFn1 SyntheticEvent Unit | |
, onFocus :: EffectFn1 SyntheticEvent Unit | |
, onFocusCapture :: EffectFn1 SyntheticEvent Unit | |
, onGotPointerCapture :: EffectFn1 SyntheticEvent Unit | |
, onGotPointerCaptureCapture :: EffectFn1 SyntheticEvent Unit | |
, onMouseDown :: EffectFn1 SyntheticEvent Unit | |
, onMouseDownCapture :: EffectFn1 SyntheticEvent Unit | |
, onMouseEnter :: EffectFn1 SyntheticEvent Unit | |
, onMouseEnterCapture :: EffectFn1 SyntheticEvent Unit | |
, onMouseLeave :: EffectFn1 SyntheticEvent Unit | |
, onMouseLeaveCapture :: EffectFn1 SyntheticEvent Unit | |
, onMouseMove :: EffectFn1 SyntheticEvent Unit | |
, onMouseMoveCapture :: EffectFn1 SyntheticEvent Unit | |
, onMouseOut :: EffectFn1 SyntheticEvent Unit | |
, onMouseOutCapture :: EffectFn1 SyntheticEvent Unit | |
, onMouseUp :: EffectFn1 SyntheticEvent Unit | |
, onMouseUpCapture :: EffectFn1 SyntheticEvent Unit | |
, onPaste :: EffectFn1 SyntheticEvent Unit | |
, onPasteCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerCancel :: EffectFn1 SyntheticEvent Unit | |
, onPointerCancelCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerDown :: EffectFn1 SyntheticEvent Unit | |
, onPointerDownCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerEnter :: EffectFn1 SyntheticEvent Unit | |
, onPointerEnterCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerLeave :: EffectFn1 SyntheticEvent Unit | |
, onPointerLeaveCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerMove :: EffectFn1 SyntheticEvent Unit | |
, onPointerMoveCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerOut :: EffectFn1 SyntheticEvent Unit | |
, onPointerOutCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerUp :: EffectFn1 SyntheticEvent Unit | |
, onPointerUpCapture :: EffectFn1 SyntheticEvent Unit | |
, onScroll :: EffectFn1 SyntheticEvent Unit | |
, onScrollCapture :: EffectFn1 SyntheticEvent Unit | |
, onSelect :: EffectFn1 SyntheticEvent Unit | |
, onSelectCapture :: EffectFn1 SyntheticEvent Unit | |
, onTouchCancel :: EffectFn1 SyntheticEvent Unit | |
, onTouchCancelCapture :: EffectFn1 SyntheticEvent Unit | |
, onTouchEnd :: EffectFn1 | |
{ altKey :: Boolean | |
, bubbles :: Boolean | |
, cancelable :: Boolean | |
, changedTouches :: TouchList | |
, ctrlKey :: Boolean | |
, currentTarget :: EventTarget | |
, defaultPrevented :: Boolean | |
, eventPhase :: Int | |
, isDefaultPrevented :: Effect Boolean | |
, isPersistent :: Effect Boolean | |
, isPropagationStopped :: Effect Boolean | |
, isTrusted :: Boolean | |
, metaKey :: Boolean | |
, nativeEvent :: Event | |
, persist :: Effect Unit | |
, preventDefault :: Effect Unit | |
, shiftKey :: Boolean | |
, stopPropagation :: Effect Unit | |
, target :: EventTarget | |
, targetTouches :: Array Touch | |
, timeStamp :: Instant | |
, touches :: Array Touch | |
, type :: EventType | |
} | |
Unit | |
, onTouchEndCapture :: EffectFn1 | |
{ altKey :: Boolean | |
, bubbles :: Boolean | |
, cancelable :: Boolean | |
, changedTouches :: TouchList | |
, ctrlKey :: Boolean | |
, currentTarget :: EventTarget | |
, defaultPrevented :: Boolean | |
, eventPhase :: Int | |
, isDefaultPrevented :: Effect Boolean | |
, isPersistent :: Effect Boolean | |
, isPropagationStopped :: Effect Boolean | |
, isTrusted :: Boolean | |
, metaKey :: Boolean | |
, nativeEvent :: Event | |
, persist :: Effect Unit | |
, preventDefault :: Effect Unit | |
, shiftKey :: Boolean | |
, stopPropagation :: Effect Unit | |
, target :: EventTarget | |
, targetTouches :: Array Touch | |
, timeStamp :: Instant | |
, touches :: Array Touch | |
, type :: EventType | |
} | |
Unit | |
, onTouchMove :: EffectFn1 SyntheticEvent Unit | |
, onTouchMoveCapture :: EffectFn1 SyntheticEvent Unit | |
, onTouchStart :: EffectFn1 SyntheticEvent Unit | |
, onTouchStartCapture :: EffectFn1 SyntheticEvent Unit | |
, onTransitionEnd :: EffectFn1 SyntheticEvent Unit | |
, onTransitionEndCapture :: EffectFn1 SyntheticEvent Unit | |
, onWheel :: EffectFn1 SyntheticEvent Unit | |
, onWheelCapture :: EffectFn1 SyntheticEvent Unit | |
, placeholder :: String | |
, readonly :: Boolean | |
, ref :: Ref (Nullable Node) | |
, required :: Boolean | |
, role :: String | |
, slot :: String | |
, spellCheck :: Boolean | |
, style :: CSS | |
, suppressContentEditableWarning :: Boolean | |
, suppressHydrationWarning :: Boolean | |
, tabIndex :: Int | |
, title :: String | |
, translate :: YesOrNo | |
, type :: String | |
... | |
) | |
while solving type class constraint | |
Prim.Row.Union t1 | |
t2 | |
( accept :: String | |
, accessKey :: String | |
, "aria-atomic" :: Boolean | |
, "aria-busy" :: Boolean | |
, "aria-checked" :: Boolean | |
, "aria-colcount" :: Int | |
, "aria-colindex" :: Int | |
, "aria-colspan" :: Int | |
, "aria-controls" :: String | |
, "aria-current" :: String | |
, "aria-describedby" :: String | |
, "aria-details" :: String | |
, "aria-disabled" :: Boolean | |
, "aria-dropeffect" :: String | |
, "aria-errormessage" :: String | |
, "aria-expanded" :: Boolean | |
, "aria-flowto" :: String | |
, "aria-grabbed" :: Boolean | |
, "aria-haspopup" :: Boolean | |
, "aria-hidden" :: Boolean | |
, "aria-invalid" :: Boolean | |
, "aria-keyshortcuts" :: String | |
, "aria-label" :: String | |
, "aria-labelledby" :: String | |
, "aria-level" :: Int | |
, "aria-live" :: String | |
, "aria-modal" :: Boolean | |
, "aria-multiline" :: Boolean | |
, "aria-multiselectable" :: Boolean | |
, "aria-orientation" :: String | |
, "aria-owns" :: String | |
, "aria-placeholder" :: String | |
, "aria-posinset" :: Int | |
, "aria-pressed" :: Boolean | |
, "aria-readonly" :: Boolean | |
, "aria-relevant" :: String | |
, "aria-required" :: Boolean | |
, "aria-roledescription" :: String | |
, "aria-rowcount" :: Int | |
, "aria-rowindex" :: Int | |
, "aria-rowspan" :: Int | |
, "aria-selected" :: Boolean | |
, "aria-setsize" :: Int | |
, "aria-sort" :: String | |
, "aria-valuemax" :: Int | |
, "aria-valuemin" :: Int | |
, "aria-valuenow" :: Int | |
, "aria-valuetext" :: String | |
, autoCapitalize :: AutoCapitalize | |
, autocomplete :: String | |
, autofocus :: Boolean | |
, checked :: Boolean | |
, className :: String | |
, contentEditable :: Boolean | |
, dangerouslySetInnerHTML :: { __html :: String | |
} | |
, disabled :: Boolean | |
, draggable :: Boolean | |
, enterKeyHint :: String | |
, form :: String | |
, hidden :: Boolean | |
, id :: String | |
, inputMode :: InputMode | |
, is :: String | |
, itemProp :: String | |
, itemRef :: String | |
, itemScope :: Boolean | |
, itemType :: String | |
, key :: String | |
, lang :: String | |
, name :: String | |
, onAnimationEnd :: EffectFn1 SyntheticEvent Unit | |
, onAnimationEndCapture :: EffectFn1 SyntheticEvent Unit | |
, onAnimationIteration :: EffectFn1 SyntheticEvent Unit | |
, onAnimationIterationCapture :: EffectFn1 SyntheticEvent Unit | |
, onAnimationStart :: EffectFn1 SyntheticEvent Unit | |
, onAnimationStartCapture :: EffectFn1 SyntheticEvent Unit | |
, onAuxClick :: EffectFn1 SyntheticEvent Unit | |
, onAuxClickCapture :: EffectFn1 SyntheticEvent Unit | |
, onBeforeInput :: EffectFn1 SyntheticEvent Unit | |
, onBeforeInputCapture :: EffectFn1 SyntheticEvent Unit | |
, onBlur :: EffectFn1 SyntheticEvent Unit | |
, onBlurCapture :: EffectFn1 SyntheticEvent Unit | |
, onClick :: EffectFn1 SyntheticEvent Unit | |
, onClickCapture :: EffectFn1 SyntheticEvent Unit | |
, onCompositionEnd :: EffectFn1 SyntheticEvent Unit | |
, onCompositionEndCapture :: EffectFn1 SyntheticEvent Unit | |
, onCompositionStart :: EffectFn1 SyntheticEvent Unit | |
, onCompositionStartCapture :: EffectFn1 SyntheticEvent Unit | |
, onCompositionUpdate :: EffectFn1 SyntheticEvent Unit | |
, onCompositionUpdateCapture :: EffectFn1 SyntheticEvent Unit | |
, onContextMenu :: EffectFn1 SyntheticEvent Unit | |
, onContextMenuCapture :: EffectFn1 SyntheticEvent Unit | |
, onCopy :: EffectFn1 SyntheticEvent Unit | |
, onCopyCapture :: EffectFn1 SyntheticEvent Unit | |
, onCut :: EffectFn1 SyntheticEvent Unit | |
, onCutCapture :: EffectFn1 SyntheticEvent Unit | |
, onDoubleClick :: EffectFn1 SyntheticEvent Unit | |
, onDoubleClickCapture :: EffectFn1 SyntheticEvent Unit | |
, onDrag :: EffectFn1 SyntheticEvent Unit | |
, onDragCapture :: EffectFn1 SyntheticEvent Unit | |
, onDragEnd :: EffectFn1 SyntheticEvent Unit | |
, onDragEndCapture :: EffectFn1 SyntheticEvent Unit | |
, onDragEnter :: EffectFn1 SyntheticEvent Unit | |
, onDragEnterCapture :: EffectFn1 SyntheticEvent Unit | |
, onDragStart :: EffectFn1 SyntheticEvent Unit | |
, onDragStartCapture :: EffectFn1 SyntheticEvent Unit | |
, onDrop :: EffectFn1 SyntheticEvent Unit | |
, onDropCapture :: EffectFn1 SyntheticEvent Unit | |
, onFocus :: EffectFn1 SyntheticEvent Unit | |
, onFocusCapture :: EffectFn1 SyntheticEvent Unit | |
, onGotPointerCapture :: EffectFn1 SyntheticEvent Unit | |
, onGotPointerCaptureCapture :: EffectFn1 SyntheticEvent Unit | |
, onMouseDown :: EffectFn1 SyntheticEvent Unit | |
, onMouseDownCapture :: EffectFn1 SyntheticEvent Unit | |
, onMouseEnter :: EffectFn1 SyntheticEvent Unit | |
, onMouseEnterCapture :: EffectFn1 SyntheticEvent Unit | |
, onMouseLeave :: EffectFn1 SyntheticEvent Unit | |
, onMouseLeaveCapture :: EffectFn1 SyntheticEvent Unit | |
, onMouseMove :: EffectFn1 SyntheticEvent Unit | |
, onMouseMoveCapture :: EffectFn1 SyntheticEvent Unit | |
, onMouseOut :: EffectFn1 SyntheticEvent Unit | |
, onMouseOutCapture :: EffectFn1 SyntheticEvent Unit | |
, onMouseUp :: EffectFn1 SyntheticEvent Unit | |
, onMouseUpCapture :: EffectFn1 SyntheticEvent Unit | |
, onPaste :: EffectFn1 SyntheticEvent Unit | |
, onPasteCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerCancel :: EffectFn1 SyntheticEvent Unit | |
, onPointerCancelCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerDown :: EffectFn1 SyntheticEvent Unit | |
, onPointerDownCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerEnter :: EffectFn1 SyntheticEvent Unit | |
, onPointerEnterCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerLeave :: EffectFn1 SyntheticEvent Unit | |
, onPointerLeaveCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerMove :: EffectFn1 SyntheticEvent Unit | |
, onPointerMoveCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerOut :: EffectFn1 SyntheticEvent Unit | |
, onPointerOutCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerUp :: EffectFn1 SyntheticEvent Unit | |
, onPointerUpCapture :: EffectFn1 SyntheticEvent Unit | |
, onScroll :: EffectFn1 SyntheticEvent Unit | |
, onScrollCapture :: EffectFn1 SyntheticEvent Unit | |
, onSelect :: EffectFn1 SyntheticEvent Unit | |
, onSelectCapture :: EffectFn1 SyntheticEvent Unit | |
, onTouchCancel :: EffectFn1 SyntheticEvent Unit | |
, onTouchCancelCapture :: EffectFn1 SyntheticEvent Unit | |
, onTouchEnd :: EffectFn1 | |
{ altKey :: Boolean | |
, bubbles :: Boolean | |
, cancelable :: Boolean | |
, changedTouches :: TouchList | |
, ctrlKey :: Boolean | |
, currentTarget :: EventTarget | |
, defaultPrevented :: Boolean | |
, eventPhase :: Int | |
, isDefaultPrevented :: Effect Boolean | |
, isPersistent :: Effect Boolean | |
, isPropagationStopped :: Effect Boolean | |
, isTrusted :: Boolean | |
, metaKey :: Boolean | |
, nativeEvent :: Event | |
, persist :: Effect Unit | |
, preventDefault :: Effect Unit | |
, shiftKey :: Boolean | |
, stopPropagation :: Effect Unit | |
, target :: EventTarget | |
, targetTouches :: Array Touch | |
, timeStamp :: Instant | |
, touches :: Array Touch | |
, type :: EventType | |
} | |
Unit | |
, onTouchEndCapture :: EffectFn1 | |
{ altKey :: Boolean | |
, bubbles :: Boolean | |
, cancelable :: Boolean | |
, changedTouches :: TouchList | |
, ctrlKey :: Boolean | |
, currentTarget :: EventTarget | |
, defaultPrevented :: Boolean | |
, eventPhase :: Int | |
, isDefaultPrevented :: Effect Boolean | |
, isPersistent :: Effect Boolean | |
, isPropagationStopped :: Effect Boolean | |
, isTrusted :: Boolean | |
, metaKey :: Boolean | |
, nativeEvent :: Event | |
, persist :: Effect Unit | |
, preventDefault :: Effect Unit | |
, shiftKey :: Boolean | |
, stopPropagation :: Effect Unit | |
, target :: EventTarget | |
, targetTouches :: Array Touch | |
, timeStamp :: Instant | |
, touches :: Array Touch | |
, type :: EventType | |
} | |
Unit | |
, onTouchMove :: EffectFn1 SyntheticEvent Unit | |
, onTouchMoveCapture :: EffectFn1 SyntheticEvent Unit | |
, onTouchStart :: EffectFn1 SyntheticEvent Unit | |
, onTouchStartCapture :: EffectFn1 SyntheticEvent Unit | |
, onTransitionEnd :: EffectFn1 SyntheticEvent Unit | |
, onTransitionEndCapture :: EffectFn1 SyntheticEvent Unit | |
, onWheel :: EffectFn1 SyntheticEvent Unit | |
, onWheelCapture :: EffectFn1 SyntheticEvent Unit | |
, placeholder :: String | |
, readonly :: Boolean | |
, ref :: Ref (Nullable Node) | |
, required :: Boolean | |
, role :: String | |
, slot :: String | |
, spellCheck :: Boolean | |
, style :: CSS | |
, suppressContentEditableWarning :: Boolean | |
, suppressHydrationWarning :: Boolean | |
, tabIndex :: Int | |
, title :: String | |
, translate :: YesOrNo | |
, type :: String | |
, value :: String | |
) | |
while applying a function input | |
of type CoerceReactProps @Type (Record t0) (Record t1) | |
{ accept :: String | |
, accessKey :: String | |
, "aria-atomic" :: Boolean | |
, "aria-busy" :: Boolean | |
, "aria-checked" :: Boolean | |
, "aria-colcount" :: Int | |
, "aria-colindex" :: Int | |
, "aria-colspan" :: Int | |
, "aria-controls" :: String | |
, "aria-current" :: String | |
, "aria-describedby" :: String | |
, "aria-details" :: String | |
, "aria-disabled" :: Boolean | |
, "aria-dropeffect" :: String | |
, "aria-errormessage" :: String | |
, "aria-expanded" :: Boolean | |
, "aria-flowto" :: String | |
, "aria-grabbed" :: Boolean | |
, "aria-haspopup" :: Boolean | |
, "aria-hidden" :: Boolean | |
, "aria-invalid" :: Boolean | |
, "aria-keyshortcuts" :: String | |
, "aria-label" :: String | |
, "aria-labelledby" :: String | |
, "aria-level" :: Int | |
, "aria-live" :: String | |
, "aria-modal" :: Boolean | |
, "aria-multiline" :: Boolean | |
, "aria-multiselectable" :: Boolean | |
, "aria-orientation" :: String | |
, "aria-owns" :: String | |
, "aria-placeholder" :: String | |
, "aria-posinset" :: Int | |
, "aria-pressed" :: Boolean | |
, "aria-readonly" :: Boolean | |
, "aria-relevant" :: String | |
, "aria-required" :: Boolean | |
, "aria-roledescription" :: String | |
, "aria-rowcount" :: Int | |
, "aria-rowindex" :: Int | |
, "aria-rowspan" :: Int | |
, "aria-selected" :: Boolean | |
, "aria-setsize" :: Int | |
, "aria-sort" :: String | |
, "aria-valuemax" :: Int | |
, "aria-valuemin" :: Int | |
, "aria-valuenow" :: Int | |
, "aria-valuetext" :: String | |
, autoCapitalize :: AutoCapitalize | |
, autocomplete :: String | |
, autofocus :: Boolean | |
, checked :: Boolean | |
, className :: String | |
, contentEditable :: Boolean | |
, dangerouslySetInnerHTML :: { __html :: String | |
} | |
, disabled :: Boolean | |
, draggable :: Boolean | |
, enterKeyHint :: String | |
, form :: String | |
, hidden :: Boolean | |
, id :: String | |
, inputMode :: InputMode | |
, is :: String | |
, itemProp :: String | |
, itemRef :: String | |
, itemScope :: Boolean | |
, itemType :: String | |
, key :: String | |
, lang :: String | |
, name :: String | |
, onAnimationEnd :: EffectFn1 SyntheticEvent Unit | |
, onAnimationEndCapture :: EffectFn1 SyntheticEvent Unit | |
, onAnimationIteration :: EffectFn1 SyntheticEvent Unit | |
, onAnimationIterationCapture :: EffectFn1 SyntheticEvent Unit | |
, onAnimationStart :: EffectFn1 SyntheticEvent Unit | |
, onAnimationStartCapture :: EffectFn1 SyntheticEvent Unit | |
, onAuxClick :: EffectFn1 SyntheticEvent Unit | |
, onAuxClickCapture :: EffectFn1 SyntheticEvent Unit | |
, onBeforeInput :: EffectFn1 SyntheticEvent Unit | |
, onBeforeInputCapture :: EffectFn1 SyntheticEvent Unit | |
, onBlur :: EffectFn1 SyntheticEvent Unit | |
, onBlurCapture :: EffectFn1 SyntheticEvent Unit | |
, onClick :: EffectFn1 SyntheticEvent Unit | |
, onClickCapture :: EffectFn1 SyntheticEvent Unit | |
, onCompositionEnd :: EffectFn1 SyntheticEvent Unit | |
, onCompositionEndCapture :: EffectFn1 SyntheticEvent Unit | |
, onCompositionStart :: EffectFn1 SyntheticEvent Unit | |
, onCompositionStartCapture :: EffectFn1 SyntheticEvent Unit | |
, onCompositionUpdate :: EffectFn1 SyntheticEvent Unit | |
, onCompositionUpdateCapture :: EffectFn1 SyntheticEvent Unit | |
, onContextMenu :: EffectFn1 SyntheticEvent Unit | |
, onContextMenuCapture :: EffectFn1 SyntheticEvent Unit | |
, onCopy :: EffectFn1 SyntheticEvent Unit | |
, onCopyCapture :: EffectFn1 SyntheticEvent Unit | |
, onCut :: EffectFn1 SyntheticEvent Unit | |
, onCutCapture :: EffectFn1 SyntheticEvent Unit | |
, onDoubleClick :: EffectFn1 SyntheticEvent Unit | |
, onDoubleClickCapture :: EffectFn1 SyntheticEvent Unit | |
, onDrag :: EffectFn1 SyntheticEvent Unit | |
, onDragCapture :: EffectFn1 SyntheticEvent Unit | |
, onDragEnd :: EffectFn1 SyntheticEvent Unit | |
, onDragEndCapture :: EffectFn1 SyntheticEvent Unit | |
, onDragEnter :: EffectFn1 SyntheticEvent Unit | |
, onDragEnterCapture :: EffectFn1 SyntheticEvent Unit | |
, onDragStart :: EffectFn1 SyntheticEvent Unit | |
, onDragStartCapture :: EffectFn1 SyntheticEvent Unit | |
, onDrop :: EffectFn1 SyntheticEvent Unit | |
, onDropCapture :: EffectFn1 SyntheticEvent Unit | |
, onFocus :: EffectFn1 SyntheticEvent Unit | |
, onFocusCapture :: EffectFn1 SyntheticEvent Unit | |
, onGotPointerCapture :: EffectFn1 SyntheticEvent Unit | |
, onGotPointerCaptureCapture :: EffectFn1 SyntheticEvent Unit | |
, onMouseDown :: EffectFn1 SyntheticEvent Unit | |
, onMouseDownCapture :: EffectFn1 SyntheticEvent Unit | |
, onMouseEnter :: EffectFn1 SyntheticEvent Unit | |
, onMouseEnterCapture :: EffectFn1 SyntheticEvent Unit | |
, onMouseLeave :: EffectFn1 SyntheticEvent Unit | |
, onMouseLeaveCapture :: EffectFn1 SyntheticEvent Unit | |
, onMouseMove :: EffectFn1 SyntheticEvent Unit | |
, onMouseMoveCapture :: EffectFn1 SyntheticEvent Unit | |
, onMouseOut :: EffectFn1 SyntheticEvent Unit | |
, onMouseOutCapture :: EffectFn1 SyntheticEvent Unit | |
, onMouseUp :: EffectFn1 SyntheticEvent Unit | |
, onMouseUpCapture :: EffectFn1 SyntheticEvent Unit | |
, onPaste :: EffectFn1 SyntheticEvent Unit | |
, onPasteCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerCancel :: EffectFn1 SyntheticEvent Unit | |
, onPointerCancelCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerDown :: EffectFn1 SyntheticEvent Unit | |
, onPointerDownCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerEnter :: EffectFn1 SyntheticEvent Unit | |
, onPointerEnterCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerLeave :: EffectFn1 SyntheticEvent Unit | |
, onPointerLeaveCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerMove :: EffectFn1 SyntheticEvent Unit | |
, onPointerMoveCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerOut :: EffectFn1 SyntheticEvent Unit | |
, onPointerOutCapture :: EffectFn1 SyntheticEvent Unit | |
, onPointerUp :: EffectFn1 SyntheticEvent Unit | |
, onPointerUpCapture :: EffectFn1 SyntheticEvent Unit | |
, onScroll :: EffectFn1 SyntheticEvent Unit | |
, onScrollCapture :: EffectFn1 SyntheticEvent Unit | |
, onSelect :: EffectFn1 SyntheticEvent Unit | |
, onSelectCapture :: EffectFn1 SyntheticEvent Unit | |
, onTouchCancel :: EffectFn1 SyntheticEvent Unit | |
, onTouchCancelCapture :: EffectFn1 SyntheticEvent Unit | |
, onTouchEnd :: EffectFn1 | |
{ altKey :: Boolean | |
, bubbles :: Boolean | |
, cancelable :: Boolean | |
, changedTouches :: TouchList | |
, ctrlKey :: Boolean | |
, currentTarget :: EventTarget | |
, defaultPrevented :: Boolean | |
, eventPhase :: Int | |
, isDefaultPrevented :: ... | |
, isPersistent :: ... | |
, isPropagationStopped :: ... | |
, isTrusted :: Boolean | |
, metaKey :: Boolean | |
, nativeEvent :: Event | |
, persist :: ... | |
, preventDefault :: ... | |
, shiftKey :: Boolean | |
, stopPropagation :: ... | |
, target :: EventTarget | |
, targetTouches :: ... | |
, timeStamp :: Instant | |
, touches :: ... | |
, type :: EventType | |
} | |
Unit | |
, onTouchEndCapture :: EffectFn1 | |
{ altKey :: Boolean | |
, bubbles :: Boolean | |
, cancelable :: Boolean | |
, changedTouches :: TouchList | |
, ctrlKey :: Boolean | |
, currentTarget :: EventTarget | |
, defaultPrevented :: Boolean | |
, eventPhase :: Int | |
, isDefaultPrevented :: ... | |
, isPersistent :: ... | |
, isPropagationStopped :: ... | |
, isTrusted :: Boolean | |
, metaKey :: Boolean | |
, nativeEvent :: Event | |
, persist :: ... | |
, preventDefault :: ... | |
, shiftKey :: Boolean | |
, stopPropagation :: ... | |
, target :: EventTarget | |
, targetTouches :: ... | |
, timeStamp :: Instant | |
, touches :: ... | |
, type :: EventType | |
} | |
Unit | |
, onTouchMove :: EffectFn1 SyntheticEvent Unit | |
, onTouchMoveCapture :: EffectFn1 SyntheticEvent Unit | |
, onTouchStart :: EffectFn1 SyntheticEvent Unit | |
, onTouchStartCapture :: EffectFn1 SyntheticEvent Unit | |
, onTransitionEnd :: EffectFn1 SyntheticEvent Unit | |
, onTransitionEndCapture :: EffectFn1 SyntheticEvent Unit | |
, onWheel :: EffectFn1 SyntheticEvent Unit | |
, onWheelCapture :: EffectFn1 SyntheticEvent Unit | |
, placeholder :: String | |
, readonly :: Boolean | |
, ref :: Ref (Nullable Node) | |
, required :: Boolean | |
, role :: String | |
, slot :: String | |
, spellCheck :: Boolean | |
, style :: CSS | |
, suppressContentEditableWarning :: Boolean | |
, suppressHydrationWarning :: Boolean | |
, tabIndex :: Int | |
, title :: String | |
, translate :: YesOrNo | |
, type :: String | |
, value :: String | |
} | |
=> Record t0 -> JSX | |
to argument { onChange: ?what | |
, value: text | |
} | |
while inferring the type of input { onChange: ?what | |
, value: text | |
} | |
in value declaration mkApp | |
where t0 is an unknown type | |
t1 is an unknown type | |
t3 is an unknown type | |
t2 is an unknown type | |
See https://github.com/purescript/documentation/blob/master/errors/TypesDoNotUnify.md for more information, | |
or to contribute content related to this error. | |
[error] Failed to build. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment