Skip to content

Commit

Permalink
Fix stale comments around closed type families.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Eisenberg committed Jun 28, 2013
1 parent 8c5e734 commit 9b456df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/typecheck/FamInst.lhs
Expand Up @@ -35,7 +35,7 @@ import Maybes
import TcMType
import TcType
import Name
import VarSet -- RAE
import VarSet
import Control.Monad
import Data.Map (Map)
import qualified Data.Map as Map
Expand Down
3 changes: 1 addition & 2 deletions compiler/types/FamInstEnv.lhs
Expand Up @@ -784,8 +784,7 @@ findBranch (CoAxBranch { cab_tvs = tpl_tvs, cab_lhs = tpl_lhs, cab_incomps = inc
Just subst -- matching worked. now, check for apartness.
| all (isSurelyApart
. tcApartTys instanceBindFun target_tys
. coAxBranchLHS) $ -- RAE: This is horribly inefficient
incomps
. coAxBranchLHS) incomps
-> -- matching worked & we're apart from all incompatible branches. success
Just (ind, substTyVars subst tpl_tvs)
Expand Down

0 comments on commit 9b456df

Please sign in to comment.