Skip to content

Commit

Permalink
different workaround for #270 is explicit eta expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingo60 committed Apr 18, 2016
1 parent 35fce77 commit a29b584
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/comp/Issue270.fr
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module tests.comp.Issue270 where

makeTokenParser :: LanguageDef st -> TokenParser st
makeTokenParser languageDef
= TokenParser{ lexeme = lexeme (),
= TokenParser{ lexeme = \p lexeme p,
whiteSpace = whiteSpace,
natural = natural,
integer = integer, }
Expand All @@ -42,13 +42,13 @@ makeTokenParser languageDef
noLine = null []
noMulti = null (languageDef.commentStart)

integer = lexeme () int
natural = lexeme () nat
integer = lexeme int
natural = lexeme nat
int = undefined
nat = undefined

lexeme :: forall a st'. () -> CharParser st' a -> CharParser st' a
lexeme () p = do { x <- p; whiteSpace; return x }
lexeme :: forall a st'. CharParser st' a -> CharParser st' a
lexeme p = do { x <- p; whiteSpace; return x }



Expand Down

0 comments on commit a29b584

Please sign in to comment.