{"author_name":"sirocco","height":"190","author_url":"https://blog.hatena.ne.jp/sirocco/","title":"Parsec\u306b\u3061\u3087\u3063\u3068\u89e6\u3063\u3066\u307f\u308b(2)","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","published":"2010-11-06 11:44:01","url":"https://sirocco.hatenadiary.org/entry/20101106/1289011441","width":"100%","blog_url":"https://sirocco.hatenadiary.org/","version":"1.0","description":"Parsec, \u9ad8\u901f\u306a\u30b3\u30f3\u30d3\u30cd\u30fc\u30bf\u30d1\u30fc\u30b5 \u306e\u5199\u7d4c\u306e\u7d9a\u304d\u3067\u3059\u3002 sepBy \u3068 sepBy1 \u300c\u30d1\u30fc\u30b5\u306b\u3088\u3063\u3066\u533a\u5207\u3089\u308c\u308b\u30d1\u30fc\u30b5\u306e\u5217\u3092\u30d1\u30fc\u30b9\u3057\u307e\u3059\u300d\u3063\u3066\u5206\u304b\u308a\u306b\u304f\u3044\u8aac\u660e\u304c\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u52d5\u304b\u3057\u3066\u307f\u307e\u3059\u3002 import Text.ParserCombinators.Parsec tstSepBy :: String -> [String] tstSepBy str = case parse strToNumList \"\" str of Left err -> [] Right n -> n -- \"123,456, 789\" --=> [\"123\",\"456\",\"789\"] strToNumLis\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20101106%2F1289011441\" title=\"Parsec\u306b\u3061\u3087\u3063\u3068\u89e6\u3063\u3066\u307f\u308b(2) - sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2","type":"rich","categories":["Haskell"],"image_url":null}