Skip to content

Commit

Permalink
don't build executables unless explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
sdiehl committed Apr 1, 2017
1 parent 048070a commit 9417203
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions repline.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ Source-Repository head
Type: git
Location: git@github.com:sdiehl/repline.git

flag examples
default: False

library
hs-source-dirs: src
exposed-modules: System.Console.Repline
Expand All @@ -35,8 +38,12 @@ executable Simple
default-language: Haskell2010
main-is: Simple.hs
build-depends: base, repline, process, mtl
if flag(examples)
buildable: False

executable Example
default-language: Haskell2010
main-is: Example.hs
build-depends: base, repline, mtl, containers
if flag(examples)
buildable: False

0 comments on commit 9417203

Please sign in to comment.