toUrlPiece and parseUrlPiece are not reversible
Open
- Dominant language
- Haskell
- Stars
- 53
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
```haskell
x :: Double
x = 9.0e3
t :: Text
t = toUrlPiece x
-- t == "9.0e-3"
x' :: Either Text Double
x' = parseUrlPiece t
-- x' == Right 9.000000000000001e-3
isReversible :: Bool
isReversible = Right x == x'
-- isReversible == False
```
The underlying issue is probably in `rational :: Fractional a => Reader a` not being compatible with `show :: Double -> String`.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.