@@ -209,7 +209,7 @@ renameInModule imports exports (Module mn decls exps) =
209209 bindFunctionArgs (pos, bound) (BinaryNoParens name'@(Qualified (Just _) _) v1 v2) =
210210 (,) (pos, bound) <$> (BinaryNoParens <$> updateValueName name' pos <*> pure v1 <*> pure v2)
211211 bindFunctionArgs pb other = return (pb, other)
212−
212+
213213 bindBinders :: (Maybe SourcePos, [Ident]) -> CaseAlternative -> Either ErrorStack ((Maybe SourcePos, [Ident]), CaseAlternative)
214214 bindBinders (pos, bound) c@(CaseAlternative bs _ _) = return ((pos, binderNames bs ++ bound), c)
215215
@@ -245,7 +245,7 @@ renameInModule imports exports (Module mn decls exps) =
245245 updateType pos (SaturatedTypeSynonym name tys) = (,) <$> pure pos <*> (SaturatedTypeSynonym <$> updateTypeName name pos <*> updateType' tys)
246246 updateType pos (ConstrainedType cs t) = (,) <$> pure pos <*> (ConstrainedType <$> updateConstraints pos cs <*> pure t)
247247 updateType pos t = return (pos, t)
248−
248+
249249 updateType' :: Data d => d -> Either ErrorStack d
250250 updateType' = everywhereWithContextM' Nothing (mkS updateType)
251251
@@ -301,7 +301,7 @@ findExports = foldM addModule $ M.singleton (ModuleName [ProperName "Prim"]) pri
301301
302302 -- Add a declaration from a module to the global export environment
303303 addDecl :: ModuleName -> ExportEnvironment -> Declaration -> Either ErrorStack ExportEnvironment
304− addDecl mn env (TypeClassDeclaration tcn _ ds) = do
304+ addDecl mn env (TypeClassDeclaration tcn _ _ ds) = do
305305 env' <- addTypeClass env mn tcn
306306 foldM (\env'' (TypeDeclaration name _) -> addValue env'' mn name) env' ds
307307 addDecl mn env (DataDeclaration tn _ dcs) = addType env mn tn (map fst dcs)
@@ -389,14 +389,14 @@ resolveImports :: ExportEnvironment -> Module -> Either ErrorStack ImportEnviron
389389resolveImports env (Module currentModule decls _) =
390390 foldM resolveImport' (ImportEnvironment M.empty M.empty M.empty M.empty) (M.toList scope)
391391 where
392−
392+
393393 -- A Map from module name to the source position for the import, the list of imports from that
394394 -- module (where Nothing indicates everything is to be imported), and optionally a qualified name
395395 -- for the module
396396 scope :: M.Map ModuleName (Maybe SourcePos, Maybe ExplicitImports, Maybe ModuleName)
397397 scope = M.insert currentModule (Nothing, Nothing, Nothing) (findImports decls)
398398
399− resolveImport' :: ImportEnvironment -> (ModuleName, (Maybe SourcePos, Maybe ExplicitImports, Maybe ModuleName)) -> Either ErrorStack ImportEnvironment
399+ resolveImport' :: ImportEnvironment -> (ModuleName, (Maybe SourcePos, Maybe ExplicitImports, Maybe ModuleName)) -> Either ErrorStack ImportEnvironment
400400 resolveImport' imp (mn, (pos, explImports, impQual)) = do
401401 modExports <- positioned $ maybe (throwError $ mkErrorStack ("Cannot import unknown module '" ++ show mn ++ "'") Nothing) return $ mn `M.lookup` env
402402 positioned $ resolveImport currentModule mn modExports imp impQual explImports