Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type FormatFn = HgRev -> HgState -> String
- hgRevStateTH :: FormatFn -> ExpQ
- defFormat :: FormatFn
- jsonFormat :: FormatFn
- newtype HgRevState = HgRevState (HgRev, HgState)
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" ] }