Fixed error message
This commit is contained in:
parent
229679f60d
commit
9495c3b12a
3 changed files with 7 additions and 10 deletions
|
|
@ -94,7 +94,7 @@ newtype Rn a = Rn {runRn :: ExceptT String (State Cxt) a}
|
|||
|
||||
getName :: LIdent -> Rn LIdent
|
||||
getName name = maybeToRightM err =<< gets (Map.lookup name . names)
|
||||
where err = "Can't find new name " ++ printTree name
|
||||
where err = "Unbound variable: '" ++ printTree name ++ "'"
|
||||
|
||||
newName :: LIdent -> Rn LIdent
|
||||
newName name = do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue