For the given program:
newtype MyInt = MyInt Int
deriving Show
data X = X MyInt
deriving Show
main :: IO ()
main = do
putStrLn $ "Success...: " ++ f (X (MyInt 35))
f s = case s of
X str -> show str
Setting a breakpoint on f and inspecting s should display X (MyInt 35). Instead, it shows:
