haskell - Why does Text.Show.Functions only return <function>? -


the standard package show functions returns constant string:

λ> :m +text.show.functions  λ> show (+1) "<function>" 

ghci's :type command more useful:

λ> :t (+1) (+1) :: num => -> 

is impossible such level of detail @ runtime? compilation process leave kind of information @ functions, except them being functions?

not same level of details, can use typeof data.typeable:

prelude> import data.typeable prelude data.typeable> typeof (+1) integer -> integer 

Comments

Popular posts from this blog

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -