Proper GHC conditionals to fix compiler warnings

这个提交包含在:
Julian Ospald 2016-06-05 16:16:41 +02:00
父节点 d3eb2fc254
当前提交 ed06543981
找不到此签名对应的密钥
GPG 密钥 ID: 511B62C09D50CD28
共有 2 个文件被更改,包括 9 次插入2 次删除

查看文件

@ -19,7 +19,10 @@ extra-source-files: README.md
library
hs-source-dirs: src/
default-language: Haskell2010
ghc-options: -Wall
if impl(ghc >= 8.0)
ghc-options: -Wall -Wno-redundant-constraints
else
ghc-options: -Wall
c-sources: cbits/dirutils.c
exposed-modules: HPath,
HPath.IO,

查看文件

@ -10,6 +10,7 @@
-- Traversal and read operations on directories.
{-# LANGUAGE CPP #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PackageImports #-}
@ -37,7 +38,10 @@ module System.Posix.Directory.Traversals (
, realpath
) where
import Control.Applicative
#if __GLASGOW_HASKELL__ < 710
import Control.Applicative ((<$>))
#endif
import Control.Monad
import System.Posix.FilePath ((</>))
import System.Posix.Directory.Foreign