| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Fri, 16 Jan 2026 23:49:20 GMT
X-Served-By: cache-dfw-ktki8620062-DFW, cache-bom-vanm7210044-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768607360.381792,VS0,VE374
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
yesod-gitrev: A subsite for displaying git information.
yesod-gitrev: A subsite for displaying git information.
Downloads
- yesod-gitrev-0.2.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.1.0.0, 0.2.0.0, 0.2.1, 0.2.2 |
|---|---|
| Change log | ChangeLog.md |
| Dependencies | aeson, base (>=4 && <5), githash, template-haskell, yesod-core (>=1.6) [details] |
| Tested with | ghc ==8.6.3, ghc ==8.4.4 |
| License | BSD-3-Clause |
| Copyright | 2015 FP Complete Corporation |
| Author | Dan Burton |
| Maintainer | danburton.email@gmail.com |
| Uploaded | by DanBurton at 2021-07-20T00:27:23Z |
| Category | Web |
| Home page | https://github.com/DanBurton/yesod-gitrev |
| Bug tracker | https://github.com/DanBurton/yesod-gitrev/issues |
| Source repo | head: git clone git://github.com/DanBurton/yesod-gitrev.git |
| Distributions | LTSHaskell:0.2.2, Stackage:0.2.2 |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 2579 total (11 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2021-07-20 [all 1 reports] |
Readme for yesod-gitrev-0.2.2
[back to package description]A subsite for displaying git information.
You can use the gitRev splice (or tGitRev typed splice)
to generate a value of type GitRev.
Put this in your app's foundation,
add a route to the subsite,
and you're good to go.
See [Haskell and Yesod > Creating a Subsite] (https://www.yesodweb.com/book/creating-a-subsite) for details on how Yesod subsites work.
-- examples/Main.hs
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
import Yesod
import Yesod.GitRev
data Master = Master
{ getGitRev :: GitRev
}
mkYesod "Master" [parseRoutes|
/build-version GitRevR GitRev getGitRev
|]
instance Yesod Master
main = warp 3000 $ Master $$(tGitRev)