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
Post a Comment