Empty extra fields in config file breaks cabal
Open
type: bug
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
I am using `cabal user-config` to script `cabal` config changes and have noticed that removing entries results sometimes In an empty field with just a whitespace. e.g.
```
extra-library-path:
```
This breaks all compilation as cabal will now output `-L ` with a space and no path. Causing the rest of the toolchain to assume whatever is next is a path or library!
This is a bit of a showstopper for me at the moment.
Contributor guide
Assessment
This issue has not been assessed yet.