I've published a package that can be used to pretty print a rich diff between two Gleam values
For example:
let jak_likes = ["FP", "Gleam", "programming"]
let jak_langs = dict.from_list([#("Italian", Native), #("English", C2), #("Spanish", A1)])
let jak = User("Giacomo", 25, jak_likes, jak_langs)
let tom_likes = ["OOP", "Java", "programming", "playing the piano"]
let tom_langs = dict.from_list([#("Italian", Native), #("English", C1), #("Japanese", C1)])
let other = User("Tommaso", 25, tom_likes, tom_langs)
pretty_diff.from(one, and: other)
```
Will result in this pretty printed diff!
https://github.com/giacomocavalieri/pretty_diff/tree/v1.0.0
GitHub
⚖️ Pretty printing the difference between Gleam values - GitHub - giacomocavalieri/pretty_diff at v1.0.0