File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -281,14 +281,14 @@ appendPath :: forall a b s. Path a Dir s -> Path Rel b s -> Path a b s
281
281
appendPath Current Current = Current
282
282
appendPath Root Current = Root
283
283
appendPath (ParentIn p1) Current = ParentIn (p1 </> Current )
284
- appendPath (In p1 f1) Current = In (unsafeCoerce $ p1 </> Current ) (unsafeCoerce f1)
284
+ appendPath (In p1 f1) Current = In (p1 </> Current ) (unsafeCoerce $ f1)
285
285
appendPath p1 (ParentIn p2) = ParentIn (p1 </> p2)
286
286
appendPath p1 (In p2 f2) = In (p1 </> p2) f2
287
287
-- following cases don't make sense but cannot exist
288
288
appendPath Current Root = Current
289
289
appendPath Root Root = Root
290
290
appendPath (ParentIn p1) Root = ParentIn (p1 </> Current )
291
- appendPath (In p1 f1) Root = In (unsafeCoerce $ p1 </> Current ) (unsafeCoerce $f1)
291
+ appendPath (In p1 f1) Root = In (p1 </> Current ) (unsafeCoerce $ f1)
292
292
293
293
infixl 6 appendPath as </>
294
294
@@ -442,7 +442,7 @@ relativeTo p1 p2 = relativeTo' (canonicalize p1) (canonicalize p2)
442
442
| identicalPath cp1 cp2 = pure Current
443
443
| otherwise = do
444
444
Tuple cp1Path name <- peel cp1
445
- rel <- relativeTo' cp1Path cp2
445
+ rel <- relativeTo' cp1Path cp2
446
446
pure $ overName name
447
447
(\dirN -> rel </> In Current dirN)
448
448
(\fileN -> rel </> In Current fileN)
You can’t perform that action at this time.
0 commit comments