Skip to content

Commit ed972a0

Browse files
committed
Fix build with flags
1 parent 316af45 commit ed972a0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

hls-graph/hls-graph.cabal

+3
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ library
8888
build-depends:
8989
, file-embed >=0.0.11
9090
, template-haskell
91+
else
92+
build-depends:
93+
directory
9194

9295
if flag(stm-stats)
9396
cpp-options: -DSTM_STATS

hls-graph/src/Development/IDE/Graph/Internal/Profile.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ dependencyOrder shw status =
8888
where (bad,badOverflow) = splitAt 10 [shw i | (i, Just _) <- toListKeyMap mp]
8989

9090
f (x:xs) mp = x : f (now++xs) later
91-
where mfree = lookupDefaultKeyMap (Just []) x mp
92-
(now,later) = foldl' g ([], insertKeyMap x Nothing mp) $ fromMaybe [] mfree
91+
where free = fromMaybe [] $ lookupDefaultKeyMap (Just []) x mp
92+
(now,later) = foldl' g ([], insertKeyMap x Nothing mp) free
9393

9494
g (free, mp) (k, []) = (k:free, mp)
9595
g (free, mp) (k, d:ds) = case lookupDefaultKeyMap (Just []) d mp of

0 commit comments

Comments
 (0)