PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Haskell/GHC: cabal install ghc-syb-utils schlägt fehl


johla
2018-07-26, 17:11:37
Ich habe auf Windows 10 64 Haskell Platform 8.4.3 installiert. Bei cabal install ghc-syb-utils kommt als Fehler:
C:\Windows\System32>cabal install ghc-syb-utils
Resolving dependencies...
Configuring ghc-syb-utils-0.2.3.3...
Building ghc-syb-utils-0.2.3.3...
Failed to install ghc-syb-utils-0.2.3.3
Build log ( C:\Users\...\AppData\Roaming\cabal\logs\ghc-8.4.3\ghc-syb-utils-0.2.3.3-4X3xR74iVGzDzFdcc1ZAvq.log ):
Preprocessing library for ghc-syb-utils-0.2.3.3..
Building library for ghc-syb-utils-0.2.3.3..
[1 of 1] Compiling GHC.SYB.Utils ( GHC\SYB\Utils.hs, dist\build\GHC\SYB\Utils.o )

GHC\SYB\Utils.hs:258:64: error:
* Could not deduce (HasSourceText (XHsChar RdrName))
arising from a use of `ppr'
from the context: Data a
bound by the type signature for:
showData :: forall a. Data a => Stage -> Int -> a -> String
at GHC\SYB\Utils.hs:229:1-49
* In the second argument of `(.)', namely `ppr'
In the second argument of `(.)', namely `showSDoc_ . ppr'
In the second argument of `(.)', namely
`(++ "}") . showSDoc_ . ppr'
|
258 | overLit = ("{HsOverLit:"++) . (++"}") . showSDoc_ . ppr
| ^^^

GHC\SYB\Utils.hs:261:73: error:
* Could not deduce (Data (XHsChar RdrName))
arising from a use of `list'
from the context: Data a
bound by the type signature for:
showData :: forall a. Data a => Stage -> Int -> a -> String
at GHC\SYB\Utils.hs:229:1-49
* In the first argument of `(.)', namely `list'
In the second argument of `(.)', namely `list . bagToList'
In the second argument of `(.)', namely
`(++ "}") . list . bagToList'
|
261 | bagRdrName = ("{Bag(Located (HsBind RdrName)): "++) . (++"}") . list . bagToList
| ^^^^

GHC\SYB\Utils.hs:263:70: error:
* Could not deduce (Data (XHsChar Name))
arising from a use of `list'
from the context: Data a
bound by the type signature for:
showData :: forall a. Data a => Stage -> Int -> a -> String
at GHC\SYB\Utils.hs:229:1-49
* In the first argument of `(.)', namely `list'
In the second argument of `(.)', namely `list . bagToList'
In the second argument of `(.)', namely
`(++ "}") . list . bagToList'
|
263 | bagName = ("{Bag(Located (HsBind Name)): "++) . (++"}") . list . bagToList
| ^^^^

GHC\SYB\Utils.hs:265:69: error:
* Could not deduce (Data (XHsChar Var))
arising from a use of `list'
from the context: Data a
bound by the type signature for:
showData :: forall a. Data a => Stage -> Int -> a -> String
at GHC\SYB\Utils.hs:229:1-49
* In the first argument of `(.)', namely `list'
In the second argument of `(.)', namely `list . bagToList'
In the second argument of `(.)', namely
`(++ "}") . list . bagToList'
|
265 | bagVar = ("{Bag(Located (HsBind Var)): "++) . (++"}") . list . bagToList
| ^^^^
cabal: Leaving directory 'C:\Users\...\AppData\Local\Temp\cabal-tmp-12056\ghc-syb-utils-0.2.3.3'
cabal: Error: some packages failed to install:
ghc-syb-utils-0.2.3.3-4X3xR74iVGzDzFdcc1ZAvq failed during the building phase.
The exception was:
ExitFailure 1Woran kann das liegen und was könnte ich machen?

Google fand: https://github.com/DanielG/ghc-mod/issues/908 Aber da steht, mit meiner Version ghc-syb-utils-0.2.3.3 wäre das gefixt ... cabal update habe ich auch vorher gemacht.

johla
2018-07-26, 19:37:54
Ich verwende jetzt Visual Studio Code mit Haskell-Plugins.