@@ -125,7 +125,7 @@ instance PathPiece a => PathMultiPiece [a] where
125125 fromPathMultiPiece = mapM fromPathPiece
126126 toPathMultiPiece = map toPathPiece
127127
128−-- | Since 0.2.1. A function for helping generate free 'PathPiece'
128+-- | A function for helping generate free 'PathPiece'
129129-- instances for enumeration data types
130130-- that have derived 'Read' and 'Show' instances.
131131-- Intended to be used like this:
@@ -136,10 +136,13 @@ instance PathPiece a => PathMultiPiece [a] where
136136-- > fromPathPiece = readFromPathPiece
137137-- > toPathPiece = showToPathPiece
138138--
139+-- Since 0.2.1.
139140readFromPathPiece :: Read s => S.Text -> Maybe s
140141readFromPathPiece = readMaybe . S.unpack
141142
142−-- | Since 0.2.1. See the documentation for 'readFromPathPiece'.
143+-- | See the documentation for 'readFromPathPiece'.
144+--
145+-- Since 0.2.1.
143146showToPathPiece :: Show s => s -> S.Text
144147showToPathPiece = S.pack . show
145148