ls lib/haskell/
Haskell
Data.Map, folds and laziness in GHC's libraries.
- draft Data.Map is a tree: how Haskell's containers workWhat containers 0.8 does with your keys: a weight-balanced binary tree for Data.Map, a big-endian Patricia trie for Data.IntMap, path copying on every insert, and how deep the trees really get.
- draft Laziness in practice: foldl, foldl' and thunksWhere lazy evaluation builds chains of thunks in GHC 9.14 programs, when -O2 removes them and when it can't, and the place where laziness saves work: take 3 of a sort.