kowainik / kowainik/extensions

Support Haskell2010 as pragma

Open
#106 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
48
Forks
11
PR merge metrics
No merged PRs in 30d

Description

`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) (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

```haskell
readExtension :: String -> Maybe Extension
```
with

```haskell
readExtension :: String -> [Extension]
```

and yield `default2010Extensions` in the case of `Haskell2010`.

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

Contributor guide

Open the contributing guide

Research direction

Start at the readExtension entry point and compare how existing extension names are converted to Extension values. Trace its callers to account for the proposed return-type change, then verify that Haskell2010 yields default2010Extensions and that Haskell2010 pragmas are accepted as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
compilers
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.