Created
May 1, 2018 11:46
-
-
Save naoto-ogawa/1979d303a8e397bfcd227f2c100bc02b to your computer and use it in GitHub Desktop.
Infinite loop on Attopersec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:set -XOverloadedStrings | |
import Control.Applicative | |
import Data.Attoparsec.Text | |
import Data.Attoparsec.Combinator | |
let foo = manyTill anyChar (lookAhead $ (char '@')) | |
parseOnly (many foo) "@" | |
^CInterrupted. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment