Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
klntsky committed Jul 13, 2019
1 parent 03e2f5d commit f833e88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SearchIndex.hs
Expand Up @@ -398,6 +398,7 @@ compareTypes type1 type2 =
go :: D.Type' -> D.Type' -> WriterT [(Text, Text)] Maybe Int
go (P.TypeVar _ v1) (P.TypeVar _ v2) = tell [(v1, v2)] *> pure 0
go t (P.TypeVar _ _) = pure (1 + typeComplexity t)
go (P.TypeVar _ _) t = pure (typeComplexity t)
go (P.TypeLevelString _ s1) (P.TypeLevelString _ s2) | s1 == s2 = pure 0
go (P.TypeWildcard _ _) t = pure (typeComplexity t)
go (P.TypeConstructor _ q1) (P.TypeConstructor _ q2) | compareQual q1 q2 = pure 0
Expand Down

0 comments on commit f833e88

Please sign in to comment.