Skip to content

Commit f3fbce0

Browse files
sunxd3torfjelde
andauthored
Move to Accessors.jl from Setfield.jl (#91)
* move to Accessors * fix tests * fix test error * add compat * version bump * Update src/varname.jl Co-authored-by: Tor Erlend Fjelde <tor.erlend95@gmail.com> * Update src/varname.jl * remove type piracy in `show` function * fix print behavior * removed composition of a varname to a lens * update doc * remove `Setfield` * add some type stability tests and additional doctests * fix test error * Update src/varname.jl Co-authored-by: Tor Erlend Fjelde <tor.erlend95@gmail.com> * copy functions from Setfield and recover the interpolation abilities * fix some comments --------- Co-authored-by: Tor Erlend Fjelde <tor.erlend95@gmail.com>
1 parent 1fd87cf commit f3fbce0

File tree

5 files changed

+262
-168
lines changed

5 files changed

+262
-168
lines changed

Project.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@ uuid = "7a57a42e-76ec-4ea3-a279-07e840d6d9cf"
33
keywords = ["probablistic programming"]
44
license = "MIT"
55
desc = "Common interfaces for probabilistic programming"
6-
version = "0.7.1"
6+
version = "0.8.0"
77

88
[deps]
99
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
10+
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
1011
DensityInterface = "b429d917-457f-4dbc-8f4c-0cc954292b1d"
12+
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
1113
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
12-
Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46"
1314

1415
[compat]
1516
AbstractMCMC = "2, 3, 4, 5"
17+
Accessors = "0.1"
1618
DensityInterface = "0.4"
1719
Random = "1.6"
18-
Setfield = "0.8.2, 1"
1920
julia = "~1.6.6, 1.7.3"

src/AbstractPPL.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module AbstractPPL
33
# VarName
44
export VarName,
55
getsym,
6-
getlens,
6+
getoptic,
77
inspace,
88
subsumes,
99
subsumedby,

0 commit comments

Comments
 (0)