Skip to content

Commit ff7b5d9

Browse files
committed
Fixup cpphs invocation for Cabal 3.4.
Also silence warning on unused record wildcards.
1 parent 3180d79 commit ff7b5d9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Data/Thyme/Format.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
{-# LANGUAGE RecordWildCards #-}
44
{-# LANGUAGE StandaloneDeriving #-}
55
{-# LANGUAGE ViewPatterns #-}
6-
{-# OPTIONS_GHC -fno-warn-orphans #-}
6+
{-# OPTIONS_GHC -fno-warn-orphans -Wno-unused-record-wildcards #-}
7+
78
#include "thyme.h"
89

910
-- | Formatting and parsing for dates and times.

thyme.cabal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,12 @@ library
101101
vector >= 0.9,
102102
vector-th-unbox >= 0.2.1.0,
103103
vector-space >= 0.8
104+
104105
if os(windows)
105106
build-depends: Win32
106107
if os(darwin) || os(freebsd)
107108
build-tools: cpphs
108-
ghc-options: -pgmP cpphs -optP--cpp
109+
ghc-options: "-pgmP cpphs --cpp"
109110
if flag(lens) || flag(docs)
110111
build-depends: lens >= 3.9
111112
else

0 commit comments

Comments
 (0)