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" summaryrefslogtreecommitdiff
path: root/gnu/system/uuid.scm
AgeCommit message (Expand)Author
2021-09-23uuid: Support XFS....* gnu/system/uuid.scm (string->xfs-uuid): New procedure. (%uuid-parsers, %uuid-printers): Add ‘xfs’ file system type. Tobias Geerinckx-Rice
2020-11-07uuid: Add support for bcachefs....* gnu/system/uuid.scm (string->bcachefs-uuid): New exported procedure. (%uuid-parsers, %uuid-printers): Add the ‘bcachefs’ file system type. Tobias Geerinckx-Rice
2020-07-26file-systems: Add NTFS support....* gnu/system/uuid.scm (%ntfs-endianness): New macro, (ntfs-uuid->string): new procedure, (%ntfs-endianness): new variable, (string->ntfs-uuid): new exported procedure, (%uuid-parsers): add NTFS support, (%uuid-printers): add NTFS support. * gnu/build/file-systems.scm (%ntfs-endianness): New macro, (ntfs-superblock?, read-ntfs-superblock, ntfs-superblock-uuid, check-ntfs-file-system): new procedure, (%partition-uuid-readers): add NTFS support, (check-file-system): add NTFS support. Mathieu Othacehe
2020-06-18uuid: Prevent a loop on invalid arguments....* gnu/system/uuid.scm (uuid=?): Use type predicates in the fallback case to prevent looping on invalid arguments. Maxim Cournoyer
2020-01-03uuid: Add support for JFS....* gnu/system/uuid.scm (string->jfs-uuid): New procedure. (%uuid-parsers, %uuid-printers): Add ‘jfs’ file system type. Tobias Geerinckx-Rice