Hi, I’ve been noticing that recent GHCi
s don’t pretty print type signatures like they used to (pre - 9?).
λ> readIORef
<interactive>:125:1-9: error: [GHC-39999]
• No instance for ‘Show (IORef a0 -> IO a0)’
The old behaviour (which I prefer) is to instead call the :t
macro for you:
λ> :t readIORef
readIORef :: IORef a -> IO a
In the GHC Error Index, GHC-39999 is “No instance arising”.
It also tries to specialize type parameters to ()
when no better alternative is in scope, which is debatable but a different matter I guess.
e.g. with functions:
λ> M.lookup
<interactive>:127:1-8: error: [GHC-39999]
• No instance for ‘Show (() -> M.Map () a0 -> Maybe a0)’