Skip to content

Commit 6501dee

Browse files
committed
use the right proxy arguments
the purpose of the proxy argument was to make the type variables unambiguous, but it was naming the wrong type variables.
1 parent 62c540b commit 6501dee

File tree

1 file changed

+4
-3
lines changed
  • test/should-compile/GHC/TypeLits

1 file changed

+4
-3
lines changed

test/should-compile/GHC/TypeLits/Test.hs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE DataKinds, RankNTypes, TypeFamilies, TypeOperators, AllowAmbiguousTypes #-}
1+
{-# LANGUAGE DataKinds, RankNTypes, TypeFamilies, TypeOperators #-}
22
{-# OPTIONS_GHC -fplugin TypeLevel.Rewrite
33
-fplugin-opt=TypeLevel.Rewrite:GHC.TypeLits.RewriteRules.NatRule
44
-fplugin-opt=TypeLevel.Rewrite:GHC.TypeLits.RewriteRules.SymbolRule #-}
@@ -17,6 +17,7 @@ ex2 :: ( ((s1 `AppendSymbol` "foo") `AppendSymbol` s2)
1717
~ (s1 `AppendSymbol` ("foo" `AppendSymbol` s2))
1818
=> r
1919
)
20-
-> proxy s
20+
-> proxy s1
21+
-> proxy s2
2122
-> r
22-
ex2 r _ = r
23+
ex2 r _ _ = r

0 commit comments

Comments
 (0)