aelve / haskell-issues

An unofficial issue tracker for all things Haskell-related
18 stars 0 forks source link

(f .: g) x = f . g x #24

Open Gurkenglas opened 8 years ago

Gurkenglas commented 8 years ago

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

neongreen commented 8 years ago

Previous discussions:

(Hm, I expected more.)

ghost commented 7 years ago

Related Strange Loop talk: https://www.youtube.com/watch?v=seVSlKazsNk