Ask Your Question
0

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
1

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

Comments

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

Question Tools

1 follower

Stats

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

Seen: 1,347 times

Last updated: Nov 15 '16