Skip to content

Commit ef33f5b

Browse files
add a devel flag to avoid having to switch between the examples and the
main library during development
1 parent 365ac6a commit ef33f5b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

constrained-generators.cabal

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ source-repository head
1515
type: git
1616
location: https://github.com/input-output-hk/constrained-generators
1717

18+
flag devel
19+
description: Enable development mode
20+
default: False
21+
manual: True
22+
1823
library
1924
exposed-modules:
2025
Constrained.API
@@ -46,6 +51,23 @@ library
4651
Constrained.TypeErrors
4752

4853
hs-source-dirs: src
54+
55+
if flag(devel)
56+
exposed-modules:
57+
Constrained.Examples
58+
Constrained.Examples.Basic
59+
Constrained.Examples.BinTree
60+
Constrained.Examples.CheatSheet
61+
Constrained.Examples.Either
62+
Constrained.Examples.Fold
63+
Constrained.Examples.List
64+
Constrained.Examples.ManualExamples
65+
Constrained.Examples.Map
66+
Constrained.Examples.Set
67+
Constrained.Examples.Tree
68+
69+
hs-source-dirs: src examples
70+
4971
default-language: Haskell2010
5072
ghc-options:
5173
-Wall

0 commit comments

Comments
 (0)