haskell / haskell/cabal

Empty extra fields in config file breaks cabal

Open
#5,935 6 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.