From f48e17b113809aae22108ee54379d9bd5e79e196 Mon Sep 17 00:00:00 2001
From: "Edward Z. Yang" <ezyang@cs.stanford.edu>
Date: Thu, 27 Oct 2016 03:19:28 -0700
Subject: [PATCH] Turn libraryDynDirSupported back on.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
---
 Cabal/Distribution/Simple/Compiler.hs | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/Cabal/Distribution/Simple/Compiler.hs b/Cabal/Distribution/Simple/Compiler.hs
index 20fcc431fb..0d0f80331f 100644
--- a/Cabal/Distribution/Simple/Compiler.hs
+++ b/Cabal/Distribution/Simple/Compiler.hs
@@ -330,17 +330,13 @@ backpackSupported = ghcSupported "Support Backpack"
 libraryDynDirSupported :: Compiler -> Bool
 libraryDynDirSupported comp = case compilerFlavor comp of
   GHC ->
-    -- GHC patch still hasn't landed yet. When it does, update
-    -- this date and uncomment
-    {-
-      -- Not just v >= mkVersion [8,0,1,20161021], as there
+      -- Not just v >= mkVersion [8,0,1,20161022], as there
       -- are many GHC 8.1 nightlies which don't support this.
-    ((v >= mkVersion [8,0,1,20161021] && v < mkVersion [8,1]) ||
+    ((v >= mkVersion [8,0,1,20161022] && v < mkVersion [8,1]) ||
       v >= mkVersion [8,1,20161021])
-      -} False
   _   -> False
  where
-  _v = compilerVersion comp
+  v = compilerVersion comp
 
 -- | Does this compiler support Haskell program coverage?
 coverageSupported :: Compiler -> Bool
-- 
GitLab