summaryrefslogtreecommitdiff
path: root/src/Hakyll
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2011-12-10 16:13:22 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2011-12-10 16:13:22 +0100
commit9badd09c910d4053470e52b1f44e9bb8d958da34 (patch)
treea1353145a9c73cba0f71a4f37b8f35753947b4a5 /src/Hakyll
parent8a40170ff78fbecac188bc88ad146a7657107840 (diff)
downloadhakyll-9badd09c910d4053470e52b1f44e9bb8d958da34.tar.gz
sequenceA was reversing the list
Diffstat (limited to 'src/Hakyll')
-rw-r--r--src/Hakyll/Core/Util/Arrow.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Hakyll/Core/Util/Arrow.hs b/src/Hakyll/Core/Util/Arrow.hs
index 1896e11..f46d083 100644
--- a/src/Hakyll/Core/Util/Arrow.hs
+++ b/src/Hakyll/Core/Util/Arrow.hs
@@ -16,9 +16,9 @@ constA = arr . const
sequenceA :: Arrow a
=> [a b c]
-> a b [c]
-sequenceA = foldl reduce $ constA []
+sequenceA = foldr reduce $ constA []
where
- reduce la xa = xa &&& la >>^ arr (uncurry (:))
+ reduce xa la = xa &&& la >>^ arr (uncurry (:))
unitA :: Arrow a
=> a b ()