How to use Read for Data.Version

Andreas Abel <[email protected]> Sat, 14 Aug 2021 18:53:08 +0200
Newsgroups gmane.comp.lang.haskell.libraries
Message-ID <[email protected]>
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	[email protected]
_______________________________________________
Libraries mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries