Skip to content

Error related to OverloadedLists not reported as such #389

Open
@ysangkok

Description

@ysangkok

Reproduction repo: https://github.com/ysangkok/openapi3/tree/janus/weird-doctest

 % cabal repl --with-ghc=doctest
Resolving dependencies...
Build profile: -w ghc-9.4.2 -O1
In order, the following will be built (use -v for more details):
 - openapi4-3.2.2 (exe:openapi4) (first run)
Configuring executable 'openapi4' for openapi4-3.2.2..
Preprocessing executable 'openapi4' for openapi4-3.2.2..
src/Data/UsesList.hs:4: failure in expression `import Data.UsesList'
expected: 
 but got: 
          ^
          <no location info>: error:
              Could not find module ‘Data.UsesList’
              It is not a module in the current program, or in any known package.

Examples: 3  Tried: 2  Errors: 0  Failures: 1
Error: cabal: repl failed for exe:openapi4 from openapi4-3.2.2.

If I remove :set -XOverloadedLists in src/Main.hs, the test passes.

It is confusing because there is no reporting hint that the error is caused by OverloadedLists.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions