Not in scope: readMaybe, which library should I import?

I am trying to use the readMaybe function, which should be in the Text.Read library, but when I compile, I get this message:

 Module `Text.Read' does not export `readMaybe'

Can someone tell me what I am doing wrong? Thank;)

+4
source share
1 answer

The function readMaybewas added in ghc-7.6.1 (or base-4.6.0.0). Perhaps you are using an older version of GHC?

+6
source

Source: https://habr.com/ru/post/1532440/


All Articles