packages feed

yesod-gitrepo 0.2.0.0 → 0.2.1.0

raw patch · 3 files changed

+24/−2 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Yesod.GitRepo: gitRepoDev :: FilePath -> (FilePath -> IO a) -> IO (GitRepo a)

Files

ChangeLog.md view
@@ -1,7 +1,15 @@+## 0.2.1.0++* Add back some missing changes from 0.1.1.0+ ## 0.2.0.0  * Drop system-filepath +## 0.1.1.0++`gitRepoDev` added.+ ## 0.1.0.0 -* Initial release+Initial release
Yesod/GitRepo.hs view
@@ -8,6 +8,7 @@     , grRefresh     , grContent     , gitRepo+    , gitRepoDev     , Route (..)     ) where @@ -93,6 +94,18 @@ instance ParseRoute (GitRepo a) where     parseRoute ([], []) = Just GitRepoRoute     parseRoute _ = Nothing++-- | Like 'gitRepo', but intended to be used in a dev environment. It just uses+-- a hard-coded @FilePath@ and reloads the contents on each request.+--+-- Since 0.1.1+gitRepoDev :: FilePath+           -> (FilePath -> IO a)+           -> IO (GitRepo a)+gitRepoDev fp refresh = return GitRepo+    { grRefresh = return ()+    , grContent = refresh fp+    }  instance YesodSubDispatch (GitRepo a) (HandlerT site IO) where     yesodSubDispatch env _req send = do
yesod-gitrepo.cabal view
@@ -1,6 +1,7 @@ name:                yesod-gitrepo-version:             0.2.0.0+version:             0.2.1.0 synopsis:            Host content provided by a Git repo+description:         See README.md homepage:            https://github.com/snoyberg/yesod-gitrepo license:             MIT license-file:        LICENSE