Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install of BuildWrapper failed #2944

Closed
houseofwealth opened this issue Dec 9, 2015 · 2 comments
Closed

install of BuildWrapper failed #2944

houseofwealth opened this issue Dec 9, 2015 · 2 comments

Comments

@houseofwealth
Copy link

Hello, I get the following compile error when I try to install BuildWrapper (necessary for the EclipseFP plugin). Prior to this I ran cabal update. I am running on Windows 7 and have the Haskell Package 7.10.2-a installed. Can anyone help?


$ cabal install BuildWrapper
Resolving dependencies...
[1 of 1] Compiling Main ( C:\Users\Owner\AppData\Local\Temp\cabal-tmp-39884\buildwrapper-0.9.1\dist\setup\setup.hs, C:\Users\Owner\AppData\Local\Temp\cab
al-tmp-39884\buildwrapper-0.9.1\dist\setup\Main.o )
Linking C:\Users\Owner\AppData\Local\Temp\cabal-tmp-39884\buildwrapper-0.9.1\dist\setup\setup.exe ...
Configuring buildwrapper-0.9.1...
Building buildwrapper-0.9.1...
Preprocessing library buildwrapper-0.9.1...
[1 of 6] Compiling Language.Haskell.BuildWrapper.Base ( src\Language\Haskell\BuildWrapper\Base.hs, dist\build\Language\Haskell\BuildWrapper\Base.o )

src\Language\Haskell\BuildWrapper\Base.hs:13:1: Warning:
The import of Control.Applicative' is redundant except perhaps to import instances fromControl.Applicative'
To import instances alone, use: import Control.Applicative()
[2 of 6] Compiling Language.Haskell.BuildWrapper.Cabal ( src\Language\Haskell\BuildWrapper\Cabal.hs, dist\build\Language\Haskell\BuildWrapper\Cabal.o )

src\Language\Haskell\BuildWrapper\Cabal.hs:271:17:
Non type-variable argument
in the constraint: RegexContext
Regex source1 (String, String, String, [String])
(Use FlexibleContexts to permit this)
When checking that extractLine' has the inferred type extractLine :: forall source1. RegexContext Regex source1 (String, String, String, [String]) => source1 -> Int In an equation forparseCabalMessages':
parseCabalMessages cf cabalExe s
= let (m, ls) = foldl parseCabalLine ... $ lines s
in
nub
$ case m of {
Nothing -> ls
Just (bwn, msgs) -> ls ++ [...] }
where
parseCabalLine ::
(Maybe (BWNote, [String]), [BWNote])
-> String -> (Maybe (BWNote, [String]), [BWNote])
parseCabalLine (currentNote, ls) l
| "Error:" isPrefixOf l
= (Just (BWNote BWError "" (mkEmptySpan cf 1 1), [...]),
addCurrent currentNote ls)
| "Warning:" isPrefixOf l
= let ... in (Just ..., addCurrent currentNote ls)
| Just (bw, n) <- cabalErrorLine
cf cabalExe l (not (any isBWNoteError ls))
= (Just (bw, n), addCurrent currentNote ls)
| Just (jcn, msgs) <- currentNote
= if not $ null l then (Just ..., ls) else (Nothing, ls ++ ...)
| otherwise = (Nothing, ls)
extractLine el
= let ... in if null ls then 1 else readInt (head ls) 1

src\Language\Haskell\BuildWrapper\Cabal.hs:768:47:
Couldn't match type ModuleName' withExposedModule'
Expected type: [ExposedModule]
Actual type: [ModuleName]
In the second argument of (++)', namelyhms'
In the second argument of map', namely(ems ++ hms)'
Failed to install buildwrapper-0.9.1
cabal.exe: Error: some packages failed to install:
buildwrapper-0.9.1 failed during the building phase. The exception was:
ExitFailure 1

@grayjay
Copy link
Collaborator

grayjay commented Dec 9, 2015

According to this issue, BuildWrapper is no longer maintained and doesn't build with GHC >= 7.10.1: JPMoresmau/BuildWrapper#58

@BardurArantsson
Copy link
Collaborator

Yeah, this is a BuildWrapper issue (and BW is unmaintained). Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants