diff --git a/cabal.project b/cabal.project index 1da4736..f9164f2 100644 --- a/cabal.project +++ b/cabal.project @@ -8,9 +8,13 @@ index-state: 2022-02-19T11:25:10Z extra-lib-dirs: /usr/pgsql-14/lib -package pg-entity +package * ghc-options: "-L /usr/pgsql-14/lib" haddock-options: "--optghc=-L /usr/pgsql-14/lib" +source-repository-package + type: git + location: https://github.com/ElderEphemera/deriving-th + tag: c1ea0852f03e823d38ad589c4b61949a3c21e1a1 diff --git a/pg-entity.cabal b/pg-entity.cabal index c7bbe3a..a90790c 100644 --- a/pg-entity.cabal +++ b/pg-entity.cabal @@ -93,6 +93,7 @@ library , uuid ^>= 1.3 , vector ^>= 0.12 , text-display ^>= 0.0 + , deriving-th test-suite entity-test import: common-extensions diff --git a/src/Database/PostgreSQL/Entity/Internal/TH.hs b/src/Database/PostgreSQL/Entity/Internal/TH.hs new file mode 100644 index 0000000..1f2a3db --- /dev/null +++ b/src/Database/PostgreSQL/Entity/Internal/TH.hs @@ -0,0 +1,6 @@ +{-# LANGUAGE TemplateHaskell #-} + +module Database.PostgreSQL.Entity.TH where + +import DerivingTH.Class +import Language.Haskell.TH