Skip to content

Improved help suggested in the error message about "import".

I know that improving error messages is a headache in Haskell. But we still need to point out the mistakes or the nonsense. Here are some examples of import test "module" at the beginning of the program (any). I randomly chose the "Data" module. Below each import, the response from GHC. And below, my opinion.\\

import Data.Aaa
Failed to load interface for `Data.Aaa'
Perhaps you meant
  Data.Data (from base-4.9.1.0)
  Data.Map (from containers-0.5.7.1)

No relationship.\\

import Data.Bbb
Failed to load interface for `Data.Bbb'

Ok.\\

import Data.Ccc
Failed to load interface for `Data.Ccc'

Ok.\\

import Data.Ddd
Failed to load interface for `Data.Ddd'
Perhaps you meant Data.Ord (from base-4.9.1.0)

No relationship.\\

import Data.Eee
Failed to load interface for `Data.Eee'
Perhaps you meant
  Data.Eq (from base-4.9.1.0)
  Data.Set (from containers-0.5.7.1)
  Data.Tree (from containers-0.5.7.1)

No relationship.\\ I stopped looking because I do not know how to correct it.

Trac metadata
Trac field Value
Version 8.0.2
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information