Commit 210cd924 authored by Iavor S. Diatchki's avatar Iavor S. Diatchki

The example n this test is now valid, when TypeOperators are enabled.

parent 43034fc4
......@@ -352,6 +352,7 @@ test('tc257', normal, compile, [''])
test('tc258', normal, compile, [''])
test('tc259', normal, compile, [''])
test('tc260', normal, compile, [''])
test('tc261', normal, compile, [''])
test('GivenOverlapping', normal, compile, [''])
test('SilentParametersOverlapping', normal, compile, [''])
{-# LANGUAGE TypeOperators #-}
module TcOK where
newtype (f <.> g) a = Compose (f (g a))
Malformed head of type or class declaration: (f <.> g) a
Illegal declaration of a type or class operator `<.>'
Use -XTypeOperators to declare operators in type and declarations
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