@@ -10,7 +10,7 @@ module Hakyll.Core.DirectedGraph.DependencySolver
1010import Prelude
1111import qualified Prelude as P
1212import Data.Set (Set)
13−import Data.Maybe (catMaybes)
13+import Data.Maybe (mapMaybe)
1414import qualified Data.Map as M
1515import qualified Data.Set as S
1616
@@ -48,7 +48,7 @@ order temp stack set graph@(DirectedGraph graph')
4848 -- Check which dependencies are still in the graph
4949 let tag = nodeTag node
5050 deps = S.toList $ nodeNeighbours node
51− unsatisfied = catMaybes $ map (flip M.lookup graph') deps
51+ unsatisfied = mapMaybe (`M.lookup` graph') deps
5252 in case unsatisfied of
5353
5454 -- All dependencies for node are satisfied, we can return it and
@@ -58,7 +58,7 @@ order temp stack set graph@(DirectedGraph graph')
5858
5959 -- There is at least one dependency left. We need to solve that
6060 -- one first...
61− (dep : _) -> if (nodeTag dep) `S.member` set
61+ (dep : _) -> if nodeTag dep `S.member` set
6262 -- The dependency is already in our stack - cycle detected!
6363 then cycleError
6464 -- Continue with the dependency