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

build failed with ghc 7.10.3 #13

Open
smile921 opened this issue Aug 15, 2016 · 2 comments
Open

build failed with ghc 7.10.3 #13

smile921 opened this issue Aug 15, 2016 · 2 comments

Comments

@smile921
Copy link

I tried with ghc 7.10.3 ,but got failed with testLoop dependency on centos 6.x

ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.3

Configuring testloop-0.1.1.0...
Building testloop-0.1.1.0...
Failed to install testloop-0.1.1.0
Build log ( /home/xxx/HaskellKoans/.cabal-sandbox/logs/testloop-0.1.1.0.log ):
Configuring testloop-0.1.1.0...
Building testloop-0.1.1.0...
Preprocessing library testloop-0.1.1.0...
[1 of 6] Compiling System.TestLoop.Internal.Signal ( src/System/TestLoop/Internal/Signal.hs, dist/dist-sandbox-b3073e5/build/System/TestLoop/Internal/Signal.o )
[2 of 6] Compiling System.TestLoop.Util ( src/System/TestLoop/Util.hs, dist/dist-sandbox-b3073e5/build/System/TestLoop/Util.o )
[3 of 6] Compiling System.TestLoop.Internal.Types ( src/System/TestLoop/Internal/Types.hs, dist/dist-sandbox-b3073e5/build/System/TestLoop/Internal/Types.o )
[4 of 6] Compiling System.TestLoop.Internal.Watcher ( src/System/TestLoop/Internal/Watcher.hs, dist/dist-sandbox-b3073e5/build/System/TestLoop/Internal/Watcher.o )
[5 of 6] Compiling System.TestLoop.Internal.Cabal ( src/System/TestLoop/Internal/Cabal.hs, dist/dist-sandbox-b3073e5/build/System/TestLoop/Internal/Cabal.o )
[6 of 6] Compiling System.TestLoop ( src/System/TestLoop.hs, dist/dist-sandbox-b3073e5/build/System/TestLoop.o )

src/System/TestLoop.hs:47:23:
Couldn't match type FS.FilePath' with[Char]'
Expected type: FilePath
Actual type: FS.FilePath
In the second argument of treeExtExists', namely (FS.decodeString path)'
In a stmt of a 'do' block:
treeExtExists
manager
(FS.decodeString path)
"hs"
(reloadTestSuite moduleName modulePath paths)

src/System/TestLoop.hs:49:23:
Couldn't match type [Char]' withFS.FilePath'
Expected type: FilePath -> IO ()
Actual type: FS.FilePath -> IO ()
In the fourth argument of treeExtExists', namely (reloadTestSuite moduleName modulePath paths)'
In a stmt of a 'do' block:
treeExtExists
manager
(FS.decodeString path)
"hs"
(reloadTestSuite moduleName modulePath paths)
Installed vector-0.11.0.0
Configuring scientific-0.3.4.9...
Installed unordered-containers-0.2.7.1
Configuring semigroups-0.18.2...
Building scientific-0.3.4.9...
Building semigroups-0.18.2...
Installed scientific-0.3.4.9
Configuring attoparsec-0.13.0.2...
Building attoparsec-0.13.0.2...
Installed semigroups-0.18.2
Configuring QuickCheck-2.9.1...
Building QuickCheck-2.9.1...
Installed QuickCheck-2.9.1
Configuring quickcheck-io-0.1.3...
Building quickcheck-io-0.1.3...
Installed quickcheck-io-0.1.3
Configuring hspec-core-2.2.3...
Building hspec-core-2.2.3...
Installed hspec-core-2.2.3
Configuring hspec-2.2.3...
Building hspec-2.2.3...
Installed hspec-2.2.3
Installed attoparsec-0.13.0.2
cabal: Error: some packages failed to install:
testloop-0.1.1.0 failed during the building phase. The exception was:
ExitFailure 1
setup-koans: [ERROR]cabal install --only-dependencies failed.

the error log file as follows
/HaskellKoans/.cabal-sandbox/logs/testloop-0.1.1.0.log

Configuring testloop-0.1.1.0...
Building testloop-0.1.1.0...
Preprocessing library testloop-0.1.1.0...
[1 of 6] Compiling System.TestLoop.Internal.Signal ( src/System/TestLoop/Internal/Signal.hs, dist/dist-sandbox-b3073e5/build/System/TestLoop/Internal/Signal.o )
[2 of 6] Compiling System.TestLoop.Util ( src/System/TestLoop/Util.hs, dist/dist-sandbox-b3073e5/build/System/TestLoop/Util.o )
[3 of 6] Compiling System.TestLoop.Internal.Types ( src/System/TestLoop/Internal/Types.hs, dist/dist-sandbox-b3073e5/build/System/TestLoop/Internal/Types.o )
[4 of 6] Compiling System.TestLoop.Internal.Watcher ( src/System/TestLoop/Internal/Watcher.hs, dist/dist-sandbox-b3073e5/build/System/TestLoop/Internal/Watcher.o )
[5 of 6] Compiling System.TestLoop.Internal.Cabal ( src/System/TestLoop/Internal/Cabal.hs, dist/dist-sandbox-b3073e5/build/System/TestLoop/Internal/Cabal.o )
[6 of 6] Compiling System.TestLoop ( src/System/TestLoop.hs, dist/dist-sandbox-b3073e5/build/System/TestLoop.o )

src/System/TestLoop.hs:47:23:
Couldn't match type FS.FilePath' with[Char]'
Expected type: FilePath
Actual type: FS.FilePath
In the second argument of treeExtExists', namely (FS.decodeString path)'
In a stmt of a 'do' block:
treeExtExists
manager
(FS.decodeString path)
"hs"
(reloadTestSuite moduleName modulePath paths)

src/System/TestLoop.hs:49:23:
Couldn't match type [Char]' withFS.FilePath'
Expected type: FilePath -> IO ()
Actual type: FS.FilePath -> IO ()
In the fourth argument of treeExtExists', namely (reloadTestSuite moduleName modulePath paths)'
In a stmt of a 'do' block:
treeExtExists
manager
(FS.decodeString path)
"hs"
(reloadTestSuite moduleName modulePath paths)

@shterrett
Copy link

Same error:

The Glorious Glasgow Haskell Compilation System, version 7.10.1
macOS Sierra

@jmn
Copy link

jmn commented Nov 10, 2016

This is likely to be because the package testloop depends on the deprecated package system-filepath.

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