haskell / haskell/cabal

Have `make style` ignore well-known build dirs

Open
#10,560 8 comments 0 reactions 0 assignees View on GitHub
re: code formatting re: devx type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

Can we have `make style` ignore well-known build directories like `dist-newstyle` and `.stack-work`?

```
$ make style
Cabal-syntax/.stack-work/dist/x86_64-linux/ghc-8.10.7/build/Distribution/Fields/Lexer.hs:45:1
The GHC parser (in Haddock mode) failed:
[GHC-58481] parse error on input `#'
make: *** [Makefile:32: style] Error 102
```

Contributor guide

Open the contributing guide

Research direction

Start with the style target at Makefile:32 and reproduce the failure using the paths shown under dist-newstyle and .stack-work. Update the target so well-known build directories are excluded, then verify that make style no longer parses files from those directories.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
build-system
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.