https://sources.debian.org/data/main/h/haskell-persistent/2.13.3.5-2/debian/patches/fix-tests-32-bit Inspired by: https://github.com/yesodweb/persistent/pull/1429 --- a/test/Database/Persist/THSpec.hs +++ b/test/Database/Persist/THSpec.hs @@ -25,6 +25,7 @@ module Database.Persist.THSpec where import Control.Applicative (Const(..)) import Data.Aeson (decode, encode) +import Data.Bits (bitSizeMaybe) import Data.ByteString.Lazy.Char8 () import Data.Coerce import Data.Functor.Identity (Identity(..)) @@ -237,7 +238,10 @@ spec = describe "THSpec" $ do it "should have usual haskell name" $ do fieldHaskell `shouldBe` FieldNameHS "Id" it "should have correct underlying sql type" $ do - fieldSqlType `shouldBe` SqlInt64 + fieldSqlType `shouldBe` + if bitSizeMaybe (0 :: Int) <= Just 32 + then SqlInt32 + else SqlInt64 it "should have correct haskell type" $ do fieldType `shouldBe` FTTypeCon Nothing "Int" a>summaryrefslogtreecommitdiff
path: root/etc/git/commit-msg
AgeCommit message (Expand)Author
2023-10-22build: Add a commit-msg hook that embeds Change-Id in commit messages....Partially implements <https://issues.guix.gnu.org/66027>. This will make it possible to track a merged commit back to its original posting on the mailing list, and open the door to new opportunities such as closing fully merged series automatically. * Makefile.am (COMMIT_MSG_MAGIC): New variable. (.git/hooks/commit-msg): New target. * etc/git/commit-msg: New file. * doc/contributing.texi (Configuring Git): Document Change-Id. Series-changes: 3 - Clarify documentation text, as suggested by Simon Change-Id: Ia92fa958eae600fdd4e180bad494c85db8bb4dd6 Reviewed-by: Simon Tournier <zimon.toutoune@gmail.com> Maxim Cournoyer