elm-export-persistent 0.1.1 → 0.1.2
raw patch · 3 files changed
+8/−1 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- ChangeLog.md +4/−0
- elm-export-persistent.cabal +1/−1
- src/Elm/Export/Persist/Ent.hs +3/−0
ChangeLog.md view
@@ -1,5 +1,9 @@ # Revision history for elm-export-persistent +## 0.1.2 -- 2017-02-07++* Fixed bug with missing id field from single field tables+ ## 0.1.0.0 -- 2016-12-12 * First version. Released on an unsuspecting world.
elm-export-persistent.cabal view
@@ -2,7 +2,7 @@ -- further documentation, see http://haskell.org/cabal/users-guide/ name: elm-export-persistent-version: 0.1.1+version: 0.1.2 synopsis: elm-export persistent entities description: Ent is a newtype that wraps Persistent Entity's, allowing you to export them
src/Elm/Export/Persist/Ent.hs view
@@ -65,6 +65,9 @@ ElmDatatype name (RecordConstructor x (Values v vals)) -> ElmDatatype name (RecordConstructor x (Values v (addIdToVals keyname vals)))+ ElmDatatype name (RecordConstructor x f@(ElmField _ _)) ->+ ElmDatatype name (RecordConstructor x+ (Values f $ elmIdField (T.pack keyname))) x -> x where keyname :: String