packages feed

ghc-exactprint-1.3.0: tests/examples/ghc92/TypeFamilies.hs

{-# LANGUAGE TypeFamilies, DataKinds, PolyKinds, UndecidableInstances #-}

module TypeFamilies where

type family F a b  = r | r -> a b where
  F a      IO      = IO a   -- (1)
  F Char   b       = b Int  -- (2)