On Mon, Sep 5, 2011 at 10:19 PM, Thomas Schilling <nominolo@googlemail.com> wrote:
a >>= \p -> f <$> b -- 'free p' and 'free b' disjoint-->((\p -> f) <$> a) <*> bWill there also be an optimisation for some sort of simple patterns? I.e., where we could rewrite this to:liftA2 (\pa pb -> f ...) a bI think I remember someone saying that the one-at-a-time application of <*> inhibits certain optimisations.
I find (a << b) confusing. The intended semantics seem to be "effect a", then "effect b", return result of "a".