diff options
author | Isaac Dupree <id@isaac.cedarswampstudios.org> | 2007-08-07 12:14:54 +0000 |
---|---|---|
committer | Isaac Dupree <id@isaac.cedarswampstudios.org> | 2007-08-07 12:14:54 +0000 |
commit | 01ecefa4b97106fec5c139c5514e5d56e59ecbaf (patch) | |
tree | 5fe97b253ff544ee2c8b8ebb13780c9d7fc883e2 /compiler/parser | |
parent | a65481fce16930ff0cd343c9278d9b8961bee94f (diff) | |
download | haskell-01ecefa4b97106fec5c139c5514e5d56e59ecbaf.tar.gz |
Warning police: eliminate all defaulting within stage1
Defaulting makes compilation of multiple modules more complicated (re: #1405)
Although it was all locally within functions, not because of the module
monomorphism-restriction... but it's better to be clear what's meant, anyway.
I changed some that were defaulting to Integer, to explicit Int, where Int
seemed appropriate rather than Integer.
Diffstat (limited to 'compiler/parser')
-rw-r--r-- | compiler/parser/Lexer.x | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/parser/Lexer.x b/compiler/parser/Lexer.x index 8b637da740..96f1ad2eba 100644 --- a/compiler/parser/Lexer.x +++ b/compiler/parser/Lexer.x @@ -774,7 +774,7 @@ multiline_doc_comment span buf _len = withLexedDocType (worker "") nested_comment :: P (Located Token) -> Action nested_comment cont span _str _len = do input <- getInput - go 1 input + go (1::Int) input where go 0 input = do setInput input; cont go n input = case alexGetChar input of |