haskell-nix / hnix

A Haskell re-implementation of the Nix expression language
https://hackage.haskell.org/package/hnix
BSD 3-Clause "New" or "Revised" License
756 stars 115 forks source link

Check lazyness of datastructures #1057

Open Anton-Latukha opened 2 years ago

Anton-Latukha commented 2 years ago

It is probably beneficial to default to Strict data types, before constructing the case to convert them to Lazy.

A number of places in the code use Lazy data types, which seems like by accident (do not remember any mentions why lazy containers are used).

A bunch of places probably use Lazy data structures, where Strict would be a better fit.