Closed
Conversation
Member
|
It's not going to work when using the installed copies of persistent-(sqlite, postgresql) because the installed copies will be referring to the installed copy of persistent, which has different types (with identical names) to the files in the current directory. You either have to link in the files like I've been saying to try, or use hs-source-dirs like the code below. In other words, if you ever need to install the backends in order to run the test, you're doing something wrong. |
MaxGabriel
pushed a commit
that referenced
this pull request
Mar 8, 2018
Document persistManyFileWith
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I just downloaded onto a different machine (that I haven't used in months) and got the same problem. Here I put the tests into a cabal file and a cabal build gives me the same as before:
runtests.hs:42:0: `sqlType' is not a (visible) method of class `Database.Persist.Base.PersistField' runtests.hs:42:0: `toPersistValue' is not a (visible) method of class `Database.Persist.Base.PersistField' runtests.hs:42:0: `fromPersistValue' is not a (visible) method of class `Database.Persist.Base.PersistField'