purescript-newtype icon indicating copy to clipboard operation
purescript-newtype copied to clipboard

Functions that coerce under some functor aren't very useful anymore.

Open natefaubion opened this issue 4 years ago • 0 comments

Or at least, they are only useful if the functor is known at the call-site, otherwise you will incur a Coercible constraint. Previously just having the Functor instance was enough. Code that used this in a polymorphic setting will no longer compile. I'm not sure this is "wrong", but I'm not entirely sure those effects were anticipated since it's not really referenced in the release notes.

natefaubion avatar Mar 06 '21 17:03 natefaubion