Commit 29ebce2c authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Tests for -XFunctionalDependencies

parent 87f765b2
......@@ -66,3 +66,5 @@ test('read056', normal, compile, [''])
test('read057', normal, compile, [''])
test('read058', normal, compile, [''])
test('read059', normal, compile, [''])
test('read060', normal, compile, [''])
test('read061', normal, compile, [''])
{-# OPTIONS_GHC -XFunctionalDependencies #-}
{-# OPTIONS_GHC -XMultiParamTypeClasses #-}
module Foo where
class Foo a b | a -> b
{-# LANGUAGE FunctionalDependencies #-}
{-# OPTIONS_GHC -XMultiParamTypeClasses #-}
module Foo where
class Foo a b | a -> b
......@@ -47,3 +47,4 @@ test('read037', normal, compile_fail, [''])
test('read038', normal, compile_fail, [''])
test('read039', normal, compile_fail, [''])
test('read040', normal, compile_fail, [''])
test('read041', normal, compile_fail, [''])
{-# OPTIONS_GHC -XMultiParamTypeClasses #-}
module Foo where
class Foo a b | a -> b
read041.hs:6:0:
Fundeps in class `Foo'
(Use -XFunctionalDependencies to allow fundeps)
In the class declaration for `Foo'
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