Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 ;)

like image 368
GniruT Avatar asked Mar 19 '14 09:03

GniruT


People also ask

What is the scope of import import scope?

import scope is only supported on a dependency of type pom in the dependencyManagement section. It indicates the dependency to be replaced with the effective list of dependencies in the specified POM’s dependencyManagement section.

What are notebook-scoped Python libraries?

With notebook-scoped libraries, you can create, modify, save, reuse, and share Python environments. Notebook-scoped libraries are available using %pip and %conda magic commands in Databricks Runtime ML 6.4 and above and using %pip magic commands in Databricks Runtime 7.1 and above. See Notebook-scoped Python libraries.

Why can’t I install notebook-scoped libraries in Custom containers?

Custom containers that use a conda-based environment are not compatible with notebook-scoped libraries in Databricks Runtime 9.0 and above and with cluster libraries in Databricks Runtime 10.1 and above. Instead, Azure Databricks recommends installing libraries directly in the image or using init scripts.

What is import scope in Maven 7?

Import Scope 7. Transitivity Resolution This is maven default scope. Dependencies with compile scope are needed to build, test, and run the project. Scope compile is to be required in most of the cases to resolve the import statements into your java classes sourcecode. Maven dependency scope provided is used during build and test the project.


1 Answers

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?

like image 182
kosmikus Avatar answered Oct 02 '22 18:10

kosmikus