summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T10770b.hs
blob: 62ae61cb6b3b8f5a83197643603b7f32d59b2421 (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE FlexibleContexts #-}
{-# OPTIONS_GHC -fwarn-redundant-constraints #-}
module T10770b where

f :: (Show a, Show (Maybe a)) => Maybe a -> String
f x = let k = show x in k

g :: (Show a, Show (Maybe a)) => Maybe a -> String
g x = show x