Skip to content

Commit 9af78f5

Browse files
authored
Merge pull request #6158 from commercialhaskell/reformat
Minor reformatting
2 parents f2d2c8f + 556985f commit 9af78f5

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

src/Stack/Build/Execute.hs

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2715,21 +2715,22 @@ primaryComponentOptions ::
27152715
-> LocalPackage
27162716
-> [String]
27172717
primaryComponentOptions executableBuildStatuses lp =
2718-
-- TODO: get this information from target parsing instead,
2719-
-- which will allow users to turn off library building if
2720-
-- desired
2721-
(case packageLibraries package of
2722-
NoLibraries -> []
2723-
HasLibraries names ->
2724-
map T.unpack
2725-
$ T.append "lib:" (T.pack (packageNameString (packageName package)))
2726-
: map (T.append "flib:") (Set.toList names)) ++
2727-
map
2728-
(T.unpack . T.append "lib:")
2729-
(Set.toList $ packageInternalLibraries package) ++
2730-
map
2731-
(T.unpack . T.append "exe:")
2732-
(Set.toList $ exesToBuild executableBuildStatuses lp)
2718+
-- TODO: get this information from target parsing instead, which will allow
2719+
-- users to turn off library building if desired
2720+
( case packageLibraries package of
2721+
NoLibraries -> []
2722+
HasLibraries names -> map
2723+
T.unpack
2724+
( T.append "lib:" (T.pack (packageNameString (packageName package)))
2725+
: map (T.append "flib:") (Set.toList names)
2726+
)
2727+
)
2728+
++ map
2729+
(T.unpack . T.append "lib:")
2730+
(Set.toList $ packageInternalLibraries package)
2731+
++ map
2732+
(T.unpack . T.append "exe:")
2733+
(Set.toList $ exesToBuild executableBuildStatuses lp)
27332734
where
27342735
package = lpPackage lp
27352736

0 commit comments

Comments
 (0)