Skip to content

Commit

Permalink
Reduced the number of Haddock warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Henk-Jan van Tuyl committed Jan 3, 2016
1 parent eacbf2f commit cb35332
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions wxcore/src/haskell/Graphics/UI/WXCore/Types.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{-# LANGUAGE ForeignFunctionInterface #-}
{-# OPTIONS_HADDOCK prune #-}
-----------------------------------------------------------------------------------------
{-|
Module : Types
Expand Down
3 changes: 3 additions & 0 deletions wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

{-# OPTIONS_HADDOCK prune #-}

--------------------------------------------------------------------------------
{-|
Module : WxcDefs
Expand Down
1 change: 1 addition & 0 deletions wxcore/src/haskell/Graphics/UI/WXCore/WxcTypes.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{-# LANGUAGE CPP, ForeignFunctionInterface, DeriveDataTypeable, FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# OPTIONS_HADDOCK prune #-}
-----------------------------------------------------------------------------------------
{-|
Module : WxcTypes
Expand Down
3 changes: 2 additions & 1 deletion wxdirect/src/CompileClassInfo.hs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ compileClassInfo _verbose moduleRoot moduleClassesName moduleClassTypesName modu
]
prologue = getPrologue moduleName "class info"
(show defCount ++ " class info definitions.") []
haddockPrune = ["{-# OPTIONS_HADDOCK prune #-}"]

putStrLn ("generating: " ++ outputFile)
writeFileLazy outputFile (unlines (prologue ++ export ++ classDefs ++ downcDefs))
writeFileLazy outputFile (unlines (haddockPrune ++ prologue ++ export ++ classDefs ++ downcDefs))
putStrLn ("generated " ++ show defCount ++ " class info definitions")
putStrLn "ok."

Expand Down
3 changes: 2 additions & 1 deletion wxdirect/src/CompileClasses.hs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ compileClassesFile _showIgnore moduleRoot moduleClassTypesName moduleName output
prologue = getPrologue moduleName "class"
(show methodCount ++ " methods for " ++ show classCount ++ " classes.")
inputFiles
output = unlines (ghcoptions ++ prologue ++ export ++ marshalDecls)
haddockPrune = ["{-# OPTIONS_HADDOCK prune #-}"]
output = unlines (haddockPrune ++ ghcoptions ++ prologue ++ export ++ marshalDecls)

putStrLn ("generating: " ++ outputFile ++ ".hs")
writeFileLazy (outputFile ++ ".hs") output
Expand Down

0 comments on commit cb35332

Please sign in to comment.