How to find function type in Elm repl

In Haskell, you can use :t to search for the type of a function in ghci, is there an equivalent in elm repl?

+6
source share
1 answer

I canโ€™t try this because at the moment I donโ€™t have a working elm-repl , but from the top of my head you can just enter the name of the function in repl and it will respond with the type of the function, This is because the Elm replica is always will print the type after the resulting value, so if you enter the name of the function, it will print <function> for the value, followed by the type:

 > not <function> : Bool -> Bool > 
+6
source

All Articles