blob: f5a92d4204ea23ef705c4b79b586a16ab034b13a (
plain)
1
2
3
4
5
6
7
8
9
10
|
{-# LANGUAGE FlexibleContexts #-}
module T8555 where
import Data.Coerce
foo :: Coercible a b => b -> a
foo = coerce
bar :: (Coercible a b, Coercible b c) => b -> c -> a
bar b c = coerce c
|