1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

Show the friendly qualified name for free variable error msg

This commit is contained in:
Timothy Clem 2018-03-15 15:06:27 -07:00
parent 6f738ee625
commit f72d7f20df

View File

@ -110,7 +110,7 @@ instance Show1 Identifier where liftShowsPrec = genericLiftShowsPrec
instance Evaluatable Identifier where
eval (Identifier name) = do
env <- askLocalEnv
maybe (fail ("free variable: " <> show name)) deref (envLookup name env)
maybe (fail ("free variable: " <> show (friendlyName name))) deref (envLookup name env)
instance FreeVariables1 Identifier where
liftFreeVariables _ (Identifier x) = Set.singleton x