From 3eed62b20ea67a1540ddc7f697e7fa97c1db15f8 Mon Sep 17 00:00:00 2001 From: Mike Pilgrem Date: Sat, 7 Oct 2023 23:46:14 +0100 Subject: [PATCH] Add `doctest` to `--PROG-option` --- ChangeLog.md | 3 +++ src/Stack/Options/BuildParser.hs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog.md b/ChangeLog.md index 8311e7e063..99dd39dcb5 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -25,6 +25,9 @@ Other enhancements: the newly-created project for use with Stack. * The HTML file paths produced at the end of `stack haddock` are printed on separate lines and without a trailing dot. +* Add option of the form `--doctest-option=` to `stack build`, where + `doctest` is a program recognised by versions of the Cabal library from + `1.24.0.0`. Bug fixes: diff --git a/src/Stack/Options/BuildParser.hs b/src/Stack/Options/BuildParser.hs index 29977bc4af..b24c0110da 100644 --- a/src/Stack/Options/BuildParser.hs +++ b/src/Stack/Options/BuildParser.hs @@ -158,7 +158,7 @@ progsOptionsParser = , "alex" , "c2hs" , "cpphs" --- , "doctest -- Not present in Cabal-1.22.5.0. + , "doctest" , "greencard" , "happy" , "hsc2hs"