I just noticed some unexpected consequences of the way newtype deriving
is implemented in GHC. Because the dictionary of the underlying type is
reused, so are base classes. This message is a literate Haskell program
illustrating the problem.
{-# OPTIONS_GHC -fglasgow-exts #-}
This problem
| I just noticed some unexpected consequences of the way newtype deriving
| is implemented in GHC. Because the dictionary of the underlying type is
| reused, so are base classes. This message is a literate Haskell program
| illustrating the problem.
Excellent point.
| As a solution I would