cayley-client 0.1.2.1 → 0.1.3.0
raw patch · 2 files changed
+13/−13 lines, 2 filesdep ~aesondep ~attoparsecdep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: aeson, attoparsec, base, bytestring, exceptions, http-client, http-conduit, mtl, text, transformers, unordered-containers, vector
API changes (from Hackage documentation)
Files
- Database/Cayley/Client.hs +9/−9
- cayley-client.cabal +4/−4
Database/Cayley/Client.hs view
@@ -1,4 +1,4 @@-{-# LANGUAGE OverloadedStrings,FlexibleContexts #-}+{-# LANGUAGE OverloadedStrings, FlexibleContexts #-} module Database.Cayley.Client ( Quad (..)@@ -26,11 +26,10 @@ import Data.Maybe (fromJust) import qualified Data.Text as T import Data.Text.Encoding (encodeUtf8)-import Network.HTTP.Client-import Network.HTTP.Client.MultipartFormData- import Database.Cayley.Internal import Database.Cayley.Types+import Network.HTTP.Client+import Network.HTTP.Client.MultipartFormData -- | Get a connection to Cayley with the given configuration. --@@ -78,7 +77,7 @@ -- from it. -- -- >λ> writeQuad conn "Humphrey" "loves" "Lauren" (Just "In love")--- >Just (Object (fromList [("result",String "Successfully wrote 1 triples.")]))+-- >Just (Object (fromList [("result",String "Successfully wrote 1 quads.")])) -- writeQuad :: CayleyConnection -> T.Text -- ^ Subject node@@ -133,7 +132,8 @@ -- | Write a N-Quad file. ----- >λ> writeNQuadFile conn "testdata.nq" >>= successfulResults+-- >λ> writeNQuadFile conn "testdata.nq"+-- >Just (Object (fromList [("result",String "Successfully wrote 11 quads.")])) -- writeNQuadFile c p = runReaderT (writenq (getManager c) p) (getConfig c)@@ -159,7 +159,7 @@ -- operation. -- -- >λ> writeNQuadFile conn "testdata.nq" >>= successfulResults--- >Right 9+-- >Right 11 -- successfulResults :: Maybe A.Value -> IO (Either String Int) successfulResults m = return $@@ -173,7 +173,7 @@ AT.Done "" a -> Right a _ -> Left "Can't get amount of successful results"- A.Error e -> Left e+ A.Error e -> Left e Nothing -> case a ^? key "error" of Just e ->@@ -187,5 +187,5 @@ AT.string "Successfully " AT.string "deleted " <|> AT.string "wrote " a <- AT.decimal- AT.string " triples."+ AT.string " quads." return a
cayley-client.cabal view
@@ -1,8 +1,8 @@ name: cayley-client-version: 0.1.2.1+version: 0.1.3.0 stability: Experimental-synopsis: A Haskell client for Cayley graph database-description: cayley-client implements the RESTful API of the Cayley database graph.+synopsis: A Haskell client for the Cayley graph database+description: cayley-client implements the RESTful API of the Cayley graph database. homepage: https://github.com/MichelBoucey/cayley-client license: BSD3 license-file: LICENSE@@ -20,5 +20,5 @@ library exposed-modules: Database.Cayley.Client, Database.Cayley.Types, Database.Cayley.Internal other-extensions: OverloadedStrings- build-depends: base >=4.7 && <4.9, mtl >=2.1 && <2.3, transformers >=0.3 && <0.5, attoparsec >=0.12 && <0.13, bytestring >=0.10 && <0.11, text >=1.2 && <1.3, vector >=0.10 && <0.11, http-conduit >=2.1 && <2.2, http-client >=0.4 && <0.5, aeson >=0.8 && <0.9, lens >= 4.6.0.1, lens-aeson >=1.0.0.3, unordered-containers >=0.2 && <0.3, exceptions >= 0.6 && <0.7+ build-depends: base >=4.7 && <=4.9, mtl >=2.1, transformers >=0.3, attoparsec >=0.12, bytestring >=0.10, text >=1.2, vector >=0.10, http-conduit >=2.1, http-client >=0.4, aeson >=0.8, lens >= 4.6.0.1, lens-aeson >=1.0.0.3, unordered-containers >=0.2, exceptions >= 0.6 default-language: Haskell2010