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.

Type Classes offers courses and projects to get you started and make you an expert in FP with Haskell. For $29/month, you get access to the complete archive and all the latest content.