The :browse commandGHCi documentation for :browse in GHCi displays the contents of a module.

For example, here we inspect the contents of the Data.TupleData.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.

Sign up for access to the full page, plus the complete archive and all the latest content.