[Top] [All Lists]

[Haskell-cafe] haddock - 'could not find link destination"

Subject: [Haskell-cafe] haddock - 'could not find link destination"
From: "Andrew U. Frank"
Date: Thu, 21 Jan 2010 14:51:20 +0100

i try to use haddock for documentation, but have no success. no output is produced. i assume i make some stupid mistake (not having used haddock before)

help is appreciated! thank you



i get the following error:

$ haddock Hadtest2.hs

Warning: Main: could not find link destinations for:

GHC.Types.Int GHC.Base.String

Hadtest2.hs is a simplistic test program with some parts copied from the haddock manual:

module Main (square, this) where

-- | a constant

this :: String

this = "this"

-- |The 'square' function squares an integer.

square :: Int -> Int

square x = x * x

main = do

putStrLn $ "test " ++ show (square 4)

return ()


Haskell-Cafe mailing list
<Prev in Thread] Current Thread [Next in Thread>