haskell-issues
haskell-issues copied to clipboard
(f .: g) x = f . g x
I seem to be using this so often I can only attribute it to that phenomenon where after you just learned something you start seeing it everywhere.
For example:
foo = asd . evalState (do
dsa
sda
)
transformed into
foo = asd .: evalState $ do
dsa
sda
Also consider (.) = fmap, (.:) = fmap . fmap and (.::) = fmap . fmap . fmap
Related Strange Loop talk: https://www.youtube.com/watch?v=seVSlKazsNk