Commit Graph

141 Commits

Author SHA1 Message Date
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
Felipe Lessa
45ccbf383f Bump version to 2.1.3. 2015-04-10 23:23:13 -03:00
Alberto Valverde
02fa5350fe bumped up dependency on the lowest persistent version we need 2015-04-10 10:06:34 +02:00
Felipe Lessa
8b67bf9640 Bump version to 2.1.2.3. 2015-04-06 23:43:58 -03:00
Felipe Lessa
41d4cb283a GHC 7.10. 2015-04-06 23:37:48 -03:00
Michael Snoyman
69a4ec0c44 Fix test suite for new SqliteException
Sorry for the breakage @meteficha, and hope you don't mind that I'm
deploying this to Hackage.
2015-03-29 08:29:49 +03:00
Felipe Lessa
abf91a1352 Bump version to 2.1.2.1. 2014-11-24 15:04:11 -02:00
Felipe Lessa
40c4528540 Bump version to 2.1.2. 2014-11-03 12:27:46 -02:00
Felipe Lessa
c13807e6ea Bump version to 2.1.1. 2014-10-23 09:13:04 -02:00
Felipe Lessa
6efe4848c0 text-1.2 2014-10-23 09:12:50 -02:00
Michael Snoyman
a26394d072 persistent 2.1 (pinging @meteficha) 2014-09-30 06:44:15 +03:00
Michael Snoyman
05fbbba86a Support for persistent 2.0.8 2014-09-28 07:05:41 +03:00
Michael Snoyman
bcb620026f Support persistent 2.0.5 2014-09-21 21:34:09 +03:00
Felipe Lessa
e1071c40b6 Bump versions. 2014-09-18 12:15:26 -03:00
Michael Snoyman
4febf46c6a Merge branch 'persistent2' of github.com:fpco/esqueleto
Conflicts:
	esqueleto.cabal
	src/Database/Esqueleto.hs
2014-09-08 09:05:57 +03:00
Felipe Lessa
e915930b15
Bump version to 1.4.4. 2014-07-12 12:01:08 -03:00
Felipe Lessa
bfdb140e46
Bump version to 1.4.3. 2014-07-12 00:27:23 -03:00