Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
21c9699e
Commit
21c9699e
authored
Feb 01, 2008
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX BUILD with ghc-6.4.x
parent
b2543362
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
utils/ghc-pkg/Main.hs
utils/ghc-pkg/Main.hs
+11
-1
No files found.
utils/ghc-pkg/Main.hs
View file @
21c9699e
...
...
@@ -48,8 +48,13 @@ import System.Exit ( exitWith, ExitCode(..) )
import
System.Environment
(
getArgs
,
getProgName
,
getEnv
)
import
System.IO
import
System.IO.Error
(
try
)
import
Data.List
(
isPrefixOf
,
isSuffixOf
,
isInfixOf
,
intersperse
,
sortBy
,
nub
,
import
Data.List
(
isPrefixOf
,
isSuffixOf
,
intersperse
,
sortBy
,
nub
,
unfoldr
,
break
)
#
if
__GLASGOW_HASKELL__
>
604
import
Data.List
(
isInfixOf
)
#
else
import
Data.List
(
tails
)
#
endif
import
Control.Concurrent
#
ifdef
mingw32_HOST_OS
...
...
@@ -1063,3 +1068,8 @@ installSignalHandlers = do
#
else
return
()
-- nothing
#
endif
#
if
__GLASGOW_HASKELL__
<=
604
isInfixOf
::
(
Eq
a
)
=>
[
a
]
->
[
a
]
->
Bool
isInfixOf
needle
haystack
=
any
(
isPrefixOf
needle
)
(
tails
haystack
)
#
endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment