Skip to content

Instantly share code, notes, and snippets.

@ggVGc
Last active August 1, 2022 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ggVGc/d3234983e9bf086e62378979e6a9890a to your computer and use it in GitHub Desktop.
Save ggVGc/d3234983e9bf086e62378979e6a9890a to your computer and use it in GitHub Desktop.
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