@@ -51,12 +51,12 @@ instance Binary ProjectConfigPath
5151instance Structured ProjectConfigPath
5252
5353-- | 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+ --
6060-- >>> render . docProjectConfigPath $ ProjectConfigPath $ "D.config" :| ["C.config", "B.config", "A.project"]
6161-- "D.config\n imported by: C.config\n imported by: B.config\n imported by: A.project"
6262docProjectConfigPath :: ProjectConfigPath -> Doc
@@ -66,19 +66,19 @@ docProjectConfigPath (ProjectConfigPath (p :| ps)) = vcat $
6666
6767-- | Renders the paths as a list without showing which path imports another,
6868-- 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+ --
8282--
8383-- >>> :{
8484-- do
@@ -161,32 +161,30 @@ makeRelativeConfigPath dir (ProjectConfigPath p) =
161161-- instead of relative to the file it was imported from.
162162--
163163-- 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
176175--
177176-- 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
190188--
191189-- That way we have @hops-8.config@ instead of
192190-- @./hops/../hops/../hops/../hops/../hops-8.config@.
0 commit comments