) where
import GHC.Base
-import GHC.Real (fromIntegral)
-import GHC.Int
-import GHC.Num (fromInteger)
+import GHC.Real (fromIntegral)
+import Foreign.C.Types (CInt)
+import GHC.Num (fromInteger)
#include "HsBaseConfig.h"
-- (letters, numbers, marks, punctuation, symbols and spaces).
isPrint :: Char -> Bool
--- | Selects white-space characters in the Latin-1 range.
--- (In Unicode terms, this includes spaces and some control characters.)
+-- | Returns 'True' for any Unicode space character, and the control
+-- characters @\\t@, @\\n@, @\\r@, @\\f@, @\\v@.
isSpace :: Char -> Bool
-- isSpace includes non-breaking space
-- Done with explicit equalities both for efficiency, and to avoid a tiresome
-- Regardless of the O/S and Library, use the functions contained in WCsubst.c
-type CInt = HTYPE_INT
-
isAlpha c = iswalpha (fromIntegral (ord c)) /= 0
isAlphaNum c = iswalnum (fromIntegral (ord c)) /= 0
--isSpace c = iswspace (fromIntegral (ord c)) /= 0