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

Support for GHC 7.10.1 #4

Closed
FranklinChen opened this issue Apr 15, 2015 · 4 comments
Closed

Support for GHC 7.10.1 #4

FranklinChen opened this issue Apr 15, 2015 · 4 comments

Comments

@FranklinChen
Copy link

Please update base bound to allow 4.8, for GHC 7.10.1. Also, update .travis.yml accordingly, with the latest from https://github.com/hvr/multi-ghc-travis

@nomeata
Copy link
Owner

nomeata commented Apr 15, 2015

Thanks for the report. ghc-heap-view relies on internals of GHC, so it is not simply a matter of updating the bounds. Did you test whether it works for you unchanged?

@FranklinChen
Copy link
Author

I did run cabal test, but that is all I did. I don't use ghc-heap-view directly, but am in the process of trying to get a package to compile that depends on it.

@eigengrau
Copy link

FWIW, if I force the bounds to fit, there seems to have been an API change in a dependency. Might be Cairo. I had to install Cairo/Pango/gtk2hs from git, so this was with Cairo/Pango 0.13.1.0, and gtk2hs 0.13.6. ghc-heap-view did compile, though.

In order, the following will be installed:
ghc-heap-view-0.5.3 (reinstall)
ghc-vis-0.7.2.7 (new package)
Warning: Note that reinstalls are always dangerous. Continuing anyway...
Notice: installing into a sandbox located at
/home/seb/Dev/spielwiese/hs/ghc-vis/.cabal-sandbox
Configuring ghc-heap-view-0.5.3...
Building ghc-heap-view-0.5.3...
Installed ghc-heap-view-0.5.3
Configuring ghc-vis-0.7.2.7...
Building ghc-vis-0.7.2.7...
Failed to install ghc-vis-0.7.2.7
Build log ( /home/seb/Dev/spielwiese/hs/ghc-vis/.cabal-sandbox/logs/ghc-vis-0.7.2.7.log ):
[1 of 1] Compiling Main             ( /home/seb/Dev/spielwiese/hs/ghc-vis/ghc-vis/dist/dist-sandbox-ecaa9ed3/setup/setup.hs, /home/seb/Dev/spielwiese/hs/ghc-vis/ghc-vis/dist/dist-sandbox-ecaa9ed3/setup/Main.o )
Linking /home/seb/Dev/spielwiese/hs/ghc-vis/ghc-vis/dist/dist-sandbox-ecaa9ed3/setup/setup ...
Configuring ghc-vis-0.7.2.7...
Building ghc-vis-0.7.2.7...
Preprocessing library ghc-vis-0.7.2.7...
[1 of 8] Compiling GHC.Vis.Types    ( src/GHC/Vis/Types.hs, dist/dist-sandbox-ecaa9ed3/build/GHC/Vis/Types.o )

src/GHC/Vis/Types.hs:49:22: Warning:
    Variable ‘w’ is implicitly quantified due to a context
    Use explicit forall syntax instead.
    This will become an error in GHC 7.12.
    In the type ‘WidgetClass w => w -> IO ()’
    In the definition of data constructor ‘View’

src/GHC/Vis/Types.hs:51:22: Warning:
    Variable ‘w’ is implicitly quantified due to a context
    Use explicit forall syntax instead.
    This will become an error in GHC 7.12.
    In the type ‘WidgetClass w => w -> IO ()’
    In the definition of data constructor ‘View’

src/GHC/Vis/Types.hs:99:17: Warning:
    This binding for ‘x’ shadows the existing binding
      imported from ‘Graphics.Rendering.Cairo’ at src/GHC/Vis/Types.hs:29:1-31
      (and originally defined in ‘Graphics.Rendering.Cairo.Types’)

src/GHC/Vis/Types.hs:100:15: Warning:
    This binding for ‘x’ shadows the existing binding
      imported from ‘Graphics.Rendering.Cairo’ at src/GHC/Vis/Types.hs:29:1-31
      (and originally defined in ‘Graphics.Rendering.Cairo.Types’)

src/GHC/Vis/Types.hs:101:14: Warning:
    This binding for ‘x’ shadows the existing binding
      imported from ‘Graphics.Rendering.Cairo’ at src/GHC/Vis/Types.hs:29:1-31
      (and originally defined in ‘Graphics.Rendering.Cairo.Types’)

src/GHC/Vis/Types.hs:102:15: Warning:
    This binding for ‘x’ shadows the existing binding
      imported from ‘Graphics.Rendering.Cairo’ at src/GHC/Vis/Types.hs:29:1-31
      (and originally defined in ‘Graphics.Rendering.Cairo.Types’)

src/GHC/Vis/Types.hs:103:18: Warning:
    This binding for ‘x’ shadows the existing binding
      imported from ‘Graphics.Rendering.Cairo’ at src/GHC/Vis/Types.hs:29:1-31
      (and originally defined in ‘Graphics.Rendering.Cairo.Types’)
[2 of 8] Compiling GHC.Vis.Internal ( src/GHC/Vis/Internal.hs, dist/dist-sandbox-ecaa9ed3/build/GHC/Vis/Internal.o )

src/GHC/Vis/Internal.hs:27:1: Warning:
    The import of ‘Data.Word’ is redundant
      except perhaps to import instances from ‘Data.Word’
    To import instances alone, use: import Data.Word()

src/GHC/Vis/Internal.hs:38:10: Warning:
    Orphan instance: instance Eq Box
    To avoid this
        move the instance declaration to the module of the class or of the type, or
        wrap the type with a newtype and declare the instance on the new type.
[3 of 8] Compiling GHC.Vis.View.Common ( src/GHC/Vis/View/Common.hs, dist/dist-sandbox-ecaa9ed3/build/GHC/Vis/View/Common.o )
[4 of 8] Compiling GHC.Vis.View.List ( src/GHC/Vis/View/List.hs, dist/dist-sandbox-ecaa9ed3/build/GHC/Vis/View/List.o )

src/GHC/Vis/View/List.hs:24:1: Warning:
    The import item ‘PangoLayout(..)’ suggests that
    ‘PangoLayout’ has (in-scope) constructors or class methods,
    but it has none

src/GHC/Vis/View/List.hs:24:1: Warning:
    The import item ‘WidgetClass(..)’ suggests that
    ‘WidgetClass’ has (in-scope) constructors or class methods,
    but it has none
[5 of 8] Compiling GHC.Vis.View.Graph.Parser ( src/GHC/Vis/View/Graph/Parser.hs, dist/dist-sandbox-ecaa9ed3/build/GHC/Vis/View/Graph/Parser.o )

src/GHC/Vis/View/Graph/Parser.hs:128:58:
    Not in scope: ‘getDimensions’
Updating documentation index
/home/seb/Dev/spielwiese/hs/ghc-vis/.cabal-sandbox/share/doc/x86_64-linux-ghc-7.10.1/index.html
cabal: Error: some packages failed to install:
ghc-vis-0.7.2.7 failed during the building phase. The exception was:
ExitFailure 1

@nomeata
Copy link
Owner

nomeata commented Apr 16, 2015

Well, that’s ghc-vis that needs updating here. Did you test ghc-heap-view directly, e.g. from ghci?

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