File tree 1 file changed +3
-1
lines changed
Cabal/src/Distribution/Simple 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ import Distribution.Utils.Path
57
57
58
58
import qualified Distribution.Compat.CharParsing as P
59
59
60
+ import Control.Arrow ( (&&&) )
60
61
import Control.Monad ( msum )
61
62
import Data.List ( stripPrefix , groupBy )
62
63
import qualified Data.List.NonEmpty as NE
@@ -320,7 +321,8 @@ resolveBuildTarget pkg userTarget fexists =
320
321
where
321
322
classifyMatchErrors errs
322
323
| Just expected' <- NE. nonEmpty expected
323
- = let (things, got:| _) = NE. unzip expected' in
324
+ = let unzip' = fmap fst &&& fmap snd
325
+ (things, got:| _) = unzip' expected' in
324
326
BuildTargetExpected userTarget (NE. toList things) got
325
327
| not (null nosuch) = BuildTargetNoSuch userTarget nosuch
326
328
| otherwise = error $ " resolveBuildTarget: internal error in matching"
You can’t perform that action at this time.
0 commit comments