mirror of
https://github.com/github/semantic.git
synced 2024-12-24 07:25:44 +03:00
Show the friendly qualified name for free variable error msg
This commit is contained in:
parent
6f738ee625
commit
f72d7f20df
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user