@@ -33,21 +33,21 @@ instance PathPiece L.Text where
3333
3434instance PathPiece Integer where
3535 fromPathPiece s =
36− case Data.Text.Read.decimal s of
36+ case Data.Text.Read.signed Data.Text.Read.decimal s of
3737 Right (i, _) -> Just i
3838 Left _ -> Nothing
3939 toPathPiece = S.pack . show
4040
4141instance PathPiece Int where
4242 fromPathPiece s =
43− case Data.Text.Read.decimal s of
43+ case Data.Text.Read.signed Data.Text.Read.decimal s of
4444 Right (i, _) -> Just i
4545 Left _ -> Nothing
4646 toPathPiece = S.pack . show
4747
4848instance PathPiece Int64 where
4949 fromPathPiece s =
50− case Data.Text.Read.decimal s of
50+ case Data.Text.Read.signed Data.Text.Read.decimal s of
5151 Right (i, _) -> Just i
5252 Left _ -> Nothing
5353 toPathPiece = S.pack . show