git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #513 from joneshf/instance-names
2dbd57dPhil Freeman
examples/failing/MPTCs.purs+1−1
@@ -3,5 +3,5 @@ module Main where
3class Foo a where
3class Foo a where
4 f :: a -> a
4 f :: a -> a
5
5
6−instance Foo String String where
6+instance fooStringString :: Foo String String where
7 f a = a
7 f a = a
examples/failing/OverlappingVars.purs+1−1
@@ -5,7 +5,7 @@ class OverlappingVars a where
5
5
6data Foo a b = Foo a b
6data Foo a b = Foo a b
7
7
8−instance OverlappingVars (Foo a a) where
8+instance overlappingVarsFoo :: OverlappingVars (Foo a a) where
9 f a = a
9 f a = a
10
10
11test = f (Foo "" 0)
11test = f (Foo "" 0)
examples/failing/TypeClassInstances.purs+1−1
@@ -4,5 +4,5 @@ class A a where
4 a :: a -> String
4 a :: a -> String
5 b :: a -> Number
5 b :: a -> Number
6
6
7−instance A String where
7+instance aString :: A String where
8 a s = s
8 a s = s
examples/failing/TypeSynonyms2.purs+1−1
@@ -5,5 +5,5 @@ class Foo a where
5
5
6type Bar = String
6type Bar = String
7
7
8−instance Foo Bar where
8+instance fooBar :: Foo Bar where
9 foo s = s
9 foo s = s
examples/failing/TypeSynonyms3.purs+1−1
@@ -5,5 +5,5 @@ class Foo a where
5
5
6type Bar = String
6type Bar = String
7
7
8−instance Foo Bar where
8+instance fooBar :: Foo Bar where
9 foo s = s
9 foo s = s