summaryrefslogtreecommitdiff
path: root/src/Utility/SystemDirectory.hs
diff options
context:
space:
mode:
authorJoey Hess2016-05-22 15:52:27 -0400
committerJoey Hess2016-05-22 15:53:58 -0400
commit0d9148d03cd40ddf9ae79fadd6571dd0fd576d5b (patch)
tree8939263d3925289d1223a40e6348ceca6846bb32 /src/Utility/SystemDirectory.hs
parent14e5429163f0138f03deaaa1134c8b4982c27141 (diff)
split out module to work around badly named symbol in directory-1.2.6.2
Sadly my bug report about this is not going to get fixed it seems, so I have to drag around a whole added module file just to deal with it. https://github.com/haskell/directory/issues/52
Diffstat (limited to 'src/Utility/SystemDirectory.hs')
-rw-r--r--src/Utility/SystemDirectory.hs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Utility/SystemDirectory.hs b/src/Utility/SystemDirectory.hs
new file mode 100644
index 00000000..3dd44d19
--- /dev/null
+++ b/src/Utility/SystemDirectory.hs
@@ -0,0 +1,16 @@
+{- System.Directory without its conflicting isSymbolicLink
+ -
+ - Copyright 2016 Joey Hess <id@joeyh.name>
+ -
+ - License: BSD-2-clause
+ -}
+
+-- Disable warnings because only some versions of System.Directory export
+-- isSymbolicLink.
+{-# OPTIONS_GHC -fno-warn-tabs -w #-}
+
+module Utility.SystemDirectory (
+ module System.Directory
+) where
+
+import System.Directory hiding (isSymbolicLink)