purescript-newtype
purescript-newtype copied to clipboard
Type class and functions for working with newtypes
Something like ```purescript unwrapF :: forall f a b. (Functor f, Newtype a b) => f a -> f b unwrapF = unsafeCoerce ```
So I came up with this thing: ``` purescript what :: forall f g t a b . Functor f => Functor g => Newtype t b => (b ->...
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....
fixes #10