question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Maybe constructors does not provides concat

See original GitHub issue

It 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:closed
  • Created 6 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
robotlolitacommented, Jul 2, 2017

Oh, I forgot to comment, but this has been released as v2.0.0-rc1, though that release contains some breaking changes.

1reaction
robotlolitacommented, Jun 1, 2017

I’ll try to release this during the weekend 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found