@@ -7,6 +7,8 @@ module Hakyll.Core.Util.Arrow
10+import Prelude hiding (id)
11+import Control.Category (id)
10import Control.Arrow ( Arrow, ArrowChoice, (&&&), arr, (>>^), (|||)
12import Control.Arrow ( Arrow, ArrowChoice, (&&&), arr, (>>^), (|||)
11 , (>>>), (***)
13 , (>>>), (***)
@@ -30,7 +32,7 @@ unitA = constA ()
30mapA :: ArrowChoice a
32mapA :: ArrowChoice a
32 -> a [b] [c]
34 -> a [b] [c]
33−mapA f = arr listEither >>> arr id ||| (f *** mapA f >>> arr (uncurry (:)))
35+mapA f = arr listEither >>> id ||| (f *** mapA f >>> arr (uncurry (:)))
35 listEither [] = Left []
37 listEither [] = Left []
36 listEither (x : xs) = Right (x, xs)
38 listEither (x : xs) = Right (x, xs)