TH flag for aeson
Bryan,
Would you consider adding a flag like this so that we can build
modern aeson on architectures without TH?
>From 81339d1943390acac9cf6a4f9a8f2221738a8026 Mon Sep 17 00:00:00 2001
From: Clint Adams <clint@debian.org>
Date: Sat, 7 Jan 2012 19:01:47 -0500
Subject: [PATCH 1/1] TH flag
---
aeson.cabal | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/aeson.cabal b/aeson.cabal
index 50aa4ea..662a670 100644
--- a/aeson.cabal
+++ b/aeson.cabal
@@ -97,14 +97,21 @@ flag developer
description: operate in developer mode
default: False
+flag TH
+ description: Build with Template Haskell
+ default: True
+
library
+ if flag(TH)
+ build-depends: template-haskell
+ exposed-modules: Data.Aeson.TH
+
exposed-modules:
Data.Aeson
Data.Aeson.Encode
Data.Aeson.Generic
Data.Aeson.Parser
Data.Aeson.Types
- Data.Aeson.TH
other-modules:
Data.Aeson.Functions
--
1.7.7.3
Reply to: