Open meooow25 opened 2 months ago
Might be worth noting that we already use a couple of extensions in a non-portable way
CPP
- Primarily to guard GHC features, including other extensions, or provide faster implementations on GHCBangPatterns
- Compared to the portable alternative (seq
), this is just so much nicer to use and read.
We can define folds for
Seq
more efficiently. See thread starting https://github.com/haskell/containers/issues/1016#issuecomment-2336465956 and in particular the code by treeowl in https://github.com/haskell/containers/issues/1016#issuecomment-2337033674The catch is that we need GADTs, which is not portable.