Commit 90e3aa03 authored by Simon Peyton Jones's avatar Simon Peyton Jones
Browse files

Add a fundep test, due to Yitzchak Gale

parent 08dc2bd0
......@@ -235,6 +235,7 @@ test('tc219', normal, compile, [''])
test('tc220', normal, compile, [''])
test('tc221', normal, compile, [''])
test('tc222', normal, compile, [''])
test('tc223', normal, compile, [''])
test('faxen', normal, compile, [''])
......
{-# OPTIONS -fglasgow-exts #-}
module Foo where
-- This example suggested by Yitzchak Gale
import Control.Monad.State
import Control.Monad.Error
class Error e => Game b mv e | b -> mv e where
newBoard :: MonadState b m => m ()
-- This method is unambiguous, because
-- m determines b (via a fundep in MonadState)
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