{"action":"closed","issue":{"url":"https://api.github.com/repos/khibino/haskell-relational-record/issues/64","repository_url":"https://api.github.com/repos/khibino/haskell-relational-record","labels_url":"https://api.github.com/repos/khibino/haskell-relational-record/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/khibino/haskell-relational-record/issues/64/comments","events_url":"https://api.github.com/repos/khibino/haskell-relational-record/issues/64/events","html_url":"https://github.com/khibino/haskell-relational-record/issues/64","id":314557488,"number":64,"title":"Not enough instances of network address types in PostgreSQL with nullable SQL type","user":{"login":"khibino","id":213801,"avatar_url":"https://avatars1.githubusercontent.com/u/213801?v=4","gravatar_id":"","url":"https://api.github.com/users/khibino","html_url":"https://github.com/khibino","followers_url":"https://api.github.com/users/khibino/followers","following_url":"https://api.github.com/users/khibino/following{/other_user}","gists_url":"https://api.github.com/users/khibino/gists{/gist_id}","starred_url":"https://api.github.com/users/khibino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khibino/subscriptions","organizations_url":"https://api.github.com/users/khibino/orgs","repos_url":"https://api.github.com/users/khibino/repos","events_url":"https://api.github.com/users/khibino/events{/privacy}","received_events_url":"https://api.github.com/users/khibino/received_events","type":"User","site_admin":false},"labels":[{"id":38870327,"url":"https://api.github.com/repos/khibino/haskell-relational-record/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"khibino","id":213801,"avatar_url":"https://avatars1.githubusercontent.com/u/213801?v=4","gravatar_id":"","url":"https://api.github.com/users/khibino","html_url":"https://github.com/khibino","followers_url":"https://api.github.com/users/khibino/followers","following_url":"https://api.github.com/users/khibino/following{/other_user}","gists_url":"https://api.github.com/users/khibino/gists{/gist_id}","starred_url":"https://api.github.com/users/khibino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khibino/subscriptions","organizations_url":"https://api.github.com/users/khibino/orgs","repos_url":"https://api.github.com/users/khibino/repos","events_url":"https://api.github.com/users/khibino/events{/privacy}","received_events_url":"https://api.github.com/users/khibino/received_events","type":"User","site_admin":false},"assignees":[{"login":"khibino","id":213801,"avatar_url":"https://avatars1.githubusercontent.com/u/213801?v=4","gravatar_id":"","url":"https://api.github.com/users/khibino","html_url":"https://github.com/khibino","followers_url":"https://api.github.com/users/khibino/followers","following_url":"https://api.github.com/users/khibino/following{/other_user}","gists_url":"https://api.github.com/users/khibino/gists{/gist_id}","starred_url":"https://api.github.com/users/khibino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khibino/subscriptions","organizations_url":"https://api.github.com/users/khibino/orgs","repos_url":"https://api.github.com/users/khibino/repos","events_url":"https://api.github.com/users/khibino/events{/privacy}","received_events_url":"https://api.github.com/users/khibino/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-04-16T08:57:14Z","updated_at":"2018-04-25T15:55:13Z","closed_at":"2018-04-25T15:55:13Z","author_association":"OWNER","body":"```haskell\r\n{-# LANGUAGE TemplateHaskell #-}\r\n{-# LANGUAGE DeriveGeneric #-}\r\n{-# LANGUAGE MultiParamTypeClasses, DataKinds, FlexibleInstances #-}\r\n\r\nimport GHC.Generics (Generic)\r\nimport Database.Relational\r\nimport Data.PostgreSQL.NetworkAddress\r\nimport Database.HDBC.PostgreSQL.Persistable ()\r\nimport Database.HDBC.Query.TH (makeRelationalRecord)\r\n\r\n\r\ndata Foo =\r\n  Foo { foo :: Maybe Inet }\r\n  deriving Generic\r\n\r\n$(makeRelationalRecord ''Foo)\r\n```\r\n\r\n```\r\nmaybe.hs:16:3: error:\r\n    • No instance for (Database.Record.KeyConstraint.HasColumnConstraint\r\n                         NotNull Inet)\r\n        arising from a use of ‘Database.Record.FromSql.$dmrecordFromSql’\r\n    • In the expression:\r\n        Database.Record.FromSql.$dmrecordFromSql\r\n          @Database.HDBC.SqlValue.SqlValue @Foo\r\n      In an equation for ‘recordFromSql’:\r\n          recordFromSql\r\n            = Database.Record.FromSql.$dmrecordFromSql\r\n                @Database.HDBC.SqlValue.SqlValue @Foo\r\n      In the instance declaration for\r\n        ‘Database.Record.FromSql.FromSql\r\n           Database.HDBC.SqlValue.SqlValue Foo’\r\n\r\n...\r\n```\r\n\r\n* no instance for not-null\r\n\r\nCidr type has the same issue."}}
{"actor":{"display_login":"khibino"}}