Sam Stites

Browse GHCi

<p class=“meta”>

05 Jan 2016 - Redwood City, CA

</p>

Use :browse <module> to view modules which you haven’t yet imported. For example:

Prelude> :browse Data.Bool
bool :: a -> a -> Bool -> a
(&&) :: Bool -> Bool -> Bool
data Bool = False | True
not :: Bool -> Bool
otherwise :: Bool
(||) :: Bool -> Bool -> Bool

A perfect complement to my current workflow which includes the hoogle-GHCi integration.