Going through the example code for System.Console.GetOpt got me thinking about the type of foldl (flip id)
Specifically, the second example Interpreting flags as transformations of an options record. The code is using this to combine all of the command-line args into a record of the args as a whole.
I was confused about how foldl (flip id)
has the type it does