Giter Site home page Giter Site logo

thma / generic-persistence-demo Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 7 KB

this project contains some usage demos of the generic-persistence library

Home Page: https://github.com/thma/generic-persistence

License: Other

Haskell 100.00%
generics haskell hdbc persistence persistence-api persistence-layer

generic-persistence-demo's Introduction

generic-persistence-demo's People

Contributors

thma avatar

Stargazers

 avatar

Watchers

 avatar  avatar

generic-persistence-demo's Issues

cabal fails to build and main.hs error and stack error

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
`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.