I usually look at the documentation for Hackage packages online, https://hackage.haskell.org/package/nameOfPackage . It has (if not broken, which, alas,), is associated with the documentation for each module, as well as links to the source code inside it.
EDIT broken documents:
Unfortunately, the Hackage doc build system sometimes does not work for any reason, which usually leads to the fact that the list of modules is plain text without links. In this case, a good idea is to check the list of links to older versions of packages: often one of them works.
There is also the problem that some libraries are not well documented at all, in which case all you get is type declarations, captions and source links. (But check if there are links to other documents on the first page of the package.)
Γrjan Johansen
source share