File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -112,24 +112,24 @@ alexScanUser user__ input__ IBOX(sc)
112
112
case alexGetByte input__ of
113
113
Nothing ->
114
114
#ifdef ALEX_DEBUG
115
- trace (" End of input." ) $
115
+ Debug.Trace. trace (" End of input." ) $
116
116
#endif
117
117
AlexEOF
118
118
Just _ ->
119
119
#ifdef ALEX_DEBUG
120
- trace (" Error." ) $
120
+ Debug.Trace. trace (" Error." ) $
121
121
#endif
122
122
AlexError input__'
123
123
124
124
(AlexLastSkip input__'' len, _) ->
125
125
#ifdef ALEX_DEBUG
126
- trace (" Skipping." ) $
126
+ Debug.Trace. trace (" Skipping." ) $
127
127
#endif
128
128
AlexSkip input__'' len
129
129
130
130
(AlexLastAcc k input__''' len, _) ->
131
131
#ifdef ALEX_DEBUG
132
- trace (" Accept." ) $
132
+ Debug.Trace. trace (" Accept." ) $
133
133
#endif
134
134
AlexToken input__''' len (alex_actions ! k)
135
135
@@ -147,7 +147,7 @@ alex_scan_tkn user__ orig_input len input__ s last_acc =
147
147
Nothing -> (new_acc, input__)
148
148
Just (c, new_input) ->
149
149
#ifdef ALEX_DEBUG
150
- trace (" State: " ++ show IBOX (s) ++ " , char: " ++ show c ++ " " ++ (show . chr . fromIntegral ) c) $
150
+ Debug.Trace. trace (" State: " ++ show IBOX (s) ++ " , char: " ++ show c ++ " " ++ (show . chr . fromIntegral ) c) $
151
151
#endif
152
152
case fromIntegral c of { IBOX (ord_c) ->
153
153
let
Original file line number Diff line number Diff line change @@ -438,9 +438,7 @@ import_glaexts =
438
438
import_debug :: [String ]
439
439
import_debug =
440
440
[ " import Data.Char (chr)"
441
- , " import System.IO"
442
- , " import System.IO.Unsafe"
443
- , " import Debug.Trace"
441
+ , " import qualified Debug.Trace"
444
442
]
445
443
446
444
templateDir :: IO FilePath -> [CLIFlags ] -> IO FilePath
You can’t perform that action at this time.
0 commit comments