From ca1d4d3d4371c8175ea6addb1ca1b09c3b56a7bb Mon Sep 17 00:00:00 2001 From: Chris Wells Date: Sat, 25 Jan 2025 14:33:21 -0600 Subject: Adding templates and cleaning up --- src/Hakyll/Parsec/Parsec.hs | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 src/Hakyll/Parsec/Parsec.hs (limited to 'src/Hakyll/Parsec/Parsec.hs') diff --git a/src/Hakyll/Parsec/Parsec.hs b/src/Hakyll/Parsec/Parsec.hs deleted file mode 100644 index 123c5fd..0000000 --- a/src/Hakyll/Parsec/Parsec.hs +++ /dev/null @@ -1,27 +0,0 @@ -module Hakyll.Parsec.Parsec - ( compileParsec - , compileParsec_ - , parsecCompiler - , parsecCompiler_ - ) where - -import Prolog -import Hakyll -import Text.Parsec -import Text.Parsec.Error -import Hakyll.Error - --- evalParsec :: (MonadError [String] m) => Either ParseError a -> m a --- evalParsec = either (throwError . fmap messageString . errorMessages) pure - -compileParsec :: (MonadError [String] m, Stream s Identity t) => Parsec s u a -> u -> Item s -> m (Item a) -compileParsec p u itm@(Item i _) = traverse (liftErr . runParser p u (show i)) itm - -compileParsec_ :: (MonadError [String] m, Stream s Identity t) => Parsec s () a -> Item s -> m (Item a) -compileParsec_ p = compileParsec p () - -parsecCompiler :: (Stream s Identity t, StringConv LazyByteString s) => Parsec s u a -> u -> Compiler (Item a) -parsecCompiler p u = getResourceLBS >>= compileParsec p u . fmap toSL - -parsecCompiler_ :: (Stream s Identity t, StringConv LazyByteString s) => Parsec s () a -> Compiler (Item a) -parsecCompiler_ p = parsecCompiler p () -- cgit v1.2.3