From 0a4d3c8f12dc5797a919a00b6bcaf759947687cc Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 17 Jun 2018 23:24:47 +0200 Subject: Add ouest france parser --- src/Utils/Either.hs | 7 ------- src/Utils/Text.hs | 13 ------------- 2 files changed, 20 deletions(-) delete mode 100644 src/Utils/Either.hs delete mode 100644 src/Utils/Text.hs (limited to 'src/Utils') diff --git a/src/Utils/Either.hs b/src/Utils/Either.hs deleted file mode 100644 index 5d62dcc..0000000 --- a/src/Utils/Either.hs +++ /dev/null @@ -1,7 +0,0 @@ -module Utils.Either - ( mapLeft - ) where - -mapLeft :: (a -> c) -> Either a b -> Either c b -mapLeft f (Left l) = Left (f l) -mapLeft _ (Right r) = (Right r) diff --git a/src/Utils/Text.hs b/src/Utils/Text.hs deleted file mode 100644 index 1297bbd..0000000 --- a/src/Utils/Text.hs +++ /dev/null @@ -1,13 +0,0 @@ -module Utils.Text - ( startsWith - ) where - -import Data.Text (Text) -import qualified Data.Text as T - -startsWith :: Text -> Text -> Bool -startsWith mbStart text = - case (T.uncons mbStart, T.uncons text) of - (Just (x, xs), Just (y, ys)) -> x == y && startsWith xs ys - (Nothing, _) -> True - _ -> False -- cgit v1.2.3