vendredi 14 avril 2017

Why does Text.Show.Functions only return

The standard package to show functions only returns a constant string:

λ> :m +Text.Show.Functions 
λ> show (+1)
"<function>"

GHCi's :type command is much more useful:

λ> :t (+1)
(+1) :: Num a => a -> a

Is it impossible to get such a level of detail at runtime? Does the compilation process leave any kind of information at all about functions, except for them being functions?





Aucun commentaire:

Enregistrer un commentaire