funcool

A channel for discussing and asking questions about Funcool libraries https://github.com/funcool/
2018-08-22T11:04:47.000100Z

hia

2018-08-22T11:05:43.000100Z

how do I unwrap a monadic value? suppose I want to return a value instead of the wrapped one

mccraigmccraig 2018-08-22T11:07:42.000100Z

depends on the monad @mping - with some you can unwrap with @, with others (e.g. promises in js) you can't unwrap

2018-08-22T11:09:27.000100Z

and how do I know what monads are deferrable?

2018-08-22T11:10:47.000100Z

or better yet, whats the rationale

mccraigmccraig 2018-08-22T11:11:48.000100Z

i don't know if there is any defined way of telling

mccraigmccraig 2018-08-22T11:13:36.000100Z

the rationale is generally whether it makes any sense for the value - you can't unwrap a js promise because doing so would require blocking the single thread leading to deadlock

2018-08-22T11:19:21.000200Z

I see, thanks!