haskell / haskell/cabal

Conditionals in cabal file for tests & benchmarks

Open
#1,817 4 comments 0 reactions 0 assignees View on GitHub
type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

The flag `enabled(feature)` would be nice, where `feature` can be `tests` or `benchmarks`. As of now, I have to remember to also pass an `-ftests` flag when configuring my project, if any library files have test-specific behavior.

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.