thma / generic-persistence-demo Goto Github PK
View Code? Open in Web Editor NEWthis project contains some usage demos of the generic-persistence library
Home Page: https://github.com/thma/generic-persistence
License: Other
this project contains some usage demos of the generic-persistence library
Home Page: https://github.com/thma/generic-persistence
License: Other
nix-shell -p ghc cabal-install stack sqilite
cabal configure
cabal update
cabal build
` Compiling Main ( app/Main.hs, /root/clone/generic-persistence-demo/dist-newstyle/build/x86_64-linux/ghc-9.2.7/generic-persistence-demo-0.1.0.0/x/generic-persistence-demo-exe/build/generic-persistence-demo-exe/generic-persistence-demo-exe-tmp/Main.o )
app/Main.hs:58:13: error:
Variable not in scope: retrieveById :: Conn -> String -> IO a2
|
58 | alice' <- retrieveById @person conn "123456"
| ^^^^^^^^^^^^
app/Main.hs:62:17: error:
Variable not in scope: retrieveAll :: Conn -> IO a1
|
62 | allPersons <- retrieveAll @person conn
| ^^^^^^^^^^^
app/Main.hs:69:18: error:
Variable not in scope: retrieveAll :: Conn -> IO [Person]
|
69 | allPersons' <- retrieveAll conn :: IO [Person]
| ^^^^^^^^^^^
app/Main.hs:97:13: error:
Variable not in scope:
retrieveById :: Conn -> Int -> IO (Maybe Person)
|
97 | alice' <- retrieveById conn (123456 :: Int) :: IO (Maybe Person)
| ^^^^^^^^^^^^
app/Main.hs:101:17: error:
Variable not in scope: retrieveAll :: Conn -> IO [Person]
|
101 | allPersons <- retrieveAll conn :: IO [Person]
| ^^^^^^^^^^^
app/Main.hs:108:18: error:
Variable not in scope: retrieveAll :: Conn -> IO [Person]
|
108 | allPersons' <- retrieveAll conn :: IO [Person]
| ^^^^^^^^^^^
app/Main.hs:116:15: error:
Variable not in scope: retrieveAll :: Conn -> IO [Book]
|
116 | allBooks <- retrieveAll conn :: IO [Book]
| ^^^^^^^^^^^
app/Main.hs:123:16: error:
Variable not in scope: retrieveAll :: Conn -> IO [Book]
|
123 | allBooks' <- retrieveAll conn :: IO [Book]
| ^^^^^^^^^^^
app/Main.hs:174:14: error:
Variable not in scope: retrieveAll :: Conn -> IO (t0 a0)
|
174 | people' <- retrieveAll @person conn
| ^^^^^^^^^^^
Error: cabal: Failed to build exe:generic-persistence-demo-exe from
generic-persistence-demo-0.1.0.0.
Stack error
DBC-sqlite3 > library file does exist, it may contain errors that are caught by the C
`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.