@@ -92,7 +92,7 @@ build ist info emode opts fn tm
9292 hs <- get_holes
9393 ivs <- get_instances
9494 ptm <- get_term
95− -- Resolve remaining type classes. Two passes - first to get the
95+ -- Resolve remaining interfaces. Two passes - first to get the
9696 -- default Num instances, second to clean up the rest
9797 when (not pattern) $
9898 mapM_ (\n -> when (n `elem` hs) $
@@ -152,7 +152,7 @@ build ist info emode opts fn tm
152152 (h: hs) -> do patvar h; mkPat
153153 [] -> return ()
154154
155−-- | Build a term autogenerated as a typeclass method definition.
155+-- | Build a term autogenerated as an interface method definition.
156156--
157157-- (Separate, so we don't go overboard resolving things that we don't
158158-- know about yet on the LHS of a pattern def)
@@ -393,7 +393,7 @@ elab ist info emode opts fn tm
393393 TType _ -> elab' ina (Just fc) (PRef fc [] unitTy)
394394 UType _ -> elab' ina (Just fc) (PRef fc [] unitTy)
395395 _ -> elab' ina (Just fc) (PRef fc [] unitCon)
396− elab' ina fc (PResolveTC (FC "HACK" _ _)) -- for chasing parent classes
396+ elab' ina fc (PResolveTC (FC "HACK" _ _)) -- for chasing parent interfaces
397397 = do g <- goal; resolveTC False False 5 g fn elabRec ist
398398 elab' ina fc (PResolveTC fc')
399399 = do c <- getNameFrom (sMN 0 "__class")
@@ -620,7 +620,7 @@ elab ist info emode opts fn tm
620620 let defined = case lookupTy n ctxt of
621621 [] -> False
622622 _ -> True
623− -- this is to stop us resolve type classes recursively
623+ -- this is to stop us resolve interfaces recursively
624624 -- trace (show (n, guarded)) $
625625 if (tcname n && ina && not intransform)
626626 then erun fc $
@@ -863,10 +863,10 @@ elab ist info emode opts fn tm
863863 else
864864 do ivs <- get_instances
865865 ps <- get_probs
866− -- HACK: we shouldn't resolve type classes if we're defining an instance
866+ -- HACK: we shouldn't resolve interfaces if we're defining an instance
867867 -- function or default definition.
868868 let isinf = f == inferCon || tcname f
869− -- if f is a type class, we need to know its arguments so that
869+ -- if f is an interface, we need to know its arguments so that
870870 -- we can unify with them
871871 case lookupCtxt f (idris_interfaces ist) of
872872 [] -> return ()
@@ -877,7 +877,7 @@ elab ist info emode opts fn tm
877877-- trace ("args is " ++ show args) $ return ()
878878 ns <- apply (Var f) (map isph args)
879879-- trace ("ns is " ++ show ns) $ return ()
880− -- mark any type class arguments as injective
880+ -- mark any interface arguments as injective
881881-- when (not pattern) $
882882 mapM_ checkIfInjective (map snd ns)
883883 unifyProblems -- try again with the new information,
@@ -914,7 +914,7 @@ elab ist info emode opts fn tm
914914 _ -> do solve
915915 hs <- get_holes
916916 ivs' <- get_instances
917− -- Attempt to resolve any type classes which have 'complete' types,
917+ -- Attempt to resolve any interfaces which have 'complete' types,
918918 -- i.e. no holes in them
919919 when (not pattern || (e_inarg ina && not tcgen)) $
920920 mapM_ (\n -> do focus n
@@ -963,7 +963,7 @@ elab ist info emode opts fn tm
963963 (P _ c _, args) ->
964964 case lookupCtxtExact c (idris_interfaces ist) of
965965 Nothing -> return ()
966− Just ci -> -- type class, set as injective
966+ Just ci -> -- interface, set as injective
967967 do mapM_ setinjArg (getDets 0 (interface_determiners ci) args)
968968 -- maybe we can solve more things now...
969969 ulog <- getUnifyLog
@@ -1738,7 +1738,7 @@ pruneByType env (P _ n _) goalty ist as
17381738pruneByType _ t _ _ as = as
17391739
17401740-- Could the name feasibly be the return type?
1741−-- If there is a type class constraint on the return type, and no instance
1741+-- If there is an interface constraint on the return type, and no instance
17421742-- in the environment or globally for that name, then no
17431743-- Otherwise, yes
17441744-- (FIXME: This isn't complete, but I'm leaving it here and coming back
@@ -1809,7 +1809,7 @@ solveAutos ist fn ambigok
18091809 = do autos <- get_autos
18101810 mapM_ (solveAuto ist fn ambigok) (map (\(n, (fc, _)) -> (n, fc)) autos)
18111811
1812−-- Return true if the given error suggests a type class failure is
1812+-- Return true if the given error suggests an interface failure is
18131813-- recoverable
18141814tcRecoverable :: ElabMode -> Err -> Bool
18151815tcRecoverable ERHS (CantResolve f g _) = f
@@ -2820,7 +2820,7 @@ processTacticDecls info steps =
28202820 -- TODO: inaccessible
28212821
28222822 RAddInstance interfaceName instName ->
2823− do -- The type class resolution machinery relies on a special
2823+ do -- The interface resolution machinery relies on a special
28242824 logElab 2 $ "Adding elab script instance " ++ show instName ++
28252825 " for " ++ show interfaceName
28262826 addInstance False True interfaceName instName