yesod-gitrev: A subsite for displaying git information.

[ bsd3, library, web ] [ Propose Tags ]


[Index] [Quick Jump]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],, 0.2.1, 0.2.2
Change log
Dependencies aeson, base (>=4 && <5), githash, template-haskell, yesod-core (>=1.6) [details]
License BSD-3-Clause
Copyright 2015 FP Complete Corporation
Author Dan Burton
Category Web
Home page
Bug tracker
Source repo head: git clone git://
Uploaded by DanBurton at 2021-07-20T00:27:23Z
Distributions LTSHaskell:0.2.2, Stackage:0.2.2
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 2393 total (9 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] ( 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)