Skip to content

Add {-# LANGUAGE Data #-} to the top of the file? (y or n)  #1834

Closed
@andreasabel

Description

@andreasabel

When I load a hs file without project (cabal or stack) I get asked

Add {-# LANGUAGE Data #-} to the top of the file? (y or n)

This question can be repeated several times in a row, regardless whether I answer y or n.
Each time I answer y the {-# LANGUAGE Data #-} line will be added (which does not make any sense since LANGUAGE pragmas are idempotent).

The Data extension isn't even listed here: https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/table.html
I don't know what purpose it should serve.

I just upgraded to the latest version of haskell-mode (v20231115) but the problem persists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions