Skip to content
Browse files

new flag, mapdict + include release notes in dist

  • Loading branch information...
1 parent 7b0f668 commit 08556e5e866448ad9cfb164e1d20cb8fe237e8eb Sigbjorn Finne committed Jan 12, 2009
Showing with 9 additions and 1 deletion.
  1. +9 −1 json.cabal
View
10 json.cabal
@@ -15,10 +15,11 @@ license: BSD3
license-file: LICENSE
author: Galois Inc.
maintainer: Sigbjorn Finne <sof@galois.com>
-Copyright: (c) 2007-2008 Galois Inc.
+Copyright: (c) 2007-2009 Galois Inc.
cabal-version: >= 1.2.0
build-type: Simple
extra-source-files:
+ CHANGES
tests/GenericTest.hs
tests/HUnit.hs
tests/Makefile
@@ -76,6 +77,10 @@ flag generic
default: True
description: Add support for generic encoder.
+flag mapdict
+ default: False
+ description: Encode Haskell maps as JSON dicts
+
library
exposed-modules: Text.JSON,
Text.JSON.Types,
@@ -96,3 +101,6 @@ library
exposed-modules: Text.JSON.Pretty
else
build-depends: base < 3
+
+ if flag(mapdict)
+ cpp-options: -DMAP_AS_DICT

0 comments on commit 08556e5

Please sign in to comment.
Something went wrong with that request. Please try again.