@@ -7,6 +7,8 @@ module Hakyll.Core.Util.Arrow
77 , mapA
88 ) where
99
10+import Prelude hiding (id)
11+import Control.Category (id)
1012import Control.Arrow ( Arrow, ArrowChoice, (&&&), arr, (>>^), (|||)
1113 , (>>>), (***)
1214 )
@@ -30,7 +32,7 @@ unitA = constA ()
3032mapA :: ArrowChoice a
3133 => a b c
3234 -> 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 (:)))
3436 where
3537 listEither [] = Left []
3638 listEither (x : xs) = Right (x, xs)