Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions persistent-mysql-haskell/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions persistent-mysql-haskell/example/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions persistent-mysql-haskell/persistent-mysql-haskell.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: persistent-mysql-haskell
version: 0.6.0
version: 0.6.1
license: MIT
license-file: LICENSE
author: Naushadh <naushadh@protonmail.com>, Felipe Lessa <felipe.lessa@gmail.com>, Michael Snoyman
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions persistent-mysql-haskell/test/CustomConstraintTest.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE StandaloneDeriving #-}

module CustomConstraintTest where

import MyInit
Expand Down
5 changes: 4 additions & 1 deletion persistent-mysql-haskell/test/InsertDuplicateUpdate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE StandaloneDeriving #-}


module InsertDuplicateUpdate where

Expand Down Expand Up @@ -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)
sort dbItems @== sort (map (\(Entity k v) -> Entity k (v { itemSizeSize = itemSizeSize v + 1 })) entities)
4 changes: 4 additions & 0 deletions persistent-mysql-haskell/test/main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down