Commit Graph

157 Commits

Author SHA1 Message Date
Chris Allen
0acb568445 Updating for UnliftIO, Conduit 1.3, Persistent 2.8 2018-02-27 17:45:25 -06:00
Chris Allen
52d546f60b Matt's SQL compatible changes 2018-02-27 16:47:32 -06:00
Chris Allen
103fb6bf6b Fintan remove CPP 2018-02-27 16:45:07 -06:00
Matt Parsons
86c4c1a7b6 bump deps 2018-02-15 17:50:12 -07:00
Matt Parsons
7808bc982c Compatibility with new persistent 2018-01-19 09:59:35 -07:00
Sebastián Estrella
ea6f1807a4 Add arrayAggDistinct wrapper for PostgreSQL function 2018-01-10 10:02:44 -05:00
Matt Parsons
07167f6474 use upstream persistent 2017-10-23 11:16:59 -06:00
Fintan Halpenny
dd814584f3 No more CPP 2017-08-09 22:53:28 +01:00
Fintan Halpenny
3f1ffec01a Cleaning up cabal 2017-08-09 22:50:06 +01:00
Fintan Halpenny
1262c3fef9 Split into multiple testing stanzas and modules for backends
Common/Test.hs holds all common tests and functionality for the backends
2017-08-09 22:44:30 +01:00
Fintan Halpenny
fe4a78d4b6 Moved all describes tests into their own functions.
Factored out the db specific tests and kept the macros as placeholders.
Import everything in the cabal file for now.
Only using the flags to test that everything still works.
2017-08-09 00:19:09 +01:00
Fintan Halpenny
672f6e8884 Bumped up time package upper bound to 1.8.0.2 2017-08-04 15:17:12 +01:00
Fintan Halpenny
03c9590581 Added lower bound for package 2017-08-04 14:10:17 +01:00
Fintan Halpenny
013dc19b15 Accidentally committed True default for postgres 2017-08-03 20:47:43 +01:00
Fintan Halpenny
a4ebae2345 Use type constraint to constrain a to UTCTime 2017-08-02 16:34:46 +01:00
Fintan Halpenny
161914ddbc Added now_ function. Works in the tests (NOTE: It doesn not work in SQLite). Need to see if there is an answer for constraining the in to only know about time 2017-08-02 13:48:21 +01:00
Chris Allen
0c6bba7026 Formatting the Cabal file 2017-05-25 12:07:28 -05:00
Chris Allen
78eaf83859 Whitespace cleanup 2017-05-25 12:00:00 -05:00
Chris Allen
96cc3a546b Merge pull request #20 from ncaq/master
use persistent-sqlite >= 2.1.3
2017-05-25 11:21:18 -05:00
Sibi Prabakaran
52a442fb98
Allow persistent 2.7.0 2017-04-15 18:14:13 +05:30
Herbert Valerio Riedel
3e1d3deede Tighten version bound on base
Given that CI only seems to test against GHC 7.10 & GHC 8.0 it's safe to say that only
`base >= 4.8` is officially supported. And empirically, GHC 7.8.4 runs into the compile error below

