Maybe constructors does not provides concat
See original GitHub issueIt seems that Maybe constructors does not provides concat
on 2.0.0-beta1
> var { Just, Nothing } = require('folktale/data/maybe')
undefined
> var concat = require('folktale/core/fantasy-land/concat')
undefined
> concat(Just('example'), Just('example'))
TypeError: folktale:Data.Maybe.Just({ value: "example" }) does not have a method 'concat'.
at /home/neto/engProjects/spd/src/node_modules/folktale/helpers/unsupported-method.js:14:11
at concat (/home/neto/engProjects/spd/src/node_modules/folktale/core/fantasy-land/concat.js:38:174)
Environment
- OS: Linux
- JavaScript VM: V8
- Folktale version: 2.0.0-beta1
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
Why can't I pattern match on the concatenation function (++) in ...
One problem (as I understand it) is that ++ is not a constructor of the list data type the way : is. You...
Read more >crocks/Maybe.md at master · evilsoft/crocks · GitHub
A Maybe represents disjunction by using two constructors, Nothing or Just . A Just instance represents the truth case while Nothing is considered...
Read more >First - Crocks
Any Maybe passed to the constructor will be lifted as is, allowing the ... it provides is concat ed to any other value,...
Read more >Maybe (RxJava Javadoc 3.1.5) - ReactiveX
Concatenate the single values, in a non-overlapping fashion, of the MaybeSource sources in the array as a Flowable sequence.
Read more >maybe-just-maybe - npm
The Maybe monad provides a container for a value that may or may not exist. ... alt; ap; chain; concat; either; empty; equals;...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh, I forgot to comment, but this has been released as v2.0.0-rc1, though that release contains some breaking changes.
I’ll try to release this during the weekend 😃