I understand "." (dot) as function composition. I understand "|" (pipe) as "or," guard introduction syntax (from here ), but I saw an answer on http-conduits using ".|" that makes use of this operator in a way I do not understand.
The other references for conduits I have found, such as:
- https://docs.google.com/presentation/d/1RBefOCZ7AKOo4f1yiF4mtKPAT3l5vY9ky2SR02O4Vvg/edit#slide=id.g3c22e35a9_0205
- http://www.yesodweb.com/blog/2014/03/network-conduit-async
...suggest syntax like "$$", "$=", "=$=", "=$" for combining conduits in data flows.
What should I call this ".|" this operator and how does it work?
Predictably, googling for ".| haskell" or "'dot pipe' haskell" or "'dot pipe' haskell operator conduits" were not very successful.
This is just the (recent) new syntax that
conduituses for fusion. The author wrote a blog-post about this not long ago. To quote from the post, he proposed (and eventually did this) toAs an aside, if you ever need to look up operators, Hayoo and Hoogle are the places to go. There is also Stackage Hoogle (thanks @duplode) which lets you look up operators for particular resolvers (which is especially useful here since this is a recent change).