Commit fc8c5e7a authored by Simon Peyton Jones's avatar Simon Peyton Jones

Test Trac #8799, #8555

parent 753b156d
{-# LANGUAGE FlexibleContexts #-}
module T8555 where
import Data.Coerce
foo :: Coercible [a] [b] => a -> b
foo = coerce
{-# 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
......@@ -454,3 +454,5 @@ test('T10335', normal, compile, [''])
test('Improvement', normal, compile, [''])
test('T10009', normal, compile, [''])
test('T10390', normal, compile, [''])
test('T8555', normal, compile, [''])
test('T8799', normal, compile, [''])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment