Ask Your Question

is there a way to find the definition of a haskell function in atom?

asked 2016-11-10 16:37:48 -0500

telephon gravatar image

updated 2016-12-16 03:00:17 -0500

lennart gravatar image

Using Atom, I'd really find it useful to be able to navigate to the function definition with a key combination. Maybe it exists already? I suppose in emacs that is standard?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2016-11-15 07:24:08 -0500

bgold gravatar image

It doesn't give you the full definition, but if you send the command

:i stut

GHCi will tell you the type signature of stut and where it's defined:

stut ::
  Integer -> Double -> Rational -> ParamPattern -> ParamPattern
    -- Defined at Sound/Tidal/Dirt.hs:297:1
edit flag offensive delete link more


ok, that is already a step forward. It would be really nice to be able to navigate the system a bit, in particular because delegation is the core of it all …

telephon gravatar imagetelephon ( 2016-11-15 15:27:59 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-11-10 16:37:48 -0500

Seen: 785 times

Last updated: Nov 15 '16