Skip to content

Wrong location for "no module export list" warning #4643

Open
@TeofilC

Description

@TeofilC

Your environment

Which OS do you use? NixOS

Which version of GHC do you use and how did you install it? GHC-9.10 using haskell.nix

How is your project built (alternative: link to the project)? cabal-install

Which LSP client (editor/plugin) do you use? emacs+lsp-mode

Which version of HLS do you use and how did you install it? 2.11.0.0, built from source from 4c7e56a

Have you configured HLS in any way (especially: a hie.yaml file)? no

Steps to reproduce

{-# LANGUAGE DeriveAnyClass #-}
module Repro where
foo = 123

Expected behaviour

The warning should be associated to the module header

Actual behaviour

The warning is associated to the LANGUAGE pragma

Debug information

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: ghcidestatus: blockedNot actionable, because blocked by upstream/GHC etc.type: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions