diff options
author | Jasper Van der Jeugt <m@jaspervdj.be> | 2011-12-10 16:13:22 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2011-12-10 16:13:22 +0100 |
commit | 9badd09c910d4053470e52b1f44e9bb8d958da34 (patch) | |
tree | a1353145a9c73cba0f71a4f37b8f35753947b4a5 /src/Hakyll/Core | |
parent | 8a40170ff78fbecac188bc88ad146a7657107840 (diff) | |
download | hakyll-9badd09c910d4053470e52b1f44e9bb8d958da34.tar.gz |
sequenceA was reversing the list
Diffstat (limited to 'src/Hakyll/Core')
-rw-r--r-- | src/Hakyll/Core/Util/Arrow.hs | 4 |
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 () |