Skip to content

Commit 3850530

Browse files
committed
Change a where to a let-in to get rid of another difference
1 parent ddb9245 commit 3850530

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

templates/wrappers.hs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,10 @@ alexMonadScan = do
282282
#ifndef ALEX_MONAD_BYTESTRING
283283
AlexToken inp__' len action -> do
284284
#else /* ALEX_MONAD_BYTESTRING */
285-
AlexToken inp__'@(_,_,_,n') _ action -> do
285+
AlexToken inp__'@(_,_,_,n') _ action -> let len = n'-n in do
286286
#endif /* ALEX_MONAD_BYTESTRING */
287287
alexSetInput inp__'
288288
action (ignorePendingBytes inp__) len
289-
#ifdef ALEX_MONAD_BYTESTRING
290-
where
291-
len = n'-n
292-
#endif /* ALEX_MONAD_BYTESTRING */
293289

294290
-- -----------------------------------------------------------------------------
295291
-- Useful token actions

0 commit comments

Comments
 (0)