music-suite / music-score

This repo has been merged into: https://github.com/music-suite/music-suite
http://music-suite.github.io
BSD 3-Clause "New" or "Revised" License
52 stars 10 forks source link

ghc 7.4.1 compile failure #257

Closed jgm closed 10 years ago

jgm commented 10 years ago
[ 6 of 71] Compiling Music.Time.Types ( src/Music/Time/Types.hs, dist/build/Music/Time/Types.o )

src/Music/Time/Types.hs:77:67:
    Module `Control.Lens' does not export `above'
Failed to install music-score-1.7

At the least, this shows the need for a tighter version bound on lens. I have lens 4.1.2.1 installed. 4.2 doesn't seem to export above either. Fixed it with

sed -i -e 's/, above,/,/' src/**/*.hs

Then I got:

src/Music/Time/Behavior.hs:72:56:
    Module `Prelude' does not export `trimAfter'

Removed that from "hiding."

Next,

[30 of 71] Compiling Music.Time.Behavior ( src/Music/Time/Behavior.hs, dist/build/Music/Time/Behavior.o )

src/Music/Time/Behavior.hs:227:12:
    Ambiguous occurrence `tabulated'
    It could refer to either `Data.Functor.Rep.tabulated',
                             imported from `Data.Functor.Rep' at src/Music/Time/Behavior.hs:81:1-33
                          or `Data.Functor.Rep.Lens.tabulated',
                             imported from `Data.Functor.Rep.Lens' at src/Music/Time/Behavior.hs:82:1-38

src/Music/Time/Behavior.hs:252:15:
    Ambiguous occurrence `tabulated'
    It could refer to either `Data.Functor.Rep.tabulated',
                             imported from `Data.Functor.Rep' at src/Music/Time/Behavior.hs:81:1-33
                          or `Data.Functor.Rep.Lens.tabulated',
                             imported from `Data.Functor.Rep.Lens' at src/Music/Time/Behavior.hs:82:1-38

src/Music/Time/Behavior.hs:261:22:
    Ambiguous occurrence `tabulated'
    It could refer to either `Data.Functor.Rep.tabulated',
                             imported from `Data.Functor.Rep' at src/Music/Time/Behavior.hs:81:1-33
                          or `Data.Functor.Rep.Lens.tabulated',
                             imported from `Data.Functor.Rep.Lens' at src/Music/Time/Behavior.hs:82:1-38

I wasn't sure what was needed here, so I stopped.

hanshoglund commented 10 years ago

Hello John,

The Suite requires the latest HP, so you should use GHC >= 7.6.3, allthough this does not seem to be causing the build problems above.

The last error seem to be caused by a concurrent release of adjunctions introducing the tabulated combinator (which we also defined in music-score). I will do a new minor release shortly to amend this.

hanshoglund commented 10 years ago

Fixed by #256, closing.