Commit 15df5170 authored by Ben Gamari's avatar Ben Gamari 🐢

Fix T12512

parent 836f0e24
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE UnboxedSums #-}
{-# LANGUAGE UnboxedTuples #-}
module T12512 where
......@@ -9,6 +8,3 @@ import GHC.Exts
class Wat1 (a :: TYPE 'UnboxedTupleRep)
deriving instance Wat1 (# a, b #)
class Wat2 (a :: TYPE 'UnboxedSumRep)
deriving instance Wat2 (# a | b #)
T12512.hs:11:1: error:
T12512.hs:10:1: error:
• Can't make a derived instance of ‘Wat1 (# a, b #)’:
The last argument of the instance cannot be an unboxed tuple
• In the stand-alone deriving instance for ‘Wat1 (# a, b #)’
T12512.hs:14:1: error:
• Can't make a derived instance of ‘Wat2 (# a | b #)’:
The last argument of the instance cannot be an unboxed sum
• In the stand-alone deriving instance for ‘Wat2 (# a | b #)’
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment