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

rtorrent-rpc-0.2.2.0 doesn't compile with GHC 7.10.x #2

Open
peti opened this issue May 13, 2015 · 1 comment
Open

rtorrent-rpc-0.2.2.0 doesn't compile with GHC 7.10.x #2

peti opened this issue May 13, 2015 · 1 comment

Comments

@peti
Copy link

peti commented May 13, 2015

Building rtorrent-rpc-0.2.2.0...
Preprocessing library rtorrent-rpc-0.2.2.0...
[ 1 of 14] Compiling Network.RTorrent.SCGI ( Network/RTorrent/SCGI.hs, dist/build/Network/RTorrent/SCGI.o )
[ 2 of 14] Compiling Network.RTorrent.Chunk ( Network/RTorrent/Chunk.hs, dist/build/Network/RTorrent/Chunk.o )
[ 3 of 14] Compiling Network.RTorrent.Priority ( Network/RTorrent/Priority.hs, dist/build/Network/RTorrent/Priority.o )

Network/RTorrent/Priority.hs:24:10:
    No instance for (GHC.Generics.Generic TorrentPriority)
      arising from a use of ‘Control.DeepSeq.$gdmrnf’
    In the expression: Control.DeepSeq.$gdmrnf
    In an equation for ‘rnf’: rnf = Control.DeepSeq.$gdmrnf
    In the instance declaration for ‘NFData TorrentPriority’

Network/RTorrent/Priority.hs:53:10:
    No instance for (GHC.Generics.Generic FilePriority)
      arising from a use of ‘Control.DeepSeq.$gdmrnf’
    In the expression: Control.DeepSeq.$gdmrnf
    In an equation for ‘rnf’: rnf = Control.DeepSeq.$gdmrnf
    In the instance declaration for ‘NFData FilePriority’
@mr
Copy link

mr commented Mar 4, 2016

There's a few spots in the code that need DeriveGeneric to work. I messed with the cabal file a bit and managed to get it to compile on latest GHC, but I'm going to do some testing before I try to do a pull request.

If you want to do it yourself you can always add DeriveGeneric to the cabal file, import GHC.Generics where you need it and add Generic to the derive statement on the offending datatype. This will give you the instance you need.

It makes the types stop complaining so that's at least a good sign.

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

2 participants