[Haskell-cafe] combining predicates, noob question

Brent Yorgey byorgey at seas.upenn.edu
Mon Jul 9 16:43:57 CEST 2012

On Sat, Jul 07, 2012 at 09:42:01PM -0300, Sebastián Krynski wrote:
> Ok , thanks for the answers, I understand now what  liftM2 does.
>  In this case would it be silly to  use  combinerPred (and maybe a newType
>  Predicate a = a -> Bool) for the sake of readability or shoud I stick with
> a -> Bool  and  liftM2?

No, not silly.  Use whatever you find most readable.


More information about the Haskell-Cafe mailing list