{"action":"closed","issue":{"url":"https://api.github.com/repos/heathermiller/spores/issues/10","labels_url":"https://api.github.com/repos/heathermiller/spores/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/heathermiller/spores/issues/10/comments","events_url":"https://api.github.com/repos/heathermiller/spores/issues/10/events","html_url":"https://github.com/heathermiller/spores/issues/10","id":61569752,"number":10,"title":"No Unpickler found for SporeWithEnv","user":{"login":"phaller","id":289943,"avatar_url":"https://avatars.githubusercontent.com/u/289943?v=3","gravatar_id":"","url":"https://api.github.com/users/phaller","html_url":"https://github.com/phaller","followers_url":"https://api.github.com/users/phaller/followers","following_url":"https://api.github.com/users/phaller/following{/other_user}","gists_url":"https://api.github.com/users/phaller/gists{/gist_id}","starred_url":"https://api.github.com/users/phaller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phaller/subscriptions","organizations_url":"https://api.github.com/users/phaller/orgs","repos_url":"https://api.github.com/users/phaller/repos","events_url":"https://api.github.com/users/phaller/events{/privacy}","received_events_url":"https://api.github.com/users/phaller/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-14T11:31:51Z","updated_at":"2015-03-14T11:39:45Z","closed_at":"2015-03-14T11:39:45Z","body":"```scala\r\n  def doPickle[T <: Spore[Int, String]: Pickler: Unpickler](spor: T) = {\r\n    val unpickler = implicitly[Unpickler[T]]\r\n    val res       = spor.pickle\r\n    val reader    = pickleFormat.createReader(res)\r\n    val spor2     = unpickler.unpickleEntry(reader).asInstanceOf[Spore[Int, String]]\r\n    assert(spor2(5) == spor(5))\r\n    assert(spor2.getClass.getName == spor.getClass.getName)\r\n  }\r\n\r\n  @Test\r\n  def testPickleUnpickleSporeWithTypeRefinement(): Unit = {\r\n    val v1 = 10\r\n    val v2 = \"hello\"\r\n    val s = spore {\r\n      val c1 = v1\r\n      val c2 = v2\r\n      (x: Int) => s\"arg: $x, c1: $c1, c2: $c2\"\r\n    }\r\n    doPickle(s)\r\n  }\r\n```\r\n"}}