Created
September 5, 2018 07:22
-
-
Save andrevidela/2c551fad7e58713d0e082d2964b7db1f to your computer and use it in GitHub Desktop.
custom primary key persistent
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
atlantis-db/src/Atlantis/Database/Entities.hs:35:1: error: | |
• No instance for (Read Hash) | |
arising from the first field of ‘TransactionEntityKey’ | |
(type ‘Hash’) | |
Possible fix: | |
use a standalone 'deriving instance' declaration, | |
so you can specify the instance context yourself | |
• When deriving the instance for (Read (Key TransactionEntity)) | |
| | |
35 | share [mkPersist sqlSettings, mkMigrate "migrateTables"] [persistLowerCase| | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... | |
atlantis-db/src/Atlantis/Database/Entities.hs:35:1: error: | |
• No instance for (Web.PathPieces.PathPiece Hash) | |
arising from the 'deriving' clause of a data type declaration | |
Possible fix: | |
use a standalone 'deriving instance' declaration, | |
so you can specify the instance context yourself | |
• When deriving the instance for (Web.PathPieces.PathPiece | |
(Key TransactionEntity)) | |
| | |
35 | share [mkPersist sqlSettings, mkMigrate "migrateTables"] [persistLowerCase| | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... | |
atlantis-db/src/Atlantis/Database/Entities.hs:35:1: error: | |
• No instance for (http-api-data-0.3.8.1:Web.Internal.HttpApiData.ToHttpApiData | |
Hash) | |
arising from the 'deriving' clause of a data type declaration | |
Possible fix: | |
use a standalone 'deriving instance' declaration, | |
so you can specify the instance context yourself | |
• When deriving the instance for (http-api-data-0.3.8.1:Web.Internal.HttpApiData.ToHttpApiData | |
(Key TransactionEntity)) | |
| | |
35 | share [mkPersist sqlSettings, mkMigrate "migrateTables"] [persistLowerCase| | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... | |
atlantis-db/src/Atlantis/Database/Entities.hs:35:1: error: | |
• No instance for (http-api-data-0.3.8.1:Web.Internal.HttpApiData.FromHttpApiData | |
Hash) | |
arising from the 'deriving' clause of a data type declaration | |
Possible fix: | |
use a standalone 'deriving instance' declaration, | |
so you can specify the instance context yourself | |
• When deriving the instance for (http-api-data-0.3.8.1:Web.Internal.HttpApiData.FromHttpApiData | |
(Key TransactionEntity)) | |
| | |
35 | share [mkPersist sqlSettings, mkMigrate "migrateTables"] [persistLowerCase| | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... | |
atlantis-db/src/Atlantis/Database/Entities.hs:35:1: error: | |
• No instance for (Read Hash) | |
arising from the first field of ‘BlockEntityKey’ (type ‘Hash’) | |
Possible fix: | |
use a standalone 'deriving instance' declaration, | |
so you can specify the instance context yourself | |
• When deriving the instance for (Read (Key BlockEntity)) | |
| | |
35 | share [mkPersist sqlSettings, mkMigrate "migrateTables"] [persistLowerCase| | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... | |
atlantis-db/src/Atlantis/Database/Entities.hs:35:1: error: | |
• No instance for (Web.PathPieces.PathPiece Hash) | |
arising from the 'deriving' clause of a data type declaration | |
Possible fix: | |
use a standalone 'deriving instance' declaration, | |
so you can specify the instance context yourself | |
• When deriving the instance for (Web.PathPieces.PathPiece | |
(Key BlockEntity)) | |
| | |
35 | share [mkPersist sqlSettings, mkMigrate "migrateTables"] [persistLowerCase| | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... | |
atlantis-db/src/Atlantis/Database/Entities.hs:35:1: error: | |
• No instance for (http-api-data-0.3.8.1:Web.Internal.HttpApiData.ToHttpApiData | |
Hash) | |
arising from the 'deriving' clause of a data type declaration | |
Possible fix: | |
use a standalone 'deriving instance' declaration, | |
so you can specify the instance context yourself | |
• When deriving the instance for (http-api-data-0.3.8.1:Web.Internal.HttpApiData.ToHttpApiData | |
(Key BlockEntity)) | |
| | |
35 | share [mkPersist sqlSettings, mkMigrate "migrateTables"] [persistLowerCase| | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... | |
atlantis-db/src/Atlantis/Database/Entities.hs:35:1: error: | |
• No instance for (http-api-data-0.3.8.1:Web.Internal.HttpApiData.FromHttpApiData | |
Hash) | |
arising from the 'deriving' clause of a data type declaration | |
Possible fix: | |
use a standalone 'deriving instance' declaration, | |
so you can specify the instance context yourself | |
• When deriving the instance for (http-api-data-0.3.8.1:Web.Internal.HttpApiData.FromHttpApiData | |
(Key BlockEntity)) | |
| | |
35 | share [mkPersist sqlSettings, mkMigrate "migrateTables"] [persistLowerCase| | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment