Skip to content

Instantly share code, notes, and snippets.

@streamerd
Created March 7, 2018 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save streamerd/f24e5b91b687361e88363f11aa9ef591 to your computer and use it in GitHub Desktop.
Save streamerd/f24e5b91b687361e88363f11aa9ef591 to your computer and use it in GitHub Desktop.
stack build throwing error for type: 'Money', No instance for (Eq Money)
/Users/streamerd/Developer/hs/haskellAtWork/projectz/Project.hs:28:21: error:
• No instance for (Eq Money)
arising from the first field of ‘Sale’ (type ‘Money’)
Possible fix:
use a standalone 'deriving instance' declaration,
so you can specify the instance context yourself
• When deriving the instance for (Eq Transaction)
|
28 | deriving (Show, Eq)
| ^^
-- While building custom Setup.hs for package projectz-0.1.0.0 using:
/Users/streamerd/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-2.0.1.0 build lib:projectz exe:projectz-exe --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment