@@ -20,14 +20,13 @@ module Hakyll.Web.Pandoc
21import Prelude hiding (id)
21import Prelude hiding (id)
22import Control.Applicative ((<$>))
22import Control.Applicative ((<$>))
23−import Control.Arrow ((>>>), arr)
23+import Control.Arrow ((>>^), (&&&))
24import Control.Category (id)
24import Control.Category (id)
26import Text.Pandoc (Pandoc)
26import Text.Pandoc (Pandoc)
27import qualified Text.Pandoc as P
27import qualified Text.Pandoc as P
29import Hakyll.Core.Compiler
29import Hakyll.Core.Compiler
30−import Hakyll.Core.Util.Arrow
31import Hakyll.Web.FileType
30import Hakyll.Web.FileType
32import Hakyll.Web.Page
31import Hakyll.Web.Page
@@ -75,7 +74,7 @@ pageReadPandoc = pageReadPandocWith defaultParserState
76pageReadPandocWith :: P.ParserState -> Compiler (Page String) (Page Pandoc)
75pageReadPandocWith :: P.ParserState -> Compiler (Page String) (Page Pandoc)
77pageReadPandocWith state =
76pageReadPandocWith state =
78− withUnitArr id getFileType >>> arr pageReadPandocWith'
77+ id &&& getFileType >>^ pageReadPandocWith'
80 pageReadPandocWith' (p, t) = readPandocWith state t <$> p
79 pageReadPandocWith' (p, t) = readPandocWith state t <$> p
@@ -90,7 +89,7 @@ pageRenderPandocWith :: P.ParserState
90 -> P.WriterOptions
89 -> P.WriterOptions
91 -> Compiler (Page String) (Page String)
90 -> Compiler (Page String) (Page String)
92pageRenderPandocWith state options =
91pageRenderPandocWith state options =
93− pageReadPandocWith state >>> arr (fmap $ writePandocWith options)
92+ pageReadPandocWith state >>^ (fmap $ writePandocWith options)
95-- | The default reader options for pandoc parsing in hakyll
94-- | The default reader options for pandoc parsing in hakyll