[Question] Output the extensions enabled in a module?
Open
type: enhancement
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
I'm curious how difficult it would be to ask `cabal` (or `Cabal`) what extensions are enabled in a Haskell file. Example:
_Cabal,_
- _in the file `src/Foo/Bar/Baz.hs`,_
- _using the cabal file `./my-project.cabal`,_
- _what extensions are enabled?_
or (`cabal.project` variant) -
_Cabal,_
- _in the file `src/Foo/Bar/Baz.hs`,_
- _using the project file `./cabal.project`,_
- _what extensions are enabled?_
This would be useful for tools like the newly-released [ormolu](https://github.com/tweag/ormolu) formatter, where you basically have to repeat your default-extensions to the tool in its preferred configuration format.
Contributor guide
Assessment
This issue has not been assessed yet.