Skip to content

Commit

Permalink
Update haddock example for recent changes.
Browse files Browse the repository at this point in the history
The example for using the `PreProcessor` is somewhat out of date.  This patch
provides the minimal set of changes to the example to match Cabal 3.8.1 or later.
  • Loading branch information
kquick authored and Mikolaj committed Nov 1, 2024
1 parent 0fbb0db commit 035c38b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cabal/src/Distribution/Simple/PreProcess/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ import qualified Text.PrettyPrint as Disp
-- > ppTestHandler =
-- > PreProcessor {
-- > platformIndependent = True,
-- > ppOrdering = \_ _ -> return,
-- > runPreProcessor = mkSimplePreProcessor $ \inFile outFile verbosity ->
-- > do info verbosity (inFile++" has been preprocessed to "++outFile)
-- > stuff <- readFile inFile
-- > writeFile outFile ("-- preprocessed as a test\n\n" ++ stuff)
-- > return ExitSuccess
-- > return ()
--
-- We split the input and output file names into a base directory and the
-- rest of the file name. The input base dir is the path in the list of search
Expand Down

0 comments on commit 035c38b

Please sign in to comment.