Missing Yesod Constant Dependencies

I tried to launch Yesod quickly from the official site, but at startup yesod devel(after installation and startup yesod init) it cannot build due to a missing dependency if I use sqlite, postgresql, postgresql + fay or mysql (the “simple” option from yesod-initworks fine) .

The following are error messages:

For sqlite:

cabal: At least the following dependencies are missing:
persistent-sqlite ==1.3.*

For postgresql:

cabal: At least the following dependencies are missing:
persistent-postgresql ==1.3.*

For postgres + fay:

cabal: At least the following dependencies are missing:
fay >=0.16, persistent-postgresql ==1.3.*, yesod-fay >=0.5.0.1

For mysql:

cabal: At least the following dependencies are missing:
persistent-mysql  ==1.3.*

For mongoDB:

cabal: At least the following dependencies are missing:
persistent-mongoDB ==1.3.*

Does anyone know what is going wrong and how can it be fixed?

Update:

I managed to fix some problems by installing some of the missing dependencies separately from the Yesod platform.

cabal install persistent-sqlite fixed any problems using sqlite.

cabal install persistent-postgresql cabal install persistent-mysql Mint 16 (libpq-dev libmysqlclient-dev).

cabal install persistent-mongodb , :

... persistent-mongoDB-1.3.1... persistent-mongoDB-1.3.1... persistent-mongoDB-1.3.1... [1 1] . Persist.MongoDB( /Persist/MongoDB.hs, dist/build/Database/Persist/MongoDB.o)

/Persist/MongoDB.hs: 420: 26:    : `MonadThrow ' persistent-mongoDB-1.3.1 cabal: : : persistent-mongoDB-1.3.1 . : ExitFailure 1

- , ?

Update:

, cabal.

+4
1

( persistent-mongoDB-1.3.1.1, ).

cabal update, .

+2

Source: https://habr.com/ru/post/1540578/


All Articles