Use ByteString for paths instead of String

This commit is contained in:
2016-04-04 17:29:35 +02:00
parent c7229061d0
commit 491efe44a3
3 changed files with 263 additions and 101 deletions

View File

@@ -8,6 +8,7 @@ module HPath.Internal
where
import Control.DeepSeq (NFData (..))
import Data.ByteString (ByteString)
import Data.Data
-- | Path of some base and type.
@@ -19,7 +20,7 @@ import Data.Data
--
-- There are no duplicate
-- path separators @\/\/@, no @..@, no @.\/@, no @~\/@, etc.
data Path b = MkPath FilePath
data Path b = MkPath ByteString
deriving (Typeable)
-- | String equality.