unisonweb / unison

A friendly programming language from the future
https://unison-lang.org
Other
5.64k stars 267 forks source link

Remove the `Convert` and `Parse` type classes #5115

Closed sellout closed 1 week ago

sellout commented 1 week ago

Overview

These two type classes are overly general, representing a -> b and the even weaker a -> Maybe b operations, respectively. Parse is already unused and Convert has a number of unused instances and the ones that are used are simple enough to inline.

Eliminating these classes makes the code clearer without removing any generality.

This was suggested in https://github.com/unisonweb/unison/pull/5005#issuecomment-2129791691