on master help sign in
Use error instead of ParseD.Error on unreachable state
commit7594bb7a527c66406c2c465e88f69ccf1bdcef32 authorAdithya Kumar <adithya@composewell.com> dateSun 20 Feb 2022, 23:42 (5 years ago) parentea2d85b
1 file changed+1−1
src/Streamly/Internal/Unicode/Stream.hs+1−1
src/Streamly/Internal/Unicode/Stream.hs+1−1
@@ -476,7 +476,7 @@ parseCharUtf8WithD cfm =
476476 let msg = prefix
477477 ++ "Invalid first UTF8 byte" ++ show x
478478 in handleError msg False
479− 0 -> ParserD.Error $ prefix ++ "unreachable state"
479+ 0 -> error $ prefix ++ "unreachable state"
480480 _ -> ParserD.Continue 0 (UTF8CharDecoding sv cp)
481481
482482 step' table (UTF8CharDecoding statePtr codepointPtr) x = return $