Why is there no documentation for haddock?
My Haskell file (pretty sure this isn't a problem) is basically:
import System.IO ... -- | Every Word is a String type Word = String ... -- | Some documentation for Haddock to see main :: IO () main = do ...
import Distribution.Simple main = defaultMain
name: grade version: 0.1.0.0 ... build-type: Simple cabal-version: >=1.8 executable grade main-is: grade.hs -- other-modules: build-depends: base ==4.6.*, split ==0.2.* hs-source-dirs: src
When I run
cabal haddock --executables
... Haddock coverage: Warning: Not found in environment: Main.main 50% ( 1 / 2) in 'Main' Warning: Main: could not find link destinations for: Main.main Documentation created: dist/doc/html/grade/grade/index.html
while HTML contains
but no documentation for it. It doesn't even contain the functions I defined except
. Why is this?
source to share