Skip to content

Commit

Permalink
Include position info in ScopeShadowing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
garyb committed Jun 14, 2016
1 parent 0d27126 commit 65863a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Language/PureScript/Sugar/Names.hs
Original file line number Diff line number Diff line change
Expand Up @@ -329,5 +329,5 @@ renameInModule imports (Module ss coms mn decls exps) =
_ -> throwUnknown

where
positioned err = maybe err (`rethrowWithPosition` err) pos
positioned err = maybe err (`warnAndRethrowWithPosition` err) pos
throwUnknown = throwError . errorMessage . UnknownName . fmap toName $ qname

0 comments on commit 65863a9

Please sign in to comment.