In Haskell you can use :t
to find type of a function in ghci, is there an equivalent in elm repl?
I can't try this out because I currently don't have a working elm-repl
but off the top of my head, you can just type the function name in the repl and it will answer with the type of the function. This is because the Elm repl will always print the type after a resulting value, so if you input a function name, it will print <function>
for the value, followed by the type:
> not
<function> : Bool -> Bool
>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With