summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/simpl019.hs
blob: cdac0cfaf26d43d6d8bd236927aa10a635ef13dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-# LANGUAGE GADTs, FlexibleInstances #-}
{-# OPTIONS_GHC -O2 #-}

-- See #1746

module Foo where

data T a where T :: T a -> T [a]

class C a where
  f :: a -> ()

instance C (T [a]) where
  f (T x@(T _)) = f x