```
Configuring component lib from esqueleto-2.5.0...
Preprocessing library esqueleto-2.5.0...
[1 of 5] Compiling Database.Esqueleto.Internal.PersistentImport ( src/Database/Esqueleto/Internal/PersistentImport.hs, /tmp/matrix-worker/1485112890/dist-newstyle/build/x86_64-linux/ghc-7.8.4/esqueleto-2.5.0/build/Database/Esqueleto/Internal/PersistentImport.o )

src/Database/Esqueleto/Internal/PersistentImport.hs:7:1: Warning:
    The import item ‘PersistQuery(..)’ suggests that
    ‘PersistQuery’ has (in-scope) constructors or class methods,
    but it has none
[2 of 5] Compiling Database.Esqueleto.Internal.Language ( src/Database/Esqueleto/Internal/Language.hs, /tmp/matrix-worker/1485112890/dist-newstyle/build/x86_64-linux/ghc-7.8.4/esqueleto-2.5.0/build/Database/Esqueleto/Internal/Language.o )

src/Database/Esqueleto/Internal/Language.hs:55:1: Warning:
    The qualified import of ‘Data.ByteString.Lazy’ is redundant
      except perhaps to import instances from ‘Data.ByteString.Lazy’
    To import instances alone, use: import Data.ByteString.Lazy()
[3 of 5] Compiling Database.Esqueleto.Internal.Sql ( src/Database/Esqueleto/Internal/Sql.hs, /tmp/matrix-worker/1485112890/dist-newstyle/build/x86_64-linux/ghc-7.8.4/esqueleto-2.5.0/build/Database/Esqueleto/Internal/Sql.o )

src/Database/Esqueleto/Internal/Sql.hs:761:32:
    Could not deduce (Functor m1) arising from a use of ‘<$>’
    from the context (SqlSelect a r, MonadIO m1, MonadIO m2)
      bound by the type signature for
                 rawSelectSource :: (SqlSelect a r, MonadIO m1, MonadIO m2) =>
                                    Mode -> SqlQuery a -> SqlReadT m1 (Acquire (C.Source m2 r))
      at src/Database/Esqueleto/Internal/Sql.hs:(753,20)-(758,57)
    or from (SqlBackendCanRead backend)
      bound by the type signature for
                 rawSelectSource :: (SqlBackendCanRead backend) =>
                                    Mode
                                    -> SqlQuery a -> R.ReaderT backend m1 (Acquire (C.Source m2 r))
      at src/Database/Esqueleto/Internal/Sql.hs:(759,1)-(778,35)
    Possible fix:
      add (Functor m1) to the context of
        the type signature for
          rawSelectSource :: (SqlBackendCanRead backend) =>
                             Mode
                             -> SqlQuery a -> R.ReaderT backend m1 (Acquire (C.Source m2 r))
        or the type signature for
             rawSelectSource :: (SqlSelect a r, MonadIO m1, MonadIO m2) =>
                                Mode -> SqlQuery a -> SqlReadT m1 (Acquire (C.Source m2 r))
    In a stmt of a 'do' block: conn <- persistBackend <$> R.ask
    In the expression:
      do { conn <- persistBackend <$> R.ask;
           res <- run conn;
           return $ (C.$= massage) `fmap` res }
    In an equation for ‘rawSelectSource’:
        rawSelectSource mode query
          = do { conn <- persistBackend <$> R.ask;
                 res <- run conn;
                 return $ (C.$= massage) `fmap` res }
          where
              run conn
                = uncurry rawQueryRes
                  $ first builderToText
                    $ toRawSql mode (conn, initialIdentState) query
              massage
                = do { mrow <- C.await;
                       .... }
              process = sqlSelectProcessRow

src/Database/Esqueleto/Internal/Sql.hs:882:26:
    Could not deduce (Functor m) arising from a use of ‘<$>’
    from the context (MonadIO m, SqlSelect a r, IsSqlBackend backend)
      bound by the type signature for
                 rawEsqueleto :: (MonadIO m, SqlSelect a r, IsSqlBackend backend) =>
                                 Mode -> SqlQuery a -> R.ReaderT backend m Int64
      at src/Database/Esqueleto/Internal/Sql.hs:(877,17)-(880,39)
    Possible fix:
      add (Functor m) to the context of
        the type signature for
          rawEsqueleto :: (MonadIO m, SqlSelect a r, IsSqlBackend backend) =>
                          Mode -> SqlQuery a -> R.ReaderT backend m Int64
    In a stmt of a 'do' block: conn <- persistBackend <$> R.ask
    In the expression:
      do { conn <- persistBackend <$> R.ask;
           uncurry rawExecuteCount
           $ first builderToText
             $ toRawSql mode (conn, initialIdentState) query }
    In an equation for ‘rawEsqueleto’:
        rawEsqueleto mode query
          = do { conn <- persistBackend <$> R.ask;
                 uncurry rawExecuteCount
                 $ first builderToText
                   $ toRawSql mode (conn, initialIdentState) query }
```
2017-03-21 22:07:03 +01:00
Chris Allen
6e2b880488 Makefile, LTS for 8.0, bump version 2017-01-22 12:55:05 -06:00
Pascal Wittmann
3658f11a01 Update link in Hackage description 2017-01-16 20:55:16 +01:00
mrkkrp
eaa7c1057f Allow ‘persistent-2.6’ and ‘base-4.9’ 2017-01-11 03:08:10 +03:00
mrkkrp
42bcb97f41 Update source repository link in Cabal file 2017-01-08 18:48:05 +03:00
ncaq
75c3549c86 use persistent-sqlite >= 2.1.3 2016-12-16 15:47:56 +09:00
Chris Allen
ae82ee4826 Getting Travis working 2016-12-14 19:16:07 -06:00
Eric Easley
a5251302c8 Use released persistent-2.5 2016-04-14 15:20:57 -07:00
Felipe Lessa
c30aa5704d Bump version to 2.4.3. 2016-02-12 18:47:37 -02:00
Felipe Lessa
17b9c3be9a Bump version to 2.4.2. 2016-01-14 18:22:43 -02:00
Felipe Lessa
a59953954c Bump version to 2.4.1. 2015-08-11 12:05:24 -03:00
Felipe Lessa
4657230ca7 Bump version to 2.4.0. 2015-08-05 16:15:16 -03:00
Felipe Lessa
e5747fdfbf Bump version to 2.3.0. 2015-08-05 15:54:29 -03:00
Felipe Lessa
78a7fcdaeb New SqlString class, ditch IsString. 2015-08-05 15:54:16 -03:00
Felipe Lessa
9dbdcb53fa Bump version to 2.2.12. 2015-08-05 15:40:54 -03:00
Felipe Lessa
b2998bc7dc Bump version to 2.2.11. 2015-08-02 22:14:06 -03:00
Felipe Lessa
7bd2af01fd Bump version to 2.2.10. 2015-07-16 19:08:38 -03:00
Felipe Lessa
d153dbd40a Bump version to 2.2.9. 2015-07-15 14:20:23 -03:00
Felipe Lessa
6c63f2c5ac Add array_agg function, new PostgreSQL module. 2015-07-15 12:28:26 -03:00
Felipe Lessa
e5150463ad Bump version to 2.2.7. 2015-06-27 12:29:27 -03:00
Felipe Lessa
dd9c190da3 Bump version to 2.2.6. 2015-06-24 17:12:45 -03:00
Felipe Lessa
a6186ec0f2 Remove persistent upper bounds from test suite. 2015-06-24 17:11:42 -03:00
Felipe Lessa
ddf22d358d Bump version to 2.2.5. 2015-06-24 11:09:33 -03:00
Felipe Lessa
6db7f3515c Accept persistent-2.2. 2015-06-24 11:09:25 -03:00
Felipe Lessa
1803970ea4 Bump version to 2.2.4. 2015-06-19 15:45:39 -03:00
Felipe Lessa
0e734e79e0 Bump version to 2.2.3. 2015-05-20 13:48:04 -03:00
Felipe Lessa
53f31f4f62 Bump version to 2.2.2. 2015-05-18 17:51:17 -03:00
Felipe Lessa
72f29e436b Bump version to 2.2.1. 2015-05-12 13:19:01 -03:00
Felipe Lessa
da5f8240c7 Remove beta warning (wat?). 2015-05-12 12:13:15 -03:00
Felipe Lessa
c8ee46f702 Bump version to 2.2. 2015-04-27 17:02:19 -03:00