Skip to content

Commit

Permalink
Enable/disable flag for tutorial build
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-abrar committed Aug 16, 2023
1 parent a0eafdd commit 6b82544
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Revision history for vessel

## Unreleased

* Add flag for enabling/disabling tutorial build

## 0.3.0.0-r1

* Loosen reflex bounds
Expand Down
5 changes: 4 additions & 1 deletion vessel.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ category: Data
synopsis: Functor-parametric containers
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.7

flag build-tutorial
default: True

library
exposed-modules:
Data.Vessel
Expand Down Expand Up @@ -70,7 +73,7 @@ library
default-language: Haskell2010

library vessel-tutorial
if impl(ghcjs)
if impl(ghcjs) || !flag(build-tutorial)
buildable: False

hs-source-dirs: tutorial
Expand Down

0 comments on commit 6b82544

Please sign in to comment.