hashtag-coerce is a GHC plugin which could potentially be a very good mix with this library. The reason I say this is that yes, while something like
ala :: (Coercible a b, Coercible a' b')
=> (a -> b)
-> ((a -> b) -> c -> b')
-> c
-> a'
is most certainly very useful, it is perhaps not the most 'recognisable'. By 'recognisable', I mean that it might be difficult for a programmer to recognise their ability to use this function (which would usually arise by replacing code that performs manual transformations with ala). Especially with some of the larger (in type signature) coercible-utils! That is why I think it might be a good idea to use that plugin in addition to this library.
https://github.com/mpickering/hashtag-coerce
hashtag-coerce is a GHC plugin which could potentially be a very good mix with this library. The reason I say this is that yes, while something like
is most certainly very useful, it is perhaps not the most 'recognisable'. By 'recognisable', I mean that it might be difficult for a programmer to recognise their ability to use this function (which would usually arise by replacing code that performs manual transformations with
ala
). Especially with some of the larger (in type signature) coercible-utils! That is why I think it might be a good idea to use that plugin in addition to this library.