What does a Haskell comment starting with `{- |` generally mean?

The | at the start of a comment is Haddock syntax that begins a documentation annotation. An example from the Haddock documentation is:

-- |The 'square' function squares an integer.
square :: Int -> Int
square x = x * x

It also goes on to say

The “– |” syntax begins a documentation annotation, which applies to the following declaration in the source file. Note that the annotation is just a comment in Haskell — it will be ignored by the Haskell compiler.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)