From 58359e21975188a02f1e020e3a35c3df8d0939e5 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Mon, 7 Nov 2022 11:32:30 +0000
Subject: [PATCH] th-compat: init at 0.1.4

---
 manifest.dhall     |  1 +
 overlay.nix        |  2 ++
 pkgs/th-compat.nix | 37 +++++++++++++++++++++++++++++++++++++
 3 files changed, 40 insertions(+)
 create mode 100644 pkgs/th-compat.nix

diff --git a/manifest.dhall b/manifest.dhall
index 24ebce5b..32c56642 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -685,6 +685,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "these-skinny" "0.7.5"
     , callHackage "tf-random" "0.5"
     , callHackage "th-abstraction" "0.4.5.0"
+    , callHackage "th-compat" "0.1.4"
     , callHackage "th-env" "0.1.1"
     , callHackage "th-expand-syns" "0.4.10.0"
     , callHackage "th-extras" "0.0.0.6"
diff --git a/overlay.nix b/overlay.nix
index 7d8e3315..38fdd720 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -1017,6 +1017,8 @@ self: with pkgs.haskell.lib; {
 
   th-abstraction = self.callPackage (./pkgs/th-abstraction.nix) { };
 
+  th-compat = self.callPackage (./pkgs/th-compat.nix) { };
+
   th-env = self.callPackage (./pkgs/th-env.nix) { };
 
   th-expand-syns = self.callPackage (./pkgs/th-expand-syns.nix) { };
diff --git a/pkgs/th-compat.nix b/pkgs/th-compat.nix
new file mode 100644
index 00000000..52bdd5c4
--- /dev/null
+++ b/pkgs/th-compat.nix
@@ -0,0 +1,37 @@
+{ mkDerivation
+, base
+, base-compat
+, hspec
+, hspec-discover
+, lib
+, mtl
+, template-haskell
+}:
+mkDerivation {
+  pname = "th-compat";
+  version = "0.1.4";
+  sha256 = "d8f97ac14ab47b6b8a7b0fdb4ff95426322ec56badd01652ac15da4a44d4bab8";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [ base template-haskell ];
+  testHaskellDepends = [
+    base
+    base-compat
+    hspec
+    mtl
+    template-haskell
+  ];
+  testToolDepends = [ hspec-discover ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/haskell-compat/th-compat";
+  description = "Backward- (and forward-)compatible Quote and Code types";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab