on master help sign in
Merge pull request #790 from Profpatsch/wai-app-static-pieces-doc-improvement

wai-app-static: Document the root path representation of `Pieces`

commit9a89f81c9a77f40ce60c87770b6513e920077314 authorMichael Snoyman <michael@snoyman.com> dateSun 26 Jan 2020, 09:36 (7 years ago) parentc9fcede420d42f
1 file changed+2
wai-app-static/WaiAppStatic/Types.hs+2
wai-app-static/WaiAppStatic/Types.hs+2
@@ -59,6 +59,8 @@ toPieces :: [Text] -> Maybe Pieces
5959toPieces = mapM toPiece
6060
6161-- | Request coming from a user. Corresponds to @pathInfo@.
62+--
63+-- The root path is the empty list.
6264type Pieces = [Piece]
6365
6466-- | Values for the max-age component of the cache-control response header.