ndmitchell / extra

Extra Haskell functions
Other
93 stars 37 forks source link

Point out more general `whenJust` in base #88

Closed ysangkok closed 3 years ago

ysangkok commented 3 years ago

I just noticed today that a whenJust is available in base. I think this could be useful information, since it wasn't obvious to me at all, I always compared it to foldMapM from Relude instead.

ndmitchell commented 3 years ago

Thanks! I think in making this PR you've switched the file from Unix to Windows newlines. Can you switch it back, then I'll merge it.

ysangkok commented 3 years ago

@ndmitchell Thanks, done!

ndmitchell commented 3 years ago

Thanks!