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" ummaryrefslogtreecommitdiff
path: root/guix.scm
AgeCommit message (Expand)Author
2022-07-12guix: Really export 'define-public'....This is a followup to 3858275962f1ac567b5dce2355035f9eddea0a05, which didn't have any effect. * guix.scm: Explicitly use (guix packages) so #:re-export-and-replace is effective. Ludovic Courtès
2021-09-14guix: Replace 'define-public'....This is a followup to 8531997d2a1e10d574a6e9ab70bc86ade6af4733. * guix.scm: Use #:re-export-and-replace for 'define-public'. Ludovic Courtès
2021-06-29(guix) no longer pulls in (guix ftp-client)....That choice was made in 2014 and never made much sense. * guix.scm (%public-modules): Remove 'ftp-client'. Ludovic Courtès