Uncaught TypeError: Unrecognized value
flip :: Functor f => f (a -> b) -> a -> f b
^
1
1) <object HTMLElement> :: (no types)
The value at position 1 is not a member of any type in the environment.
The environment contains the following types:
- Function
- Arguments
- Array c
- Array2 c d
- Boolean
- Buffer
- Date
- Descending c
- Either c d
- Error
- (c -> d)
- HtmlElement
- Identity c
- JsMap c d
- JsSet c
- Maybe c
- Module
- Null
- Number
- Object
- Pair c d
- RegExp
- StrMap c
- String
- Symbol
- Type
- TypeClass
- Undefined
- Future c d
- ConcurrentFuture c d
- Event
invalidValue index.js:2666
satisfactoryTypes index.js:1351
assertRight index.js:2731
wrapNext index.js:2823
I believe I have found a bug in how
$.HtmlElement
is defined.Live test-case: https://playcode.io/849895/ Offending line: https://github.com/sanctuary-js/sanctuary-def/blob/master/index.js#L719
This means that currently one can not use an HtmlElement as an argument.
please ignore the silliness of this example - I realize that
HtmlElement
is not aStrMap