A while ago I posted some Haskell code for sorting a table of hierarchical ordered data into a tree. Since then, I’ve learned a little more Haskell, and about half of the code I wrote is covered by standard libraries, or not necessary. Here’s an slimmed down version that makes greater use of GHC’s wealth of libraries, and for bonus marks, it’s also point free: