سؤال

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

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

Can anyone say me what am I doing wrong? Thanks ;)

هل كانت مفيدة؟

المحلول

The function readMaybe was added in ghc-7.6.1 (or base-4.6.0.0). Perhaps you're using an older version of GHC?

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top