Skip to content

Commit

Permalink
Merge pull request #113 from bitemyapp/matt/remove-class
Browse files Browse the repository at this point in the history
Remove the type class
  • Loading branch information
parsonsmatt authored Apr 23, 2019
2 parents a3720b1 + bfb602d commit a0274e3
Show file tree
Hide file tree
Showing 8 changed files with 2,836 additions and 2,806 deletions.
3 changes: 2 additions & 1 deletion esqueleto.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: 079b7696691db785c8028b0c1fad5239285ea361eed8a8f3c05d8a42250dc541
-- hash: 23efdc2ff821db986867d35578cf56e958a8cdc351813fe6c6cfdbd4a173a994

name: esqueleto
version: 2.7.0
Expand Down Expand Up @@ -41,6 +41,7 @@ library
Database.Esqueleto.PostgreSQL
Database.Esqueleto.SQLite
other-modules:
Database.Esqueleto.Internal.Internal
Database.Esqueleto.Internal.PersistentImport
Paths_esqueleto
hs-source-dirs:
Expand Down
12 changes: 6 additions & 6 deletions src/Database/Esqueleto.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module Database.Esqueleto
-- $gettingstarted

-- * @esqueleto@'s Language
Esqueleto( where_, on, groupBy, orderBy, rand, asc, desc, limit, offset
where_, on, groupBy, orderBy, rand, asc, desc, limit, offset
, distinct, distinctOn, don, distinctOnOrderBy, having, locking
, sub_select, (^.), (?.)
, val, isNothing, just, nothing, joinV, withNonNull
Expand All @@ -52,7 +52,7 @@ module Database.Esqueleto
, subList_select, valList, justList
, in_, notIn, exists, notExists
, set, (=.), (+=.), (-=.), (*=.), (/=.)
, case_, toBaseId)
, case_, toBaseId
, ToBaseId(..)
, when_
, then_
Expand Down Expand Up @@ -402,8 +402,8 @@ import qualified Database.Persist

-- | @valkey i = 'val' . 'toSqlKey'@
-- (<https://github.com/prowdsponsor/esqueleto/issues/9>).
valkey :: (Esqueleto query expr backend, ToBackendKey SqlBackend entity, PersistField (Key entity)) =>
Int64 -> expr (Value (Key entity))
valkey :: (ToBackendKey SqlBackend entity, PersistField (Key entity)) =>
Int64 -> SqlExpr (Value (Key entity))
valkey = val . toSqlKey


Expand All @@ -417,8 +417,8 @@ valkey = val . toSqlKey
-- (<https://github.com/prowdsponsor/esqueleto/pull/69>).
--
-- /Since: 1.4.2/
valJ :: (Esqueleto query expr backend, PersistField (Key entity)) =>
Value (Key entity) -> expr (Value (Key entity))
valJ :: (PersistField (Key entity)) =>
Value (Key entity) -> SqlExpr (Value (Key entity))
valJ = val . unValue


Expand Down
Loading

0 comments on commit a0274e3

Please sign in to comment.