
16 Sep
2013
16 Sep
'13
12:41 a.m.
+1 for bool sans bikeshedding, à la maybe and either.
Christopher Done
+1 I use:bool :: (a -> b) -> (a -> b) -> (a -> Bool) -> a -> b
This "bool ft ff fb" is just "join (bool ft ff . fb)" using the non- bikeshedded 'bool'. Or "bool <$> ft <*> ff <*> fb" as others have pointed out.