blob: eb8354ba2878607ff3e72c2121bb2a4f5f5c664b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{-# LANGUAGE TypeFamilies, GADTs #-}
-- Fails with
--
-- Couldn't match expected type `y' against inferred type `x'
module GADT2 where
data EQUAL x y where
EQUAL :: x~y => EQUAL x y
foo :: EQUAL x y -> x -> y
foo EQUAL x = x
|