
15 Sep
2013
15 Sep
'13
8:41 p.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.