packages feed

cypher 0.8 → 0.8.1

raw patch · 2 files changed

+13/−5 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Database.Cypher: Entity :: String -> String -> a -> Entity a
- Database.Cypher: entity_properties :: Entity a -> String
- Database.Cypher: instance Eq a => Eq (Entity a)
+ Database.Cypher: instance Eq (Entity a)
+ Database.Cypher: instance Ord (Entity a)

Files

Database/Cypher.hs view
@@ -1,7 +1,9 @@ {-# LANGUAGE OverloadedStrings, TemplateHaskell, DeriveDataTypeable, ScopedTypeVariables, FlexibleInstances, MultiParamTypeClasses #-} module Database.Cypher ( 	Cypher,-	Entity(..),+	entity_data,+	entity_id,+	Entity, 	CypherResult(..), 	LuceneQuery, 	runCypher,@@ -97,10 +99,16 @@  -- | A neo4j node or edge data Entity a = Entity {-	entity_id :: String,+	entity_id :: String, -- ^ The Neo4j node or relationship id 	entity_properties :: String,-	entity_data :: a-} deriving (Show, Eq)+	entity_data :: a -- ^ The Haskell datatype stored in the Neo4j node or relationship+} deriving (Show)++instance Eq (Entity a) where+	a == b = entity_id a == entity_id b++instance Ord (Entity a) where+	compare a b = compare (entity_id a) (entity_id b)  instance FromJSON a => FromJSON (Entity a) where 	parseJSON (Object v) = Entity <$>
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.8+Version:             0.8.1  -- A short (one-line) description of the package. Synopsis:            Haskell bindings for the neo4j "cypher" query language