Skip to content

Support Haskell2010 as pragma #106

@jan-christiansen

Description

@jan-christiansen

Haskell2010 is an official GHC extension (https://downloads.haskell.org/ghc/latest/docs/users_guide/exts/table.html) and used in yi-editor/yi (https://github.com/yi-editor/yi/blob/13fa0f7c598a115485572b66fed5bc3cf383d0ef/yi-core/src/Yi/PersistentState.hs#L5), for example. I suggest to support this extension by replacing

readExtension :: String -> Maybe Extension

with

readExtension :: String -> [Extension]

and yield default2010Extensions in the case of Haskell2010.

If this is fine, I will create a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions