I don’t know the command line tool for this, but you can use Hoogle to find the type of function, a brief description of its documentation and a link to the complete online documentation based on its name.
-: , ! , , , , .
Hayoo, Hackage ( Hoogle ), , , : "fst" haskell98, base - .
GHCi , , ; ,
GHCi> :t fst
fst :: (a, b) -> a
, fst , , .