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 view the function definition as well?
Haskell – How to view the definition of a function in Haskell/GHCi
ghcihaskell
Best Answer
Not currently.
The closest command to what you want is
:info
like so:
You can though, see the source for identifiers generated by the haddock tool, on Hackage.
Note that "?src" is a valid command in lambdabot, on the #haskell IRC channel, and does what you'd expect.