summaryrefslogtreecommitdiff
path: root/testsuite/tests/generics/GShow
diff options
context:
space:
mode:
authorJose Pedro Magalhaes <jpm@cs.ox.ac.uk>2014-10-02 08:38:05 +0100
committerJose Pedro Magalhaes <dreixel@gmail.com>2014-11-23 18:49:05 +0100
commit950b5f9dc6efbb508fbf74f8ec81431f02395820 (patch)
tree509014a227ca4c81de8f953dcd4b44e2de722f83 /testsuite/tests/generics/GShow
parent96d29b5403bd8a6465a65a39da861f5b9610fc89 (diff)
downloadhaskell-wip/GenericsMetaData2.tar.gz
Use TypeLits in the meta-data encoding of GHC.Genericswip/GenericsMetaData2
The following wiki page contains more information about this: https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/GenericDeriving#Amoreconservativefirstapproachtothisproblem
Diffstat (limited to 'testsuite/tests/generics/GShow')
-rw-r--r--testsuite/tests/generics/GShow/GShow.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/tests/generics/GShow/GShow.hs b/testsuite/tests/generics/GShow/GShow.hs
index 3c8f2591ef..4b293fa211 100644
--- a/testsuite/tests/generics/GShow/GShow.hs
+++ b/testsuite/tests/generics/GShow/GShow.hs
@@ -3,8 +3,8 @@
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeOperators #-}
-{-# LANGUAGE IncoherentInstances #-} -- :-/
{-# LANGUAGE DefaultSignatures #-}
+{-# LANGUAGE PolyKinds #-}
module GShow (
-- * Generic show class
@@ -120,5 +120,5 @@ instance (GShow a) => GShow [a] where
(intersperse (showChar ',') (map (gshowsPrec 0) l))
. showChar ']'
-instance (GShow a) => GShow (Maybe a)
+instance (GShow a) => GShow (Maybe a)
instance (GShow a, GShow b) => GShow (a,b)