hgrev-0.2.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
 clean: true

jsonFormat :: FormatFn Source #

{
  "clean": true,
  "short": "d9d3a1172a1d",
  "branch": "default",
  "bookmarks": [],
  "long": "d9d3a1172a1d919b3056b435891081c0d7d00599",
  "tags": [
    "tip"
  ]
}