If I have a newtype
newtype Foo = Foo Int
is there an automatic way to get an Iso' Foo Int
?
I saw I could use makeLenses ''Foo
, but I don't know what is the name of the generated iso.
coerced :: (Coercible s a, Coercible t b) => Iso s t a b
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With