citation-resolve 0.2.3 → 0.2.4
raw patch · 2 files changed
+6/−4 lines, 2 filesdep +monad-loggerdep ~persistentPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependencies added: monad-logger
Dependency ranges changed: persistent
API changes (from Hackage documentation)
+ Text.CSL.Input.Identifier.Internal: instance PersistFieldSql (WebCacheGeneric backend)
- Text.CSL.Input.Identifier.Internal: WebCache :: String -> ByteString -> WebCacheGeneric backend
+ Text.CSL.Input.Identifier.Internal: WebCache :: !String -> !ByteString -> WebCacheGeneric backend
- Text.CSL.Input.Identifier.Internal: migrateAll :: (MonadBaseControl IO m, MonadIO m) => Migration (SqlPersist m)
+ Text.CSL.Input.Identifier.Internal: migrateAll :: (MonadBaseControl IO m, MonadIO m, MonadLogger m) => Migration (SqlPersistT m)
- Text.CSL.Input.Identifier.Internal: webCacheContent :: WebCacheGeneric backend -> ByteString
+ Text.CSL.Input.Identifier.Internal: webCacheContent :: WebCacheGeneric backend -> !ByteString
- Text.CSL.Input.Identifier.Internal: webCacheUrl :: WebCacheGeneric backend -> String
+ Text.CSL.Input.Identifier.Internal: webCacheUrl :: WebCacheGeneric backend -> !String
Files
Text/CSL/Input/Identifier/Internal.hs view
@@ -10,6 +10,7 @@ import Control.Applicative ((<$>)) import Control.Monad.IO.Class (liftIO)+import Control.Monad.Logger (runNoLoggingT) import Control.Monad.Trans.Resource (runResourceT) import qualified Data.ByteString.Char8 as BS import Data.Char (toLower)@@ -56,13 +57,13 @@ cached resolver0 url = do dbfn <- getDataFileName "reference.db3" - runResourceT $ withSqlitePool (Text.pack dbfn) 1 $ \pool -> do+ runNoLoggingT $ runResourceT $ withSqlitePool (Text.pack dbfn) 1 $ \pool -> do flip runSqlPool pool $ runMigration migrateAll mx <- flip runSqlPool pool $ do selectFirst [WebCacheUrl ==. url] [] case mx of Just x -> do- return $ Right $ webCacheContent $ entityVal x+ return $ Right $ webCacheContent $ entityVal x Nothing -> do ret <- liftIO $ resolver0 url
citation-resolve.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: citation-resolve-version: 0.2.3+version: 0.2.4 synopsis: convert document IDs such as DOI, ISBN, arXiv ID to bibliographic reference. description: This modules provides a way to convert document identifiers, such@@ -47,9 +47,10 @@ , directory >= 1.2 , download-curl >= 0.1.4 , MissingH >= 1.1+ , monad-logger >= 0.3.1.1 -- , hxt >= 9.3.1 -- TODO: treat xsl more properly -- , hxt-xslt >= 9.1.1 -- using these libraries.- , persistent >= 1.1.4+ , persistent >= 1.2.0.2 , persistent-template >= 1.1.2 , persistent-sqlite >= 1.1.2 , process >= 1.1