-
Notifications
You must be signed in to change notification settings - Fork 175
No instance nor default method for class operation put (cereal 0.5) #678
Comments
what if we will instance Serialize CabalHelper.Programs where
put = ... and I don't know what here :) really please help me with that |
Serialize has default instances via GHC.Generics, IIRC you just need to add a deriving clause for that:
|
It feels more complicated since |
Looking at the diff cereal-0.4.1.1..cereal-0.5.0.0, I can't see any changes to relevant class instances so I'm not sure what's going on. |
I'm getting this issue using atom-haskell/haskell-ghc-mod |
ghc-mod list |
Please reinstall ghc-mod after running |
just did ghc-mod-5.4.0.0 (reinstall) (changes: async-2.0.2 added) same error: |
How about what I suggested here: #680 (comment) ? |
0.5.0.0 cereal is installed.. |
Argh looks like I got the constraint wrong: https://github.com/kazu-yamamoto/ghc-mod/blob/master/ghc-mod.cabal#L150 I'll upload another cabal metadata revision later. |
@ciez what do you mean it's not installed? |
I was checking from a sandboxed dir where there is no cereal. .cabal dir where ghc-mod is installed does show cereal 5.0.0 ta, Daniel |
I've uploaded the updated metadata now so it should work for now. I would appreciate if anyone would look into what's really going on here though. |
I've replaced cereal with binary now, really should've been doing this from the beginning since it comes with GHC. Anyways this should be fixed now. Just remember to |
Can you guys please test and confirm this actually works so I can close this issue? |
Done a clean build on a new install, no issue. No cereal in the dependency list, so I guess we're good! |
Well yeah cereal is gone but you never know if I broke something while I was ripping that out ;) |
I run ghc-mod at the root of a haskell project, I get:
I have 5.4
ghc-mod --version
ghc-mod version 5.4.0.0 compiled by GHC 7.10.1
I have another 5.4.0.0 install in another directory (same ghc, different sandbox) that works. The one that works has cereal 0.4.1.1 installed, the one that doesn't cereal-0.5.0.0. I realize this is a very recent version uploaded yesterday, is ghc-mod not compatible with it?
The text was updated successfully, but these errors were encountered: