X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fparser%2FCtype.lhs;h=b9f44d679633c34963a495b097db631762299c1a;hp=8d0b91b910f1748e89bbc195e7de74ebfb943668;hb=7fc749a43b4b6b85d234fa95d4928648259584f4;hpb=046ee54f048ddd721dcee41916d6a6f68db3b15b diff --git a/compiler/parser/Ctype.lhs b/compiler/parser/Ctype.lhs index 8d0b91b..b9f44d6 100644 --- a/compiler/parser/Ctype.lhs +++ b/compiler/parser/Ctype.lhs @@ -1,6 +1,13 @@ Character classification \begin{code} +{-# OPTIONS -w #-} +-- The above warning supression flag is a temporary kludge. +-- While working on this module you are encouraged to remove it and fix +-- any warnings in the module. See +-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings +-- for details + module Ctype ( is_ident -- Char# -> Bool , is_symbol -- Char# -> Bool @@ -91,11 +98,11 @@ charType c = case c of '\6' -> 0 -- \006 '\7' -> 0 -- \007 '\8' -> 0 -- \010 - '\9' -> cAny + cSpace -- \t - '\10' -> cSpace -- \n (not allowed in strings, so !cAny) - '\11' -> cAny + cSpace -- \v - '\12' -> cAny + cSpace -- \f - '\13' -> cAny + cSpace -- ^M + '\9' -> cSpace -- \t (not allowed in strings, so !cAny) + '\10' -> cSpace -- \n (ditto) + '\11' -> cSpace -- \v (ditto) + '\12' -> cSpace -- \f (ditto) + '\13' -> cSpace -- ^M (ditto) '\14' -> 0 -- \016 '\15' -> 0 -- \017 '\16' -> 0 -- \020