cypher 0.6 → 0.7
raw patch · 3 files changed
+5/−4 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Data/Aeson/TH/Smart.hs +1/−2
- Database/Cypher.hs +3/−1
- cypher.cabal +1/−1
Data/Aeson/TH/Smart.hs view
@@ -432,8 +432,7 @@ noMatch :: Name -> MatchQ noMatch tName = do- other <- newName "other"- flip (match (varP other)) []+ flip (match wildP) [] (normalB $ [| fail $ printf "No constructors for type %s were present." |] `appE` (sigE (litE $ stringL $ nameBase tName) (conT ''String)))
Database/Cypher.hs view
@@ -44,6 +44,7 @@ import qualified Data.HashMap.Strict as H import Data.Text.Lazy.Builder import Data.Aeson.Encode+import Data.List (elemIndices) -- | Information about your neo4j configuration needed to make requests over the REST api. data DBInfo = DBInfo {@@ -104,7 +105,8 @@ parseJSON _ = mempty instance ToJSON (Entity a) where- toJSON = toJSON . entity_id+ toJSON a = toJSON (read x :: Int) where+ (_, _:x) = splitAt (last (elemIndices '/' (entity_id a))) (entity_id a) $(deriveJSON (drop 3) ''CypherResult) $(deriveJSON (drop 4) ''CypherRequest)
cypher.cabal view
@@ -7,7 +7,7 @@ -- The package version. See the Haskell package versioning policy -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for -- standards guiding when and how versions should be incremented.-Version: 0.6+Version: 0.7 -- A short (one-line) description of the package. Synopsis: Haskell bindings for the neo4j "cypher" query language