I\'m using Haskell 2010.1.0.0.1 with GHC 6. Typing :t
at the GHCi prompt followed by the name of a function shows us the type of the function. Is there a way to vie
I don't think so. You can use :i
for a little bit more information (more useful for infix operators and data constructions, etc.), but not the definition:
ghci> :i repeat
repeat :: a -> [a] -- Defined in GHC.List
You can use hoogle to quickly find the documentation for a standard library function, which on the right has a link to go to the source. It's still a few clicks away though.