data-haskell-challenge's People
data-haskell-challenge's Issues
in via-opaleye, "No instance for (Default Unpackspec (Item O) (Item O))"
When I try to run this Opaleye solution I get the following error:
jeff@jeff-ThinkCentre-M700:~/data-haskell/challenge/via-opaleye$ stack ghci
via-opaleye-0.1.0.0: configure (lib)
Configuring via-opaleye-0.1.0.0...
via-opaleye-0.1.0.0: initial-build-steps (lib)
Configuring GHCi with the following packages: via-opaleye
GHCi, version 8.4.4: http://www.haskell.org/ghc/ :? for help
[1 of 1] Compiling Lib ( /home/jeff/data-haskell/challenge/via-opaleye/src/Lib.hs, interpreted )
/home/jeff/data-haskell/challenge/via-opaleye/src/Lib.hs:56:15: error:
• No instance for (Default Unpackspec (Item O) (Item O))
arising from a use of ‘selectTable’
• In the expression: selectTable items
In the command: selectTable items -< ()
In a stmt of a 'do' block in an arrow command:
item <- selectTable items -< ()
|
56 | item <- selectTable items -< ()
| ^^^^^^^^^^^^^^^^^
/home/jeff/data-haskell/challenge/via-opaleye/src/Lib.hs:57:15: error:
• No instance for (Default Unpackspec (Purchase O) (Purchase O))
arising from a use of ‘selectTable’
• In the expression: selectTable purchases
In the command: selectTable purchases -< ()
In a stmt of a 'do' block in an arrow command:
purchase <- selectTable purchases -< ()
|
57 | purchase <- selectTable purchases -< ()
| ^^^^^^^^^^^^^^^^^^^^^
Failed, no modules loaded.
<no location info>: error:
Could not find module ‘Lib’
It is not a module in the current program, or in any known package.
Loaded GHCi configuration from /tmp/haskell-stack-ghci/c6e38927/ghci-script
Prelude>
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.