blob: 435b985e6fad2d6c57beedafd112bc51f6baa6d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
{-# LANGUAGE MultiParamTypeClasses #-}
module Foo where
class Wob a b where
to :: a -> b
from :: b -> a
foo x = [x, to (from x)]
-- Ambiguous type: Wob a0 b => b -> [b]
-- Should be rejected
|