summaryrefslogtreecommitdiff
path: root/standalone/no-th/haskell-patches/persistent-template_stub-out.patch
blob: e1079d7d7c18a3bf150c3290afaedb6de3ddb06b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From 93431ffee852ead6a9354f91f911ce2cd1bde5b0 Mon Sep 17 00:00:00 2001
From: Joey Hess <joeyh@joeyh.name>
Date: Sun, 22 Feb 2015 15:21:19 -0400
Subject: [PATCH] stub out TH

this method avoids needing to delete the entire file contents, so patch is
kept minimal
---
 persistent-template.cabal   | 1 +
 stub/Database/Persist/TH.hs | 8 ++++++++
 2 files changed, 9 insertions(+)
 create mode 100644 stub/Database/Persist/TH.hs

diff --git a/persistent-template.cabal b/persistent-template.cabal
index 59b4149..4705d97 100644
--- a/persistent-template.cabal
+++ b/persistent-template.cabal
@@ -30,6 +30,7 @@ library
     ghc-options:     -Wall
     if impl(ghc >= 7.4)
        cpp-options: -DGHC_7_4
+    hs-source-dirs: stub
 
 test-suite test
     type:          exitcode-stdio-1.0
diff --git a/stub/Database/Persist/TH.hs b/stub/Database/Persist/TH.hs
new file mode 100644
index 0000000..1833b2d
--- /dev/null
+++ b/stub/Database/Persist/TH.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE RecordWildCards #-}
+{-# LANGUAGE CPP #-}
+{-# LANGUAGE OverloadedStrings #-}
+{-# LANGUAGE RankNTypes #-}
+{-# OPTIONS_GHC -fno-warn-orphans -fno-warn-missing-fields #-}
+-- | This module provides utilities for creating backends. Regular users do not
+-- need to use this module.
+module Database.Persist.TH where
-- 
2.1.4