Skip to content

Commit b8b20d5

Browse files
committed
Undo mtl hack
Seven years ago, mtl docs were broken (#251) and needed to be hacked around. Now they're fine, so we can remove the hack.
1 parent 8149c93 commit b8b20d5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Action/Generate.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,6 @@ actionGenerate g@Generate{..} = withTiming (if debug then Just $ replaceExtensio
249249
cbl <- evaluate $ Map.map (\p -> p{packageDepends=[]}) cbl -- clear the memory, since the information is no longer used
250250
evaluate popularity
251251

252-
-- mtl is more popular than transformers, despite having dodgy docs, which is a shame, so we hack it
253-
popularity <- evaluate $ Map.adjust (max $ 1 + Map.findWithDefault 0 (strPack "mtl") popularity) (strPack "transformers") popularity
254-
255252
want <- pure $ if include /= [] then Set.fromList $ map strPack include else want
256253
want <- pure $ case count of Nothing -> want; Just count -> Set.fromList $ take count $ Set.toList want
257254

0 commit comments

Comments
 (0)