Skip to content

Instantly share code, notes, and snippets.

@andrevidela
Created September 5, 2018 07:22
Show Gist options
  • Save andrevidela/2c551fad7e58713d0e082d2964b7db1f to your computer and use it in GitHub Desktop.
Save andrevidela/2c551fad7e58713d0e082d2964b7db1f to your computer and use it in GitHub Desktop.
custom primary key persistent
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