about summary refs log tree commit diff
diff options
context:
space:
mode:
authorlukasepple <git@lukasepple.de>2015-10-31 21:50:18 +0100
committerlukasepple <git@lukasepple.de>2015-10-31 21:50:18 +0100
commita6231d0ce720097555fb4000f86d616ee7e21e48 (patch)
tree40f0342754bba9acad750962c3c7fcedb935783e
parent388f1bc2181175c4ed7f5f6a1128da5c73811ee2 (diff)
remove attoparsec try
-rw-r--r--src/Text/Emoji/Foo.hs38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/Text/Emoji/Foo.hs b/src/Text/Emoji/Foo.hs
deleted file mode 100644
index 0ce3b5d..0000000
--- a/src/Text/Emoji/Foo.hs
+++ /dev/null
@@ -1,38 +0,0 @@
-{-# LANGUAGE OverloadedStrings #-}
-module Text.Emoji.DataParser where
-
-import           Prelude              hiding (takeWhile)
-
-import           Text.Emoji.Types
-
-import           Control.Applicative  ((<|>))
-import           Data.Attoparsec.Text
-import           Data.Text            (Text ())
-import qualified Data.Text            as T
-
-emojiData :: Parser [[Text]]
-emojiData = many' (emojiDataLine <|> commentLine)
-
-commentLine :: Parser [Text]
-commentLine = do
-  "# "
-  comment <- takeWhile (not . isEndOfLine)
-  endOfLine
-  return $ [comment]
-
-emojiDataLine :: Parser [Text]
-emojiDataLine = do
-  hex <- field
-  style <- field
-  level <- field
-  modifier <- field
-  sources <- field
-  comment <- field
-  endOfLine <|> endOfInput
-  return $ [hex, style, level, modifier, sources, comment]
-
-field :: Parser Text
-field = do
-  res <- T.dropAround (\c -> c == '\t' || c == ' ') <$> takeWhile (/= ';')
-  char ';' <|> endOfInput
-  return res