{"action":"closed","issue":{"url":"https://api.github.com/repos/paf31/purescript-book/issues/56","repository_url":"https://api.github.com/repos/paf31/purescript-book","labels_url":"https://api.github.com/repos/paf31/purescript-book/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/paf31/purescript-book/issues/56/comments","events_url":"https://api.github.com/repos/paf31/purescript-book/issues/56/events","html_url":"https://github.com/paf31/purescript-book/issues/56","id":191985264,"number":56,"title":"insertEntry example is wrong","user":{"login":"kristianmandrup","id":125005,"avatar_url":"https://avatars.githubusercontent.com/u/125005?v=3","gravatar_id":"","url":"https://api.github.com/users/kristianmandrup","html_url":"https://github.com/kristianmandrup","followers_url":"https://api.github.com/users/kristianmandrup/followers","following_url":"https://api.github.com/users/kristianmandrup/following{/other_user}","gists_url":"https://api.github.com/users/kristianmandrup/gists{/gist_id}","starred_url":"https://api.github.com/users/kristianmandrup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristianmandrup/subscriptions","organizations_url":"https://api.github.com/users/kristianmandrup/orgs","repos_url":"https://api.github.com/users/kristianmandrup/repos","events_url":"https://api.github.com/users/kristianmandrup/events{/privacy}","received_events_url":"https://api.github.com/users/kristianmandrup/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-28T11:44:47Z","updated_at":"2016-11-28T17:23:12Z","closed_at":"2016-11-28T17:23:12Z","body":"\r\n\r\nLet’s also test showEntry by creating an address book entry record containing our example address:\r\n\r\n`> let entry = { firstName: \"John\", lastName: \"Smith\", address: address }`\r\n\r\nA little later.. but `example` has never been defined\r\n\r\n`> :type insertEntry example`\r\n\r\nAddressBook -> AddressBook\r\n\r\nSo instead we get an error. Then I try using `entry` (the \"example\" entry defined earlier)\r\n\r\n```\r\n> :type insertEntry entry\r\nList                                \r\n  { firstName :: String             \r\n  , lastName :: String              \r\n  , address :: { street :: String   \r\n               , city :: String     \r\n               , state :: String    \r\n               }                    \r\n  }                                 \r\n-> List                             \r\n     { firstName :: String          \r\n     , lastName :: String           \r\n     , address :: { street :: String\r\n                  , city :: String  \r\n                  , state :: String \r\n                  }                 \r\n     }                              \r\n```\r\n\r\nWhy do I get `List` and not `AddressBook` !?"}}
{"actor":{"display_login":"paf31"}}