summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_compile/T14933.hs
diff options
context:
space:
mode:
authorVladislav Zavialov <vlad.z.4096@gmail.com>2020-10-18 15:24:31 +0300
committerVladislav Zavialov <vlad.z.4096@gmail.com>2022-03-15 18:34:38 +0300
commitab618309069bb47645f33cd1b198ace46e27abb9 (patch)
tree0a388d085a19b16da85dc91cc958578c9a033399 /testsuite/tests/deriving/should_compile/T14933.hs
parent8ff32124c8cd37050f3dc7cbb32b8d41711ebcaf (diff)
downloadhaskell-ab618309069bb47645f33cd1b198ace46e27abb9.tar.gz
Export (~) from Data.Type.Equality (#18862)wip/eqtycon-rn
* Users can define their own (~) type operator * Haddock can display documentation for the built-in (~) * New transitional warnings implemented: -Wtype-equality-out-of-scope -Wtype-equality-requires-operators Updates the haddock submodule.
Diffstat (limited to 'testsuite/tests/deriving/should_compile/T14933.hs')
-rw-r--r--testsuite/tests/deriving/should_compile/T14933.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/T14933.hs b/testsuite/tests/deriving/should_compile/T14933.hs
index 5ab808365f..854f5f717a 100644
--- a/testsuite/tests/deriving/should_compile/T14933.hs
+++ b/testsuite/tests/deriving/should_compile/T14933.hs
@@ -2,9 +2,12 @@
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE TypeFamilies #-}
+{-# LANGUAGE TypeOperators #-}
+
module T14933 where
import Data.Kind (Type)
+import Data.Type.Equality (type (~))
class Wrapped s where
type Unwrapped s :: Type