diff --git a/persistent-mysql-haskell/ChangeLog.md b/persistent-mysql-haskell/ChangeLog.md index 529de5ca7..ab873fa36 100644 --- a/persistent-mysql-haskell/ChangeLog.md +++ b/persistent-mysql-haskell/ChangeLog.md @@ -1,5 +1,8 @@ # ChangeLog for `persistent-mysql-haskell` +## 0.6.1 +- Fix [#13](https://github.com/naushadh/persistent/pull/13) Make it build on nixos 20.09 + ## 0.6.0 - Port [#977](https://github.com/yesodweb/persistent/pull/977) from `persistent-mysql`: Support Stackage Nightly diff --git a/persistent-mysql-haskell/example/Main.hs b/persistent-mysql-haskell/example/Main.hs index 1ab1660d9..9401a1a32 100644 --- a/persistent-mysql-haskell/example/Main.hs +++ b/persistent-mysql-haskell/example/Main.hs @@ -7,6 +7,8 @@ {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} +{-# LANGUAGE DerivingStrategies #-} +{-# LANGUAGE StandaloneDeriving #-} -- | Taken from http://www.yesodweb.com/book/persistent. module Main where diff --git a/persistent-mysql-haskell/persistent-mysql-haskell.cabal b/persistent-mysql-haskell/persistent-mysql-haskell.cabal index d3706336f..840bab08a 100644 --- a/persistent-mysql-haskell/persistent-mysql-haskell.cabal +++ b/persistent-mysql-haskell/persistent-mysql-haskell.cabal @@ -1,5 +1,5 @@ name: persistent-mysql-haskell -version: 0.6.0 +version: 0.6.1 license: MIT license-file: LICENSE author: Naushadh , Felipe Lessa , Michael Snoyman @@ -43,7 +43,7 @@ library , io-streams >= 1.2 && < 2.0 , time >= 1.5.0 , network >= 2.3 && < 4.0 - , tls >= 1.3.5 && < 1.5 + , tls >= 1.3.5 && < 2.0 exposed-modules: Database.Persist.MySQL other-modules: Database.Persist.MySQLConnectInfoShowInstance ghc-options: -Wall diff --git a/persistent-mysql-haskell/test/CustomConstraintTest.hs b/persistent-mysql-haskell/test/CustomConstraintTest.hs index 40d7255cf..949e85756 100644 --- a/persistent-mysql-haskell/test/CustomConstraintTest.hs +++ b/persistent-mysql-haskell/test/CustomConstraintTest.hs @@ -8,6 +8,9 @@ {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE UndecidableInstances #-} +{-# LANGUAGE DerivingStrategies #-} +{-# LANGUAGE StandaloneDeriving #-} + module CustomConstraintTest where import MyInit diff --git a/persistent-mysql-haskell/test/InsertDuplicateUpdate.hs b/persistent-mysql-haskell/test/InsertDuplicateUpdate.hs index 683c4a333..c4b61ce60 100644 --- a/persistent-mysql-haskell/test/InsertDuplicateUpdate.hs +++ b/persistent-mysql-haskell/test/InsertDuplicateUpdate.hs @@ -5,6 +5,9 @@ {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE UndecidableInstances #-} +{-# LANGUAGE DerivingStrategies #-} +{-# LANGUAGE StandaloneDeriving #-} + module InsertDuplicateUpdate where @@ -141,4 +144,4 @@ specs = describe "DuplicateKeyUpdate" $ do [] [ItemSizeSize +=. 1] dbItems <- selectList [] [] - sort dbItems @== sort (map (\(Entity k v) -> Entity k (v { itemSizeSize = itemSizeSize v + 1 })) entities) \ No newline at end of file + sort dbItems @== sort (map (\(Entity k v) -> Entity k (v { itemSizeSize = itemSizeSize v + 1 })) entities) diff --git a/persistent-mysql-haskell/test/main.hs b/persistent-mysql-haskell/test/main.hs index 6c76cf16d..540b7ba6c 100644 --- a/persistent-mysql-haskell/test/main.hs +++ b/persistent-mysql-haskell/test/main.hs @@ -5,8 +5,12 @@ {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE UndecidableInstances #-} +{-# LANGUAGE DerivingStrategies #-} +{-# LANGUAGE GeneralizedNewtypeDeriving #-} +{-# LANGUAGE StandaloneDeriving #-} {-# OPTIONS_GHC -Wno-unused-top-binds #-} + import MyInit import Data.Time (Day, UTCTime (..), TimeOfDay, timeToTimeOfDay, timeOfDayToTime)