Skip to content

Commit

Permalink
Merge pull request #175 from bubba/build-demo-flag
Browse files Browse the repository at this point in the history
Add stack.yaml for 8.6.5 and mask lsp-hello behind flag
  • Loading branch information
alanz authored Jun 12, 2019
2 parents 491d8d2 + ba0bf1f commit 9a69f08
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ It can also be used with emacs, see https://github.com/emacs-lsp/lsp-haskell

## Using the example server

stack install
stack install :lsp-hello --flag haskell-lsp:demo

will generate a `lsp-hello` executable.

Expand Down
7 changes: 7 additions & 0 deletions haskell-lsp.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ executable lsp-hello
, vector
-- the package library. Comment this out if you want repl changes to propagate
, haskell-lsp
if !flag(demo)
buildable: False

flag demo {
description: Build the lsp-hello demo executable
default: False
}

test-suite haskell-lsp-test
type: exitcode-stdio-1.0
Expand Down
13 changes: 13 additions & 0 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
resolver: lts-13.25 # GHC 8.6.5

packages:
- '.'
- ./haskell-lsp-types

extra-deps:
- rope-utf16-splay-0.3.1.0

flags: {}
extra-package-dbs: []
nix:
packages: [icu]

0 comments on commit 9a69f08

Please sign in to comment.