@@ -51,12 +51,12 @@ instance Binary ProjectConfigPath
51
51
instance Structured ProjectConfigPath
52
52
53
53
-- | Renders the path like this;
54
- -- @
55
- -- D.config
56
- -- imported by: C.config
57
- -- imported by: B.config
58
- -- imported by: A.project
59
- -- @
54
+ --
55
+ -- > D.config
56
+ -- > imported by: C.config
57
+ -- > imported by: B.config
58
+ -- > imported by: A.project
59
+ --
60
60
-- >>> render . docProjectConfigPath $ ProjectConfigPath $ "D.config" :| ["C.config", "B.config", "A.project"]
61
61
-- "D.config\n imported by: C.config\n imported by: B.config\n imported by: A.project"
62
62
docProjectConfigPath :: ProjectConfigPath -> Doc
@@ -66,19 +66,19 @@ docProjectConfigPath (ProjectConfigPath (p :| ps)) = vcat $
66
66
67
67
-- | Renders the paths as a list without showing which path imports another,
68
68
-- like this;
69
- -- @
70
- -- - cabal.project
71
- -- - project-cabal/constraints.config
72
- -- - project-cabal/ghc-latest.config
73
- -- - project-cabal/ghc-options.config
74
- -- - project-cabal/pkgs.config
75
- -- - project-cabal/pkgs/benchmarks.config
76
- -- - project-cabal/pkgs/buildinfo.config
77
- -- - project-cabal/pkgs/cabal.config
78
- -- - project-cabal/pkgs/install.config
79
- -- - project-cabal/pkgs/integration-tests.config
80
- -- - project-cabal/pkgs/tests.config
81
- -- @
69
+ --
70
+ -- > - cabal.project
71
+ -- > - project-cabal/constraints.config
72
+ -- > - project-cabal/ghc-latest.config
73
+ -- > - project-cabal/ghc-options.config
74
+ -- > - project-cabal/pkgs.config
75
+ -- > - project-cabal/pkgs/benchmarks.config
76
+ -- > - project-cabal/pkgs/buildinfo.config
77
+ -- > - project-cabal/pkgs/cabal.config
78
+ -- > - project-cabal/pkgs/install.config
79
+ -- > - project-cabal/pkgs/integration-tests.config
80
+ -- > - project-cabal/pkgs/tests.config
81
+ --
82
82
--
83
83
-- >>> :{
84
84
-- do
@@ -161,32 +161,30 @@ makeRelativeConfigPath dir (ProjectConfigPath p) =
161
161
-- instead of relative to the file it was imported from.
162
162
--
163
163
-- It converts paths like this:
164
- -- @
165
- -- └─ hops-0.project
166
- -- └─ hops/hops-1.config
167
- -- └─ ../hops-2.config
168
- -- └─ hops/hops-3.config
169
- -- └─ ../hops-4.config
170
- -- └─ hops/hops-5.config
171
- -- └─ ../hops-6.config
172
- -- └─ hops/hops-7.config
173
- -- └─ ../hops-8.config
174
- -- └─ hops/hops-9.config
175
- -- @
164
+ --
165
+ -- > hops-0.project
166
+ -- > └─ hops/hops-1.config
167
+ -- > └─ ../hops-2.config
168
+ -- > └─ hops/hops-3.config
169
+ -- > └─ ../hops-4.config
170
+ -- > └─ hops/hops-5.config
171
+ -- > └─ ../hops-6.config
172
+ -- > └─ hops/hops-7.config
173
+ -- > └─ ../hops-8.config
174
+ -- > └─ hops/hops-9.config
176
175
--
177
176
-- Into paths like this:
178
- -- @
179
- -- └─ hops-0.project
180
- -- └─ hops/hops-1.config
181
- -- └─ hops-2.config
182
- -- └─ hops/hops-3.config
183
- -- └─ hops-4.config
184
- -- └─ hops/hops-5.config
185
- -- └─ hops-6.config
186
- -- └─ hops/hops-7.config
187
- -- └─ hops-8.config
188
- -- └─ hops/hops-9.config
189
- -- @
177
+ --
178
+ -- > hops-0.project
179
+ -- > └─ hops/hops-1.config
180
+ -- > └─ hops-2.config
181
+ -- > └─ hops/hops-3.config
182
+ -- > └─ hops-4.config
183
+ -- > └─ hops/hops-5.config
184
+ -- > └─ hops-6.config
185
+ -- > └─ hops/hops-7.config
186
+ -- > └─ hops-8.config
187
+ -- > └─ hops/hops-9.config
190
188
--
191
189
-- That way we have @hops-8.config@ instead of
192
190
-- @./hops/../hops/../hops/../hops/../hops-8.config@.
0 commit comments