From 44d9e02cc20a2de5a74282c0b4e33767ffea588d Mon Sep 17 00:00:00 2001 From: Chris Done Date: Thu, 18 Jun 2015 08:58:01 +0200 Subject: [PATCH] Add note in docs about dropTrailingPathSeparator --- src/Path.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Path.hs b/src/Path.hs index aab1e2f..6780ccf 100644 --- a/src/Path.hs +++ b/src/Path.hs @@ -197,6 +197,10 @@ mkRelFile s = -- Conversion -- | Convert to a 'FilePath' type. +-- +-- All directories have a trailing slash, so if you want no trailing +-- slash, you can use 'System.FilePath.dropTrailingPathSeparator' from +-- the filepath package. toFilePath :: Path b t -> FilePath toFilePath (Path l) = l