haskell - Show type of each result in GHCi -


how can show type of resulting expression in ghci after each command? example, instead of

ghci> "hello" ++ " world" "hello world" 

i want see

ghci> "hello" ++ " world" "hello world" :: string 

or @ least

ghci> "hello" ++ " world" "hello world" :: [char] 

repls other languages provide such behavior default. can't find proper ghci option such behavior. ok me print type of it after executing every command. didn't find way how call commands after each ghci command. well, sensible command: let ... = ... doesn't have result (though nice print type of defined variable). ways show type of result automatically after each command?

add :set +t .ghci.

from documentation:

+t     display type of each variable bound after statement entered @ prompt.     if statement single expression, variable binding     variable ‘it’. 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -