1module Main ( main ) where
3import Distribution.Simple
4import Distribution.Simple.LocalBuildInfo ( withPrograms )
5import Distribution.Simple.Program ( userSpecifyArgs )
8main = defaultMainWithHooks $
9 simpleUserHooks `modify_haddockHook` \oldHH pkg lbi hooks flags ->
10 (\lbi' -> oldHH pkg lbi' hooks flags) $
11 lbi `modify_withPrograms` \oldWP ->
12 userSpecifyArgs "haddock" ["--optghc=-D__HADDOCK__"] oldWP
14 modify_haddockHook hooks f = hooks { haddockHook = f (haddockHook hooks) }
15 modify_withPrograms lbi f = lbi { withPrograms = f (withPrograms lbi) }
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list