SteParser.Lex: small simplification
Dependencies
Change contents
- edit in core/lib/GardGround/Utils/SteParser/Lex.hs at line 39
import Data.Maybe (isJust) - replacement in core/lib/GardGround/Utils/SteParser/Lex.hs at line 157
skipWhiteSpace = takeWithProperty IC.WhiteSpace >> pure ()skipWhiteSpace = fmap (const ()) $ takeWithProperty IC.WhiteSpace - replacement in core/lib/GardGround/Utils/SteParser/Lex.hs at line 165
Nothing -> return NothingNothing -> pure Nothing - replacement in core/lib/GardGround/Utils/SteParser/Lex.hs at line 169
case f fi ofNothing -> return NothingJust x -> doshiftEnv (slen l, r)return . Just $ xdolet fres = f fi(if isJust fres then shiftEnv (slen l, r) else pure ())pure fres