Compilation error with ghc 7.4 installing 0.4.1.1 with cabal #1

Closed
rrthomas opened this Issue Aug 27, 2012 · 3 comments

Comments

Projects
None yet
2 participants
@rrthomas

I get the following error:

Downloading hogg-0.4.1.1...
Configuring hogg-0.4.1.1...
Building hogg-0.4.1.1...
Preprocessing library hogg-0.4.1.1...
[ 1 of 20] Compiling Codec.Container.Ogg.Dump ( Codec/Container/Ogg/Dump.hs, dist/build/Codec/Container/Ogg/Dump.o )
[ 2 of 20] Compiling Codec.Container.Ogg.CRC ( Codec/Container/Ogg/CRC.hs, dist/build/Codec/Container/Ogg/CRC.o )
[ 3 of 20] Compiling Codec.Container.Ogg.TimeScheme ( Codec/Container/Ogg/TimeScheme.hs, dist/build/Codec/Container/Ogg/TimeScheme.o )
[ 4 of 20] Compiling Codec.Container.Ogg.MessageHeaders ( Codec/Container/Ogg/MessageHeaders.hs, dist/build/Codec/Container/Ogg/MessageHeaders.o )
[ 5 of 20] Compiling Codec.Container.Ogg.Granulerate ( Codec/Container/Ogg/Granulerate.hs, dist/build/Codec/Container/Ogg/Granulerate.o )
[ 6 of 20] Compiling Codec.Container.Ogg.ByteFields ( Codec/Container/Ogg/ByteFields.hs, dist/build/Codec/Container/Ogg/ByteFields.o )
[ 7 of 20] Compiling Codec.Container.Ogg.RawPage ( Codec/Container/Ogg/RawPage.hs, dist/build/Codec/Container/Ogg/RawPage.o )
[ 8 of 20] Compiling Codec.Container.Ogg.Timestamp ( Codec/Container/Ogg/Timestamp.hs, dist/build/Codec/Container/Ogg/Timestamp.o )
[ 9 of 20] Compiling Codec.Container.Ogg.List ( Codec/Container/Ogg/List.hs, dist/build/Codec/Container/Ogg/List.o )
[10 of 20] Compiling Codec.Container.Ogg.Serial ( Codec/Container/Ogg/Serial.hs, dist/build/Codec/Container/Ogg/Serial.o )

Codec/Container/Ogg/Serial.hs:48:10:
Duplicate instance declarations:
instance Random Serial
-- Defined at Codec/Container/Ogg/Serial.hs:48:10
instance Random Word32 -- Defined in `System.Random'
cabal: Error: some packages failed to install:
hogg-0.4.1.1 failed during the building phase. The exception was:
ExitFailure 1

Using ghc 7.4.1 as shipped with Ubuntu 12.04.

kfish added a commit that referenced this issue Aug 28, 2012

Serial: remove custom Random interface (issue #1)
System.Random in ghc-7.x.y contains an instance for Word32, and
the Serial module fails to build with ghc-7.4.x due to duplicate
instance declarations.

There is no need for the custom instance, so remove it and use
randomR directly.

Tested-with: ghc-7.0.3, ghc-7.2.1, ghc-7.4.2, ghc-7.6.0.20120810
@kfish

This comment has been minimized.

Show comment Hide comment
@kfish

kfish Aug 28, 2012

Owner

Fixed in b0e46a7

Owner

kfish commented Aug 28, 2012

Fixed in b0e46a7

@kfish kfish closed this Aug 28, 2012

@kfish

This comment has been minimized.

Show comment Hide comment
@kfish

kfish Aug 28, 2012

Owner

Also, hogg-0.4.1.2 is now on hackage with this fix, so "cabal install hogg" should work.

Owner

kfish commented Aug 28, 2012

Also, hogg-0.4.1.2 is now on hackage with this fix, so "cabal install hogg" should work.

@rrthomas

This comment has been minimized.

Show comment Hide comment
@rrthomas

rrthomas Aug 28, 2012

Thanks very much for the quick fix!

Thanks very much for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment