swarm/test
Brent Yorgey 02b151f0ff
Refactor: move pretty-printing and failure code to swarm-util (#2155)
`Swarm.Language.Pretty` (in the `swarm-lang` package) had a bunch of generic pretty-printing infrastructure along with a bunch of specific instances for terms and related things.  However, the generic pretty-printing code infrastructure is not specific to swarm-lang.  This PR:

- Moves the generic pretty-printing infrastructure + utilities to `Swarm.Pretty` in `swarm-util` to make it more generally applicable.
- Distributes all the actual `PrettyPrec` instances to live next to the declarations of the corresponding data types.

In addition, `Swarm.Game.Failure` (in the `swarm-scenario` package) also had no dependencies on anything else in `swarm-scenario`, so this PR also moves it to `Swarm.Failure` in `swarm-util`, to make it more generally applicable.

Along the way I also removed `DelayType` and `Prec` since they are no longer being used.
2024-09-29 22:04:10 +00:00
..
bench Refactor: move pretty-printing and failure code to swarm-util (#2155) 2024-09-29 22:04:10 +00:00
integration Refactor: move pretty-printing and failure code to swarm-util (#2155) 2024-09-29 22:04:10 +00:00
standalone-topography/src Fix growable structure grids for multiple children with negative coordinates (#2127) 2024-09-16 20:14:44 +00:00
tournament-host Implement GitHub authentication (#1856) 2024-05-22 00:27:21 +00:00
unit Refactor: move pretty-printing and failure code to swarm-util (#2155) 2024-09-29 22:04:10 +00:00