@@ -33,21 +33,21 @@ instance PathPiece L.Text where
34instance PathPiece Integer where
34instance PathPiece Integer where
35 fromPathPiece s =
35 fromPathPiece s =
36− case Data.Text.Read.decimal s of
36+ case Data.Text.Read.signed Data.Text.Read.decimal s of
37 Right (i, _) -> Just i
37 Right (i, _) -> Just i
38 Left _ -> Nothing
38 Left _ -> Nothing
39 toPathPiece = S.pack . show
39 toPathPiece = S.pack . show
41instance PathPiece Int where
41instance PathPiece Int where
42 fromPathPiece s =
42 fromPathPiece s =
43− case Data.Text.Read.decimal s of
43+ case Data.Text.Read.signed Data.Text.Read.decimal s of
44 Right (i, _) -> Just i
44 Right (i, _) -> Just i
45 Left _ -> Nothing
45 Left _ -> Nothing
46 toPathPiece = S.pack . show
46 toPathPiece = S.pack . show
48instance PathPiece Int64 where
48instance PathPiece Int64 where
49 fromPathPiece s =
49 fromPathPiece s =
50− case Data.Text.Read.decimal s of
50+ case Data.Text.Read.signed Data.Text.Read.decimal s of
51 Right (i, _) -> Just i
51 Right (i, _) -> Just i
52 Left _ -> Nothing
52 Left _ -> Nothing
53 toPathPiece = S.pack . show
53 toPathPiece = S.pack . show