File tree Expand file tree Collapse file tree 2 files changed +19
-13
lines changed Expand file tree Collapse file tree 2 files changed +19
-13
lines changed Original file line number Diff line number Diff line change @@ -16,40 +16,39 @@ cradle:
16
16
cabal:
17
17
- path: " indexed-profunctors/src"
18
18
component: " lib:indexed-profunctors"
19
-
19
+
20
20
- path: " optics-th/src"
21
21
component: " lib:optics-th"
22
-
22
+
23
23
- path: " optics-th/tests"
24
24
component: " optics-th:test:optics-th-tests"
25
-
25
+
26
26
- path: " optics-vl/src"
27
27
component: " lib:optics-vl"
28
-
28
+
29
29
- path: " codegen/./Subtypes.hs"
30
30
component: " optics-codegen:exe:optics-codegen-subtypes"
31
-
31
+
32
32
- path: " optics-core/src"
33
33
component: " lib:optics-core"
34
-
34
+
35
35
- path: " optics-sop/src"
36
36
component: " lib:optics-sop"
37
-
37
+
38
38
- path: " optics-extra/src"
39
39
component: " lib:optics-extra"
40
-
40
+
41
41
- path: " template-haskell-optics/src"
42
42
component: " lib:template-haskell-optics"
43
-
43
+
44
44
- path: " optics/src"
45
45
component: " lib:optics"
46
-
46
+
47
47
- path: " optics/tests"
48
48
component: " optics:test:optics-tests"
49
-
49
+
50
50
- path: " metametapost/src/Cli.hs"
51
51
component: " metametapost:exe:metametapost-optics"
52
-
53
52
54
53
```
55
54
Original file line number Diff line number Diff line change @@ -18,7 +18,14 @@ hieYaml sOrC pkgs =
18
18
(sOrC <> " :\n " <> indent' pkgs)
19
19
20
20
indent' :: String -> String
21
- indent' = unlines . map (" " <> ) . lines
21
+ indent' =
22
+ unlines
23
+ . map
24
+ ( \ l -> case l of
25
+ " " -> " "
26
+ _ -> " " <> l
27
+ )
28
+ . lines
22
29
23
30
cabalComponent :: Name -> Component -> (FilePath , String )
24
31
cabalComponent n (Comp Lib " " p) = (T. unpack p, T. unpack $ " lib:" <> n)
You can’t perform that action at this time.
0 commit comments