Doug
Doug

Reputation: 15515

How do I view the definition of a function in elm-repl?

If I type the name of the function in elm-repl, I receive the function signature. I would like to see the actual definition.

Upvotes: 0

Views: 304

Answers (1)

Chad Gilbert
Chad Gilbert

Reputation: 36375

elm-repl does not provide the source code to functions, but it will show you the function signature as you described.

The Elm core package page has a search box where you can type in the name of a function to get an immediate link to the function's documentation, and from there you can get to the source, almost always hosted on Github.

Upvotes: 1

Related Questions