summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci.debugger/scripts/print024.script
blob: 8b951c65d42195f21ab574caabb19daa7960f4f1 (plain)
1
2
3
4
5
6
7
8
9
10
-- stg_ap_rep exception after using :print with newtypes

:set -XExistentialQuantification -XDeriveDataTypeable -XGeneralizedNewtypeDeriving
:l Test

let a = MkT (1 :: Integer)
seq a ()
:p a
a
-- Bang! "internal error: stg_ap_p_ret", triggered by the evaluation of a