git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix shadowing issue
commitaa99fb9ba870c700de1d5b205abb737789701ad8 authorTibor Erdesz <erdeszt@gmail.com> dateSun 23 Aug 2015, 15:54 (11 years ago) parente4dca75
1 file changed+3−3
src/Language/PureScript/TypeChecker.hs+3−3
src/Language/PureScript/TypeChecker.hs+3−3
@@ -246,9 +246,9 @@ typeCheckAll mainModuleName moduleName exps ds = mapM go ds <* mapM_ checkOrphan
246246 where
247247
248248 checkOrphanInstance :: ModuleName -> Qualified ProperName -> [Type] -> Check ()
249− checkOrphanInstance mn (Qualified (Just mn') _) tys
250− | mn == mn' || any checkType tys = return ()
251− | otherwise = throwError . errorMessage $ OrphanInstance dictName className tys
249+ checkOrphanInstance mn (Qualified (Just mn') _) tys'
250+ | mn == mn' || any checkType tys' = return ()
251+ | otherwise = throwError . errorMessage $ OrphanInstance dictName className tys'
252252 where
253253 checkType :: Type -> Bool
254254 checkType (TypeVar _) = False