Skip to content

Commit e350fea

Browse files
committed
1 parent a70e397 commit e350fea

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

examples/failing/EmptyClass.purs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-- @shouldFailWith ErrorParsingModule
2+
module Main where
3+
4+
class Foo x where
5+
6+
bar :: String
7+
bar = "hello"

examples/passing/NakedConstraint.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module Main where
22

33
import Control.Monad.Eff.Console
44

5-
class Partial where
5+
class Partial
66

77
data List a = Nil | Cons a (List a)
88

src/Language/PureScript/Parser/Declarations.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ parseTypeClassDeclaration = do
201201
idents <- P.many (indented *> kindedIdent)
202202
members <- P.option [] . P.try $ do
203203
indented *> reserved "where"
204-
mark (P.many (same *> positioned parseTypeDeclaration))
204+
indented *> mark (P.many (same *> positioned parseTypeDeclaration))
205205
return $ TypeClassDeclaration className idents implies members
206206

207207
parseInstanceDeclaration :: TokenParser (TypeInstanceBody -> Declaration)

0 commit comments

Comments
 (0)