on package:stack

on b u x y runs the binary function b on the results of applying unary function u to two arguments x and y. From the opposite perspective, it transforms two inputs and combines the outputs.
((+) `on` f) x y = f x + f y
Typical usage: sortBy (compare `on` fst). Algebraic properties:
  • (*) `on` id = (*) -- (if (*) ∉ {⊥, const
    ⊥})
  • ((*) `on` f) `on` g = (*) `on` (f . g)
  • flip on f . flip on g = flip on (g .
    f)
Like finally, but only call after if an exception occurs.
Command must be run on host OS (not in a container).
Whether this action may be run concurrently with others
Concating the result of an action.
Utility newtype wrapper to make Map's Monoid also use the element's Monoid.
Attempted to use a Connection which was already closed
An exception occurred when trying to connect to the server.
Attempting to connect to the server timed out.