packages feed

groundhog-th 0.4.2 → 0.4.2.2

raw patch · 3 files changed

+52/−3 lines, 3 filesdep ~groundhog

Dependency ranges changed: groundhog

Files

Database/Groundhog/TH/CodeGen.hs view
@@ -216,7 +216,7 @@     toPrim' <- do
       proxy <- newName "p"
       x <- newName "x"
-      let body = [| toPrimitivePersistValue $(varE proxy) $ ((fromPrimitivePersistValue :: DbDescriptor db => Proxy db -> PersistValue -> AutoKeyType db) $(varE proxy)) $(varE x) |]
+      let body = [| toPrimitivePersistValue $(varE proxy) $ ((fromPrimitivePersistValue :: DbDescriptor db => proxy db -> PersistValue -> AutoKeyType db) $(varE proxy)) $(varE x) |]
       funD 'toPrimitivePersistValue [clause [varP proxy, conP conName [varP x]] (normalB body) []]
     fromPrim' <- funD 'fromPrimitivePersistValue [clause [wildP] (normalB $ conE conName) []]
     let context = paramsContext (thTypeParams def) (thConstructors def >>= thConstrFields)
+ changelog view
@@ -0,0 +1,46 @@+0.4.2.2+* Create missing schemas (or databases in MySQL terminology) during migration+* Replace datatype Proxy with type variable++0.4.2+* Switched from utf8-string to text++0.4.0.3+* Added "primitive" mapping which creates PrimitivePersistField instances based on Show/Read or Enum.++0.4.0.2+* Fixed order of unique constraint fields++0.4.0.1+* Fixed a warning in generated code++0.4.0+* References to tables not mapped by groundhog+* Default column values+* Check for already existing unique key phantom datatypes++0.3.1+* Generation of SinglePersistField and PurePersistField instances for keys++0.3+* Reference clauses ON DELETE and ON UPDATE+* Schema qualification+* Added unique constraints of type PRIMARY++0.2+* Improvements of YAML parsing error reporting+* Database indexes+* Support DB-specific column types++0.1.0.3+* Removed upper bound for bytestring+* Support embedded datatypes as part of an unique constraint++0.1.0.2+* Removed upper bound for yaml++0.1.0.1+* Removed upper bound for containers++0.1.0+The first release. The modules were moved from the groundhog package.
groundhog-th.cabal view
@@ -1,5 +1,5 @@ name:            groundhog-th-version:         0.4.2+version:         0.4.2.2 license:         BSD3 license-file:    LICENSE author:          Boris Lykah <lykahb@gmail.com>@@ -11,10 +11,13 @@ cabal-version:   >= 1.6 build-type:      Simple +extra-source-files:+    changelog+ library     build-depends:   base                     >= 4         && < 5                    , bytestring               >= 0.9-                   , groundhog                >= 0.4.0     && < 0.5.0+                   , groundhog                >= 0.4.2.2   && < 0.5.0                    , template-haskell                    , time                     >= 1.1.4                    , containers               >= 0.2