I am trying to create a "UnMaybe" type family, but it does not compile (conflicting instance family).
Here is my code
{-
Error message
test.hs:4:16: Conflicting family instance declarations: type instance UnMaybe (Maybe a) -- Defined at test.hs:4:16 type instance UnMaybe a -- Defined at test.hs:5:15
I understand why it does not work, anyway there is another way to achieve the same result (or an extension for activation that will allow this?)
source share