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
765 stars 115 forks source link

Please, make REPL print some useful depth #777

Open Anton-Latukha opened 3 years ago

Anton-Latukha commented 3 years ago

Currently, REPL by default is in lazy mode. Strict mode prints too much.

Normally REPL should print the sane number of levels, something between 2-6.

Also strict probably should use normalizeValue, not normalForm.

Maybe distinguish thunk and cycke or just replace the <CYCLE> with honest <THUNK>.

Anton-Latukha commented 3 years ago

Previous discussion: https://github.com/haskell-nix/hnix/issues/663