summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/T8917.hs
blob: b16d928eda4b7d22a82d20e728eca19cc0d58bca (plain)
1
2
3
4
5
6
7
8
{-# LANGUAGE DataKinds, PolyKinds, TypeFamilies, TypeOperators #-}

module T8917 where

data Nat = Zero | Succ Nat
type family a + b where
  Zero + a = a
  (Succ n) + m = Succ (n + m)