Skip to content

Commit 8a51101

Browse files
wismillmergify[bot]
authored andcommitted
Cleanup
1 parent bc4ba70 commit 8a51101

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Cabal-syntax/src/Distribution/Types/GenericPackageDescription.hs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{-# LANGUAGE DeriveDataTypeable #-}
22
{-# LANGUAGE DeriveGeneric #-}
33
{-# LANGUAGE FlexibleContexts #-}
4-
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
54
{-# LANGUAGE ScopedTypeVariables #-}
65

76
module Distribution.Types.GenericPackageDescription (
@@ -86,15 +85,14 @@ instance L.HasBuildInfos GenericPackageDescription where
8685
<*> (traverse . L._2 . traverseCondTreeBuildInfo) f x4
8786
<*> (traverse . L._2 . traverseCondTreeBuildInfo) f x5
8887
<*> (traverse . L._2 . traverseCondTreeBuildInfo) f x6
89-
where
9088

9189
-- We use this traversal to keep [Dependency] field in CondTree up to date.
9290
traverseCondTreeBuildInfo
9391
:: forall f comp v. (Applicative f, L.HasBuildInfo comp)
9492
=> LensLike' f (CondTree v [Dependency] comp) L.BuildInfo
9593
traverseCondTreeBuildInfo g = node where
9694
mkCondNode :: comp -> [CondBranch v [Dependency] comp] -> CondTree v [Dependency] comp
97-
mkCondNode comp branches = CondNode comp (view L.targetBuildDepends comp) branches
95+
mkCondNode comp = CondNode comp (view L.targetBuildDepends comp)
9896

9997
node (CondNode comp _ branches) = mkCondNode
10098
<$> L.buildInfo g comp

0 commit comments

Comments
 (0)