Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.

ghc-mod err on type check #680

Closed
shengc opened this issue Nov 5, 2015 · 3 comments
Closed

ghc-mod err on type check #680

shengc opened this issue Nov 5, 2015 · 3 comments

Comments

@shengc
Copy link

shengc commented Nov 5, 2015

shengc@shengs-mac-mini:~/Documents/Workspace/RWH$ ghc-mod check src/Main.hs
ghc-mod: Language/Haskell/GhcMod/Types.hs:404:10-39: No instance nor default method for class operation put

shengc@shengs-mac-mini:~/Documents/Workspace/RWH$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.2

shengc@shengs-mac-mini:~/Documents/Workspace/RWH$ cabal --version
cabal-install version 1.22.6.0
using version 1.22.4.0 of the Cabal library

shengc@shengs-mac-mini:~/Documents/Workspace/RWH$ ghc-mod --version
ghc-mod version 5.4.0.0 compiled by GHC 7.10.2

the error comes from here,

http://hackage.haskell.org/package/ghc-mod-5.4.0.0/docs/src/Language-Haskell-GhcMod-Types.html

instance Serialize ModuleName where
  get = mkModuleName <$> get
  put mn = put (moduleNameString mn)

is there any suggested fix on this ?

@DanielG
Copy link
Owner

DanielG commented Nov 5, 2015

Duplicate: #678.

Basically use cereal < 0.5. Something like cabal install ghc-mod --constraint "cereal < 0.5" should do the trick.

@DanielG DanielG closed this as completed Nov 5, 2015
@shengc
Copy link
Author

shengc commented Nov 5, 2015

Thanks a lot - that works!

@moodmosaic
Copy link

That works for me as well 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants