File tree 1 file changed +1
-3
lines changed
Cabal-syntax/src/Distribution/Types
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE DeriveDataTypeable #-}
2
2
{-# LANGUAGE DeriveGeneric #-}
3
3
{-# LANGUAGE FlexibleContexts #-}
4
- {-# LANGUAGE GeneralizedNewtypeDeriving #-}
5
4
{-# LANGUAGE ScopedTypeVariables #-}
6
5
7
6
module Distribution.Types.GenericPackageDescription (
@@ -86,15 +85,14 @@ instance L.HasBuildInfos GenericPackageDescription where
86
85
<*> (traverse . L. _2 . traverseCondTreeBuildInfo) f x4
87
86
<*> (traverse . L. _2 . traverseCondTreeBuildInfo) f x5
88
87
<*> (traverse . L. _2 . traverseCondTreeBuildInfo) f x6
89
- where
90
88
91
89
-- We use this traversal to keep [Dependency] field in CondTree up to date.
92
90
traverseCondTreeBuildInfo
93
91
:: forall f comp v . (Applicative f , L. HasBuildInfo comp )
94
92
=> LensLike' f (CondTree v [Dependency ] comp ) L. BuildInfo
95
93
traverseCondTreeBuildInfo g = node where
96
94
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)
98
96
99
97
node (CondNode comp _ branches) = mkCondNode
100
98
<$> L. buildInfo g comp
You can’t perform that action at this time.
0 commit comments