How to use Read for Data.Version

Andreas Abel andreas.abel at ifi.lmu.de
Sat Aug 14 16:53:08 UTC 2021


How is the parser for Data.Version supposed to work?

```haskell
import Data.Version

readVersion :: String -> Version
readVersion = read

main :: IO ()
main = print $ readVersion "8.10.5"

-- *** Exception: Prelude.read: no parse
```

P.S.: Maintainer	libraries at haskell.org


More information about the Libraries mailing list