{"action":"created","issue":{"url":"https://api.github.com/repos/timholy/HDF5.jl/issues/203","labels_url":"https://api.github.com/repos/timholy/HDF5.jl/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/timholy/HDF5.jl/issues/203/comments","events_url":"https://api.github.com/repos/timholy/HDF5.jl/issues/203/events","html_url":"https://github.com/timholy/HDF5.jl/pull/203","id":53652178,"number":203,"title":"Allow literal bitstype and symbol type parameters","user":{"login":"mbauman","id":154641,"avatar_url":"https://avatars.githubusercontent.com/u/154641?v=3","gravatar_id":"","url":"https://api.github.com/users/mbauman","html_url":"https://github.com/mbauman","followers_url":"https://api.github.com/users/mbauman/followers","following_url":"https://api.github.com/users/mbauman/following{/other_user}","gists_url":"https://api.github.com/users/mbauman/gists{/gist_id}","starred_url":"https://api.github.com/users/mbauman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbauman/subscriptions","organizations_url":"https://api.github.com/users/mbauman/orgs","repos_url":"https://api.github.com/users/mbauman/repos","events_url":"https://api.github.com/users/mbauman/events{/privacy}","received_events_url":"https://api.github.com/users/mbauman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-01-07T16:38:52Z","updated_at":"2015-01-22T00:20:10Z","closed_at":"2015-01-07T20:29:28Z","pull_request":{"url":"https://api.github.com/repos/timholy/HDF5.jl/pulls/203","html_url":"https://github.com/timholy/HDF5.jl/pull/203","diff_url":"https://github.com/timholy/HDF5.jl/pull/203.diff","patch_url":"https://github.com/timholy/HDF5.jl/pull/203.patch"},"body":"Since Julia now allows these, we should, too.  Before:\r\n\r\n```julia\r\njulia> using HDF5, JLD\r\n       type Foo{a}; end\r\n       immutable Bar; x::Int; end\r\n\r\njulia> save(\"test.jld\", \"x\", Foo{:x}()); load(\"test.jld\")\r\nWARNING: type Foo{x} not present in workspace; reconstructing\r\nDict{Union(UTF8String,ASCIIString),Any} with 1 entry:\r\n  \"x\" => ##Foo{x}#9613()\r\n\r\njulia> save(\"test.jld\", \"x\", Foo{1.0}()); load(\"test.jld\")\r\nERROR: `is_valid_type_ex` has no method matching is_valid_type_ex(::Float64)\r\n in map at ./base.jl:189\r\n in is_valid_type_ex at /Users/mbauman/.julia/v0.3/HDF5/src/JLD.jl:753\r\n in julia_type at /Users/mbauman/.julia/v0.3/HDF5/src/JLD.jl:772\r\n in _julia_type at /Users/mbauman/.julia/v0.3/HDF5/src/JLD.jl:763\r\n in julia_type at /Users/mbauman/.julia/v0.3/HDF5/src/JLD.jl:17\r\n in jldatatype at /Users/mbauman/.julia/v0.3/HDF5/src/jld_types.jl:612\r\n in read at /Users/mbauman/.julia/v0.3/HDF5/src/JLD.jl:331\r\n in read at /Users/mbauman/.julia/v0.3/HDF5/src/JLD.jl:316\r\n in anonymous at /Users/mbauman/.julia/v0.3/HDF5/src/JLD.jl:977\r\n in jldopen at /Users/mbauman/.julia/v0.3/HDF5/src/JLD.jl:237\r\n in load at /Users/mbauman/.julia/v0.3/HDF5/src/JLD.jl:976\r\n\r\njulia> save(\"test.jld\", \"x\", Foo{Bar(1)}); load(\"test.jld\")\r\nWARNING: type Foo{Bar(1)} not present in workspace; reconstructing\r\nDict{Union(UTF8String,ASCIIString),Any} with 1 entry:\r\n  \"x\" => ##Foo{Bar(1)}#9675()\r\n```\r\n\r\nAfter:\r\n\r\n```julia\r\njulia> save(\"test.jld\", \"x\", Foo{:x}()); load(\"test.jld\")\r\nDict{Union(UTF8String,ASCIIString),Any} with 1 entry:\r\n  \"x\" => Foo{:x}()\r\n\r\njulia> save(\"test.jld\", \"x\", Foo{1.0}()); load(\"test.jld\")\r\nDict{Union(UTF8String,ASCIIString),Any} with 1 entry:\r\n  \"x\" => Foo{1.0}()\r\n\r\njulia> save(\"test.jld\", \"x\", Foo{Bar(1)}); load(\"test.jld\") # Edited; this is still unsupported\r\nWARNING: type Foo{Bar(1)} not present in workspace; reconstructing\r\nDict{Union(UTF8String,ASCIIString),Any} with 1 entry:\r\n  \"x\" => ##Foo{Bar(1)}#9675()\r\n```"},"comment":{"url":"https://api.github.com/repos/timholy/HDF5.jl/issues/comments/70949210","html_url":"https://github.com/timholy/HDF5.jl/pull/203#issuecomment-70949210","issue_url":"https://api.github.com/repos/timholy/HDF5.jl/issues/203","id":70949210,"user":{"login":"tkelman","id":5934628,"avatar_url":"https://avatars.githubusercontent.com/u/5934628?v=3","gravatar_id":"","url":"https://api.github.com/users/tkelman","html_url":"https://github.com/tkelman","followers_url":"https://api.github.com/users/tkelman/followers","following_url":"https://api.github.com/users/tkelman/following{/other_user}","gists_url":"https://api.github.com/users/tkelman/gists{/gist_id}","starred_url":"https://api.github.com/users/tkelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkelman/subscriptions","organizations_url":"https://api.github.com/users/tkelman/orgs","repos_url":"https://api.github.com/users/tkelman/repos","events_url":"https://api.github.com/users/tkelman/events{/privacy}","received_events_url":"https://api.github.com/users/tkelman/received_events","type":"User","site_admin":false},"created_at":"2015-01-22T00:20:10Z","updated_at":"2015-01-22T00:20:10Z","body":"It was just the one version, right? That's what it looked like in metadata. It would be a bit more convenient for searching and navigation if recent tags of the package were showing up in the github repo here."}}