Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
797d6a4a
Unverified
Commit
797d6a4a
authored
Sep 12, 2016
by
ttuegel
Browse files
Remove code specific to building with GHC 7.4
parent
6913400f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/Compat/Binary.hs
View file @
797d6a4a
...
...
@@ -17,10 +17,6 @@ module Distribution.Compat.Binary
#
endif
)
where
#
if
__GLASGOW_HASKELL__
<
706
import
Prelude
hiding
(
catch
)
#
endif
import
Control.Exception
(
catch
,
evaluate
)
#
if
__GLASGOW_HASKELL__
>=
711
import
Control.Exception
(
pattern
ErrorCall
)
...
...
Cabal/Distribution/Compat/Environment.hs
View file @
797d6a4a
...
...
@@ -51,13 +51,6 @@ getEnvironment = fmap upcaseVars System.getEnvironment
getEnvironment
=
System
.
getEnvironment
#
endif
#
if
__GLASGOW_HASKELL__
<
706
-- | @lookupEnv var@ returns the value of the environment variable @var@, or
-- @Nothing@ if there is no such value.
lookupEnv
::
String
->
IO
(
Maybe
String
)
lookupEnv
name
=
(
Just
`
fmap
`
System
.
getEnv
name
)
`
catchIO
`
const
(
return
Nothing
)
#
endif
/*
__GLASGOW_HASKELL__
<
706
*/
-- | @setEnv name value@ sets the specified environment variable to @value@.
--
-- Throws `Control.Exception.IOException` if either @name@ or @value@ is the
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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