Haskell command line help from ghci

haskell, helper

Solution

You can type `:?` to get a list of all ghci commands. A very useful tool is hoogle which is a seearch engine for the Haskell API. You can search functions by their names or by their types, i.e:

(a -> b) -> [a] -> [b]
foldl
...

It provides a short description of the function and a link to its documentation. Hope it helped!

http://www.haskell.org/hoogle

Problem

Does `ghci` have built-in help? Put differently, is it possible to get help from within `ghci`? For example, I want to now all functions that can be applied to a list. There is a useful command `:info`, which outputs some help, however it is a bit cumbersome.

Original source