summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T15362.hs
blob: 1bab4d776cefe3422d36c37ab2516cfd6e2b371e (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE TemplateHaskell, TypeOperators, DataKinds, TypeFamilies #-}

module T15362 where

data Nat = Zero | Succ Nat

$( [d| type family a + b where
         Maybe Zero b = b
         Succ a + b = Succ (a + b) |] )