Skip to content

Could not load module ‘Data.Array’ #281

@MartinErwig

Description

@MartinErwig

Loading a file generated with Alex (version 3.5.4.0) into ghci (version 9.6.7, which is the currently recommended version by ghcup), produces the following error message:

IdNum.hs:9:1: error:
    Could not load module ‘Data.Array’
    It is a member of the hidden package ‘array-0.5.8.0’.
    You can run ‘:set -package array’ to expose it.
    (Note: this unloads all the modules in the current scope.)
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
9 | import qualified Data.Array
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

This can of course be fixed by the user as indicated in the error message, but it would be better if new users (e.g., students in a compilers class) would not have to be bothered with this.

Thanks,
Martin

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationinfo neededMore information (like MWE) is needed (e.g. from reporter)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions