A subsite for displaying git information.

Version on this page:
LTS Haskell 10.10:
Stackage Nightly 2018-03-21:
Latest on Hackage:

See all snapshots yesod-gitrev appears in

BSD3 licensed by Dan Burton
Maintained by

Module documentation for

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)


  • Upgrade to yesod-core 1.6
Depends on 5 packages:
Used by 1 package:
comments powered byDisqus