Skip to content
GitLab
Menu
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
8558340b
Commit
8558340b
authored
Jul 10, 2013
by
Benno Fünfstück
Browse files
Tidy up
Remove uneeded import of join and add a wildcard pattern when f is unused by fmap.
parent
f6b172dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/Compat/ReadP.hs
View file @
8558340b
...
...
@@ -72,7 +72,6 @@ module Distribution.Compat.ReadP
import
Control.Monad
(
MonadPlus
(
..
),
liftM2
)
import
Data.Char
(
isSpace
)
import
Control.Applicative
(
Applicative
(
..
))
import
Control.Monad
(
join
)
infixr
5
+++
,
<++
...
...
Cabal/Distribution/ParseUtils.hs
View file @
8558340b
...
...
@@ -87,7 +87,7 @@ import Data.Char (isSpace, toLower, isAlphaNum, isDigit)
import
Data.Maybe
(
fromMaybe
)
import
Data.Tree
as
Tree
(
Tree
(
..
),
flatten
)
import
qualified
Data.Map
as
Map
import
Control.Monad
(
foldM
,
join
)
import
Control.Monad
(
foldM
)
import
Control.Applicative
(
Applicative
(
..
))
import
System.FilePath
(
normalise
)
import
Data.List
(
sortBy
)
...
...
@@ -117,7 +117,7 @@ data ParseResult a = ParseFailed PError | ParseOk [PWarning] a
deriving
Show
instance
Functor
ParseResult
where
fmap
f
(
ParseFailed
err
)
=
ParseFailed
err
fmap
_
(
ParseFailed
err
)
=
ParseFailed
err
fmap
f
(
ParseOk
ws
x
)
=
ParseOk
ws
$
f
x
instance
Applicative
ParseResult
where
...
...
Write
Preview
Supports
Markdown
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