@@ -71,18 +71,23 @@ source-repository head
7171 type: git
7272 location: https://github.com/composewell/streamly
7373
74+flag diag
75+ description: Diagnostics build
76+ manual: True
77+ default: False
78+
7479flag dev
75− description: Build development version
80+ description: Development build
7681 manual: True
7782 default: False
7883
7984flag examples
80− description: Build examples
85+ description: Build including examples
8186 manual: True
8287 default: False
8388
8489flag examples-sdl
85− description: Include examples that use SDL dependency
90+ description: Build including SDL examples
8691 manual: True
8792 default: False
8893
@@ -103,7 +108,11 @@ library
103108 default-language: Haskell2010
104109 ghc-options: -Wall
105110
111+ if flag(diag)
112+ cpp-options: -DDIAGNOSTICS
113+
106114 if flag(dev)
115+ cpp-options: -DDIAGNOSTICS
107116 ghc-options: -Wmissed-specialisations
108117 -Wall-missed-specialisations
109118 -fno-ignore-asserts