File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ alex_scan_tkn user__ orig_input len input__ s last_acc =
146146 Nothing -> (new_acc, input__)
147147 Just (c, new_input) ->
148148#ifdef ALEX_DEBUG
149- Debug.Trace. trace (" State: " ++ show IBOX (s) ++ " , char: " ++ show c ++ " " ++ (show . chr . fromIntegral ) c) $
149+ Debug.Trace. trace (" State: " ++ show IBOX (s) ++ " , char: " ++ show c ++ " " ++ (show . Data.Char. chr . fromIntegral ) c) $
150150#endif
151151 case fromIntegral c of { IBOX (ord_c) ->
152152 let
Original file line number Diff line number Diff line change @@ -12,33 +12,31 @@ import Control.Applicative as App (Applicative (..))
1212import qualified Data.Text
1313#endif
1414
15+ import qualified Data.Char
1516import Data.Word (Word8 )
1617
1718#if defined(ALEX_BASIC_BYTESTRING) || defined(ALEX_POSN_BYTESTRING) || defined(ALEX_MONAD_BYTESTRING)
1819
1920import Data.Int (Int64 )
20- import qualified Data.Char
2121import qualified Data.ByteString.Lazy as ByteString
2222import qualified Data.ByteString.Internal as ByteString (w2c )
2323
2424#elif defined(ALEX_STRICT_BYTESTRING)
2525
26- import qualified Data.Char
2726import qualified Data.ByteString as ByteString
2827import qualified Data.ByteString.Internal as ByteString hiding (ByteString )
2928import qualified Data.ByteString.Unsafe as ByteString
3029
3130#else
3231
33- import Data.Char (ord )
3432import qualified Data.Bits
3533
3634-- | Encode a Haskell String to a list of Word8 values, in UTF8 format.
3735utf8Encode :: Char -> [Word8 ]
3836utf8Encode = uncurry (:) . utf8Encode'
3937
4038utf8Encode' :: Char -> (Word8 , [Word8 ])
41- utf8Encode' c = case go (ord c) of
39+ utf8Encode' c = case go (Data.Char. ord c) of
4240 (x, xs) -> (fromIntegral x, map fromIntegral xs)
4341 where
4442 go oc
Original file line number Diff line number Diff line change @@ -437,8 +437,7 @@ import_glaexts =
437437
438438import_debug :: [String ]
439439import_debug =
440- [ " import Data.Char (chr)"
441- , " import qualified Debug.Trace"
440+ [ " import qualified Debug.Trace"
442441 ]
443442
444443templateDir :: IO FilePath -> [CLIFlags ] -> IO FilePath
You can’t perform that action at this time.
0 commit comments