ClosedFam3.hs 243 Bytes
Newer Older
1 2 3 4
{-# LANGUAGE TypeFamilies #-}

module ClosedFam3 where

5
import ClosedFam3a
6 7 8 9 10 11 12 13 14 15

type family Foo a where
  Foo Int = Bool
  Foo Double = Char

type family Bar a where
  Bar Int = Bool
  Bar Double = Double

type family Baz a where
16
  Baz Int = Bool