GHCi :browse command

The :browse command in GHCi displays the contents of a module.

For example, here we inspect the contents of the Data.Tuple module:

λ> :browse Data.Tuple
curry :: ((a, b) -> c) -> a -> b -> c
uncurry :: (a -> b -> c) -> (a, b) -> c
fst :: (a, b) -> a
snd :: (a, b) -> b
swap :: (a, b) -> (b, a)

We see that this module exports five functions: curry, uncurry, fst, snd, and swap.