How do I print the type of a variable within a function in an .hs file?
From ghci, I can do :type var. How do I do something like the following:
sumList :: [Int] -> Int
sumList [] = 0
sumList (h:t) = traceShow (type h) $ h : sumList t
Which would print something like h::Int at every recursive iteration?