Skip to content

Commit 5ba755d

Browse files
committed
Renamed demo flag and added description
1 parent 6c7bcea commit 5ba755d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

json-rpc-server.cabal

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ source-repository head
2222
type: git
2323
location: https://github.com/grayjay/json-rpc-server
2424

25-
flag include-demo
25+
flag demo
26+
description: Builds the demo Happstack JSON RPC server.
2627
default: False
2728
manual: True
2829

@@ -43,7 +44,7 @@ library
4344
executable demo
4445
main-is: Demo.hs
4546
hs-source-dirs: demo
46-
if flag (include-demo)
47+
if flag (demo)
4748
build-depends: base,
4849
json-rpc-server,
4950
mtl,

src/Network/JsonRpc/Server.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ import Prelude hiding (length)
6363

6464
-- $example
6565
-- Here is an example of a simple Happstack server with three methods.
66-
-- Compile it with the build flag @include-demo@.
66+
-- Compile it with the build flag @demo@.
6767
--
6868
-- > <insert Demo.hs>
6969
--

0 commit comments

Comments
 (0)