Skip to content

Instantly share code, notes, and snippets.

@ggVGc
Created August 1, 2022 20:11
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/4d208a6751919aa39e088605fa7a5a7d to your computer and use it in GitHub Desktop.
Save ggVGc/4d208a6751919aa39e088605fa7a5a7d to your computer and use it in GitHub Desktop.
data Ref where
Ref :: (HasDefName def) => def -> BoundID -> Ref
instance HasDefName Ref where
getDefName (Ref def _) = getDefName def
class HasDefName a where
getDefName :: a -> String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment