summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/ghci006.hs
blob: aea1307da133d20de398513e72ce6d707ada81d8 (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE RankNTypes #-}
module Ghci006 where

data Q = forall x . Show x => Q x
showQ (Q x) = show x

-- associated bug is that at the interpreter command line,
--   showQ (Q "foo") crashed the interpreter.