summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T10589.hs
blob: 5ba1c4fe14ebd1be804494683c33a8760b44b0ac (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE LambdaCase, TypeFamilies #-}

module T10589 where

type family F a where
  F a = Bool -> a

foo = (\case True -> 5
             False -> 6) :: F Int