darcs patch: Add justIf to Data.Maybe

Brent Yorgey byorgey at seas.upenn.edu
Mon Aug 24 16:21:19 EDT 2009


> +-- | The 'justIf' function is a shortcut for the idiom
> +-- @if a then Just v else v@, which can be written as @v `justIf` a at .

Just wanted to point out that there's a typo in the comment: surely
you mean @if a then Just v else Nothing at .

-Brent


More information about the Libraries mailing list