kazu-yamamoto/ghc-mod — pull request #105 by eagletmt (2013-03-01 13:20:30+00:00)
Title: Show types of data constructors with "browse -d"

Before:

% ghc-mod browse -d Data.Either
Left
Right
data Either a b
either :: (a -> c) -> (b -> c) -> Either a b -> c
lefts :: [Either a b] -> [a]
partitionEithers :: [Either a b] -> ([a], [b])
rights :: [Either a b] -> [b]

After:

% ghc-mod browse -d Data.Either
Left :: a -> Either a b
Right :: b -> Either a b
data Either a b
either :: (a -> c) -> (b -> c) -> Either a b -> c
lefts :: [Either a b] -> [a]
partitionEithers :: [Either a b] -> ([a], [b])
rights :: [Either a b] -> [b]