Last active
August 1, 2022 20:00
-
-
Save ggVGc/d3234983e9bf086e62378979e6a9890a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
instance HasDefName def => HasDefName (Ref def) where | |
getDefName Proxy = (getDefName (Proxy :: Proxy def)) | |
-- • Could not deduce (HasDefName a0) | |
-- arising from a use of ‘getDefName’ | |
-- from the context: HasDefName def | |
-- bound by the instance declaration at src/NewRange.hs:104:10-47 | |
-- The type variable ‘a0’ is ambiguous | |
-- These potential instance exist: | |
-- instance HasDefName def => HasDefName (Ref def) | |
-- -- Defined at src/NewRange.hs:104:10 | |
-- • In the expression: getDefName (Proxy :: Proxy def) | |
-- In an equation for ‘getDefName’: | |
-- getDefName Proxy = (getDefName (Proxy :: Proxy def)) | |
-- In the instance declaration for ‘HasDefName (Ref def)’ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment