Closed amosr closed 6 years ago
so I think we decided to print without annotations in lets and folds in particular because they were very hard to read. You read this way more often though, so up to you.
Still would be nice to have an option to turn them off.
Still would be nice to have an option to turn them off.
This looks like it's only when wrapped in PrettyAnnot
so I think it's already the case that it's optional.
ah right, cool
👍 on 🍇
When prettying with annotations, we were annotating the return type of the let, instead of the binding type, which is kind of confusing. It was also printing the expressions in lets and folds without annotations, so I changed that. Also, there's not much point annotating monomorphic primitives.
True:{Bool}
is boring, butNone:{Option Double}
is interesting.Example below. It's not as pretty because of the annotations inside the case, now, but I think it's more useful.
! @jystic @tranma /jury approved @jystic