haskell / haskell/hackage-server
Undefined variable when built with `MINIMAL`
Open
- Dominant language
- Haskell
- Stars
- 467
- Forks
- 225
- PR merge metrics
- No merged PRs in 30d
Description
In `Distribution.Server.Features`, the definition of `browseFeature` is enclosed in a `#ifndef MINIMAL`/`#endif` block:
https://github.com/haskell/hackage-server/blob/c9952843dcdb02df7ef965c0368923f37af2f326/src/Distribution/Server/Features.hs#L346-L353
But below its usage isn't.
https://github.com/haskell/hackage-server/blob/c9952843dcdb02df7ef965c0368923f37af2f326/src/Distribution/Server/Features.hs#L406-L408
I've not really tested it myself, but I think if built with `MINIMAL`, this will lead to an undefined variable.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.