1 2 3 4 5 6 7 8
{-# LANGUAGE DatatypeContexts #-} -- #2138 -- If we :i D, we should see the Eq constraint module Foo where data Eq a => D a = C a