ghclive
ghclive copied to clipboard
Having trouble building ghlive
This is the end of the output from cabal-dev install --force-reinstalls
. I'm using ghc 7.4.2 and haskell-platform 2012.4.0.0 installed from Homebrew on Mac OS X 10.8.2.
Configuring ghclive-0.1.0.2...
Warning: This package indirectly depends on multiple versions of the same
package. This is highly likely to cause a compile failure.
package regex-base-0.93.2 requires mtl-2.1.1
package websockets-0.7.1.1 requires mtl-2.1.2
package tls-extra-0.5.1 requires mtl-2.1.2
package tls-1.0.3 requires mtl-2.1.2
package resourcet-0.4.4 requires mtl-2.1.2
package project-template-0.1.1 requires mtl-2.1.2
package pem-0.1.2 requires mtl-2.1.2
package parsec-3.1.3 requires mtl-2.1.2
package monad-logger-0.2.3.2 requires mtl-2.1.2
package http-conduit-1.8.6.2 requires mtl-2.1.2
package hint-0.3.3.5 requires mtl-2.1.2
package ghclive-0.1.0.2 requires mtl-2.1.2
package ghc-mtl-1.0.1.2 requires mtl-2.1.2
package diagrams-svg-0.6.0.1 requires mtl-2.1.2
package certificate-1.3.3 requires mtl-2.1.2
package blaze-svg-0.3.3.0 requires mtl-2.1.2
package asn1-data-0.7.1 requires mtl-2.1.2
package aeson-0.6.1.0 requires mtl-2.1.2
package MonadCatchIO-mtl-0.3.0.5 requires mtl-2.1.2
Building ghclive-0.1.0.2...
Preprocessing library ghclive-0.1.0.2...
[1 of 1] Compiling Network.Web.GHCLive.Display ( src/Network/Web/GHCLive/Display.hs, dist/build/Network/Web/GHCLive/Display.o )
src/Network/Web/GHCLive/Display.hs:116:4:
No instances for (Floating (D.Scalar v0),
Ord (D.Scalar v0),
D.Backend D.SVG v0,
D.AdditiveGroup (D.Scalar v0))
arising from a use of `D.renderDia'
Possible fix:
add instance declarations for
(Floating (D.Scalar v0),
Ord (D.Scalar v0),
D.Backend D.SVG v0,
D.AdditiveGroup (D.Scalar v0))
In the expression:
D.renderDia
D.SVG (D.SVGOptions "output.file" (D.Dims size size)) dia
In an equation for `renderMyDiagramToSvg':
renderMyDiagramToSvg size dia
= D.renderDia
D.SVG (D.SVGOptions "output.file" (D.Dims size size)) dia
src/Network/Web/GHCLive/Display.hs:116:4:
Couldn't match type `D.Result D.SVG v0'
with `Text.Blaze.Internal.MarkupM ()'
In the return type of a call of `D.renderDia'
In the expression:
D.renderDia
D.SVG (D.SVGOptions "output.file" (D.Dims size size)) dia
In an equation for `renderMyDiagramToSvg':
renderMyDiagramToSvg size dia
= D.renderDia
D.SVG (D.SVGOptions "output.file" (D.Dims size size)) dia
src/Network/Web/GHCLive/Display.hs:116:23:
The function `D.SVGOptions' is applied to two arguments,
but its type `D.SizeSpec2D -> D.Options D.SVG D.R2' has only one
In the second argument of `D.renderDia', namely
`(D.SVGOptions "output.file" (D.Dims size size))'
In the expression:
D.renderDia
D.SVG (D.SVGOptions "output.file" (D.Dims size size)) dia
In an equation for `renderMyDiagramToSvg':
renderMyDiagramToSvg size dia
= D.renderDia
D.SVG (D.SVGOptions "output.file" (D.Dims size size)) dia
Failed to install ghclive-0.1.0.2
cabal: Error: some packages failed to install:
ghclive-0.1.0.2 failed during the building phase. The exception was:
ExitFailure 1
Here's the output of just cabal install
$ cabal install
Resolving dependencies...
In order, the following would be installed:
Boolean-0.1.2 (new package)
NumInstances-1.0 (new package)
SHA-1.6.1 (new package)
ansi-terminal-0.5.5.1 (new package)
asn1-data-0.7.1 (new package)
attoparsec-0.10.3.0 (new package)
base64-bytestring-1.0.0.0 (new package)
blaze-builder-0.3.1.0 (reinstall) changes: text-0.11.2.3 -> 0.11.2.0
aeson-0.6.1.0 (new package)
blaze-markup-0.5.1.4 (new version)
blaze-html-0.5.1.3 (new package)
blaze-svg-0.3.3.0 (reinstall) changes: blaze-markup-0.5.1.3 -> 0.5.1.4,
mtl-2.1.2 -> 2.1.1
byteorder-1.0.3 (new package)
case-insensitive-0.4.0.4 (new package)
cipher-aes-0.1.5 (new package)
cmdargs-0.10.1 (new package)
colour-2.3.3 (new package)
contravariant-0.2.0.2 (new package)
crypto-random-api-0.2.0 (new package)
cprng-aes-0.3.2 (new package)
css-text-0.1.1 (new package)
data-default-0.5.0 (new package)
cookie-0.4.0.1 (new package)
date-cache-0.3.0 (new package)
enumerator-0.4.19 (new package)
attoparsec-enumerator-0.3.1 (new package)
blaze-builder-enumerator-0.2.0.5 (new package)
failure-0.2.0.1 (new package)
file-embed-0.0.4.7 (new package)
hfsevents-0.1.3 (new package)
hint-0.3.3.5 (new package)
http-date-0.0.4 (new package)
http-types-0.7.3.0.1 (new package)
mime-mail-0.4.1.2 (new package)
mime-types-0.1.0.1 (new package)
network-enumerator-0.1.5 (new package)
newtype-0.2 (new package)
optparse-applicative-0.5.2.1 (new package)
path-pieces-0.1.2 (new package)
pem-0.1.2 (new package)
certificate-1.3.3 (new package)
pureMD5-2.1.2.1 (new package)
pwstore-fast-2.3 (new package)
ranges-0.2.4 (new package)
email-validate-0.3.2 (new package)
regex-base-0.93.2 (reinstall) changes: mtl-2.1.2 -> 2.1.1
regex-posix-0.95.2 (reinstall)
regex-compat-0.95.1 (reinstall)
resource-pool-0.2.1.1 (new package)
resourcet-0.4.4 (new package)
pool-conduit-0.1.1 (new package)
safe-0.3.3 (new package)
semigroups-0.8.5 (new package)
comonad-3.0.1.1 (new package)
monoid-extras-0.2.2.1 (new package)
dual-tree-0.1.0.0 (new package)
semigroupoids-3.0.1 (new package)
shakespeare-1.0.2 (new package)
hamlet-1.1.3.1 (new package)
shakespeare-css-1.0.2 (new package)
shakespeare-i18n-1.0.0.2 (new package)
shakespeare-js-1.1.1 (new package)
shakespeare-text-1.0.0.5 (new package)
silently-1.2.4.1 (new package)
simple-sendfile-0.2.10 (new package)
skein-0.1.0.10 (new package)
clientsession-0.8.0.2 (new package)
socks-0.4.2 (new package)
stringsearch-0.3.6.4 (new package)
system-filepath-0.4.7 (new package)
ReadArgs-1.2.1 (new package)
basic-prelude-0.3.2.0 (new package)
classy-prelude-0.4.3 (new package)
system-fileio-0.3.10 (new package)
fsnotify-0.0.6 (new package)
tagsoup-0.12.8 (new package)
tar-0.4.0.1 (new version)
tls-1.0.3 (new package)
tls-extra-0.5.1 (new package)
unix-compat-0.4.1.0 (new package)
unix-time-0.1.4 (new package)
fast-logger-0.3.1 (new package)
vault-0.2.0.4 (new package)
void-0.5.11 (new package)
MemoTrie-0.6.1 (new package)
conduit-0.5.6 (new package)
attoparsec-conduit-0.5.0.3 (new package)
base64-conduit-0.5.1 (new package)
blaze-builder-conduit-0.5.0.3 (new package)
crypto-conduit-0.4.2 (new package)
monad-logger-0.2.3.2 (new package)
network-conduit-0.6.2.2 (new package)
persistent-1.1.3.2 (new package)
persistent-template-1.1.2.1 (new package)
vector-space-0.8.6 (new package)
active-0.1.0.2 (new package)
vector-space-points-0.1.2.0 (new package)
diagrams-core-0.6 (new package)
diagrams-lib-0.6 (new package)
diagrams-svg-0.6.0.1 (new package)
wai-1.3.0.1 (new package)
wai-app-static-1.3.1 (new package)
wai-logger-0.3.0 (new package)
warp-1.3.6 (new package)
websockets-0.7.1.1 (new package)
wai-websockets-1.3.1 (new package)
word8-0.0.3 (new package)
xml-types-0.3.3 (new package)
xml-conduit-1.0.3.3 (new package)
classy-prelude-conduit-0.4.3 (new package)
project-template-0.1.1 (new package)
xss-sanitize-0.3.3 (new package)
yaml-0.8.2 (new package)
yesod-routes-1.1.1.1 (new package)
zlib-bindings-0.1.1.2 (new package)
zlib-conduit-0.5.0.3 (new package)
http-conduit-1.8.6.2 (new package)
authenticate-1.3.2 (new package)
http-reverse-proxy-0.1.1.1 (new package)
wai-extra-1.3.1.1 (new package)
yesod-core-1.1.7.1 (new package)
yesod-default-1.1.3 (new package)
yesod-json-1.1.2 (new package)
yesod-persistent-1.1.0.1 (new package)
yesod-form-1.2.0.2 (new package)
yesod-auth-1.1.3 (new package)
yesod-1.1.7.2 (new package)
yesod-static-1.1.1.2 (new package)
ghclive-0.1.0.2 (new package)
cabal: The following packages are likely to be broken by the reinstalls:
blaze-markup-0.5.1.3
regex-tdfa-1.1.8
darcs-2.8.2
haskell-platform-2012.4.0.0
regex-posix-0.95.1
Use --force-reinstalls if you want to install anyway.
I also just stumbled upon this problem.
This seems to get it to compile:
$ git diff
diff --git a/src/Network/Web/GHCLive/Display.hs b/src/Network/Web/GHCLive/Display.hs
index 983c5a8..10e786c 100644
--- a/src/Network/Web/GHCLive/Display.hs
+++ b/src/Network/Web/GHCLive/Display.hs
@@ -113,7 +113,7 @@ displayEmpty = DisplayResult []
renderMyDiagramToSvg :: Double -> D.Diagram D.SVG D.R2 -> B.Html
renderMyDiagramToSvg size dia =
- D.renderDia D.SVG (D.SVGOptions "output.file" (D.Dims size size)) dia
+ D.renderDia D.SVG (D.SVGOptions (D.Dims size size)) dia
instance Display DisplayResult where
display d = d