[Haskell-beginners] Common Method for [Maybe a] -> [a]

Francesco Ariis fa-ml at ariis.it
Wed May 1 12:56:20 UTC 2019


Hello Leonard,

On Wed, May 01, 2019 at 11:04:46AM +0000, Leonhard Applis wrote:
> I've got a method:
> 
> demaybefy  :: [Maybe  a] -> [a]
> [...]
> 
> 
> However, i feel that there is a method from preload/list/maybe that
> does exactly the same, but i cannot find it.
> Can someone help me?

Simon already gave the right answer; never forget that for question like
this, Hoogle is phenomenal! Just write in the sought signature and voila:

    https://hoogle.haskell.org/?hoogle=%5BMaybe%20a%5D%20-%3E%20%5Ba%5D


More information about the Beginners mailing list