Skip to content

Commit 5f1fc17

Browse files
committed
fix shadowed dir
1 parent a336f4b commit 5f1fc17

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Data/Path/Pathy.purs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,8 @@ viewRelDir :: Path Rel Dir Sandboxed -> ViewRelDir
591591
viewRelDir = case _ of
592592
Current -> ViewRelDirCurrent
593593
Root -> unsafeCrashWith "Imposible, Root can't be in Rel path"
594-
ParentIn dir -> unsafeCrashWith "Imposible, ParentIn can't be in Sandboxed path"
595-
In dir n -> ViewRelDirIn (viewRelDir dir) n
594+
ParentIn _ -> unsafeCrashWith "Imposible, ParentIn can't be in Sandboxed path"
595+
In d n -> ViewRelDirIn (viewRelDir d) n
596596

597597

598598
data ViewAbsDir
@@ -603,8 +603,8 @@ viewAbsDir :: Path Abs Dir Sandboxed -> ViewAbsDir
603603
viewAbsDir = case _ of
604604
Current -> unsafeCrashWith "Imposible, Current can't be in Abs path"
605605
Root -> ViewAbsDirRoot
606-
ParentIn dir -> unsafeCrashWith "Imposible, ParentIn can't be in Sandboxed path"
607-
In dir n -> ViewAbsDirIn (viewAbsDir dir) n
606+
ParentIn _ -> unsafeCrashWith "Imposible, ParentIn can't be in Sandboxed path"
607+
In d n -> ViewAbsDirIn (viewAbsDir d) n
608608

609609

610610
data ViewAbsFile
@@ -614,8 +614,8 @@ viewAbsFile :: Path Abs File Sandboxed -> ViewAbsFile
614614
viewAbsFile = case _ of
615615
Current -> unsafeCrashWith "Imposibl, Current can't be in File path"
616616
Root -> unsafeCrashWith "Imposible, Root can't be in File path"
617-
ParentIn dir -> unsafeCrashWith "Imposible, ParentIn can't be in Sandboxed path"
618-
In dir n -> ViewAbsFileIn (viewAbsDir dir) n
617+
ParentIn _ -> unsafeCrashWith "Imposible, ParentIn can't be in Sandboxed path"
618+
In d n -> ViewAbsFileIn (viewAbsDir d) n
619619

620620

621621
data ViewRelFile
@@ -625,5 +625,5 @@ viewRelFile :: Path Rel File Sandboxed -> ViewRelFile
625625
viewRelFile = case _ of
626626
Current -> unsafeCrashWith "Imposibl, Current can't be in File path"
627627
Root -> unsafeCrashWith "Imposible, Root can't be in File path"
628-
ParentIn dir -> unsafeCrashWith "Imposible, ParentIn can't be in Sandboxed path"
629-
In dir n -> ViewRelFileIn (viewRelDir dir) n
628+
ParentIn _ -> unsafeCrashWith "Imposible, ParentIn can't be in Sandboxed path"
629+
In d n -> ViewRelFileIn (viewRelDir d) n

0 commit comments

Comments
 (0)