File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE CPP #-}
2
2
module Common where
3
3
4
+ #if MIN_VERSION_base(4,6,0)
5
+ import Prelude hiding ( Foldable (.. ) )
6
+ #else
7
+ import Data.List ( foldl' )
8
+ #endif
4
9
import qualified Control.Exception as Exception
5
10
import qualified Compat.TempFile as Compat
6
11
import Control.Monad ( when )
7
12
import Data.Char ( isSpace )
8
- import Data.List ( foldl' )
13
+ import Data.Foldable ( Foldable ( .. ) )
9
14
import System.IO
10
15
#if defined(mingw32_HOST_OS)
11
16
import Control.Concurrent ( threadDelay )
Original file line number Diff line number Diff line change @@ -6,8 +6,13 @@ The standard mode for hsc2hs: generates a C file which is
6
6
compiled and run; the output of that program is the .hs file.
7
7
-}
8
8
9
+ #if MIN_VERSION_base(4,6,0)
10
+ import Prelude hiding ( Foldable (.. ) )
11
+ #else
12
+ import Data.List ( foldl' )
13
+ #endif
9
14
import Data.Char ( isAlphaNum , toUpper )
10
- import Data.Foldable ( foldl' )
15
+ import Data.Foldable ( Foldable ( .. ) )
11
16
import Control.Monad ( when , forM_ )
12
17
13
18
import System.Exit ( ExitCode (.. ), exitWith )
You can’t perform that action at this time.
0 commit comments