hgrev-0.1.2: Compile Mercurial (hg) version info into Haskell code

Safe HaskellNone
LanguageHaskell2010

Development.HgRev.TH

Synopsis

Documentation

type FormatFn = HgRev -> HgState -> String Source

Function to format hg rev and state info for printing

hgRevStateTH :: FormatFn -> ExpQ Source

Apply a format function and return a Template Haskell spliced string for compiling into code.

defFormat :: FormatFn Source

 long:  d9d3a1172a1d919b3056b435891081c0d7d00599
 short: d9d3a1172a1d
 dirty: true

jsonFormat :: FormatFn Source

{
  "dirty": true,
  "short rev": "d9d3a1172a1d",
  "branch": "default",
  "bookmarks": [],
  "revision": "d9d3a1172a1d919b3056b435891081c0d7d00599",
  "tags": [
    "tip"
  ]
}