@@ -118,17 +118,9 @@ class PathMultiPiece s where
118 fromPathMultiPiece :: [S.Text] -> Maybe s
118 fromPathMultiPiece :: [S.Text] -> Maybe s
119 toPathMultiPiece :: s -> [S.Text]
119 toPathMultiPiece :: s -> [S.Text]
121−instance PathMultiPiece [String] where
122− fromPathMultiPiece = Just . map S.unpack
123− toPathMultiPiece = map S.pack
125−instance PathMultiPiece [S.Text] where
121+instance PathPiece a => PathMultiPiece [a] where
126− fromPathMultiPiece = Just
122+ fromPathMultiPiece = mapM fromPathPiece
127− toPathMultiPiece = id
129−instance PathMultiPiece [L.Text] where
130− fromPathMultiPiece = Just . map (L.fromChunks . return)
131− toPathMultiPiece = map $ S.concat . L.toChunks
123+ toPathMultiPiece = map toPathPiece
133{-# DEPRECATED toSinglePiece "Use toPathPiece instead of toSinglePiece" #-}
125{-# DEPRECATED toSinglePiece "Use toPathPiece instead of toSinglePiece" #-}
134toSinglePiece :: PathPiece p => p -> S.Text
126toSinglePiece :: PathPiece p => p -> S.Text