Skip to content

Commit 1a71063

Browse files
authored
Mark Libtask.might_produce public. (#182)
* Update index.md * Update internals.md * Update Project.toml * Update index.md * Update index.md
1 parent 9927c67 commit 1a71063

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ uuid = "6f1fad26-d15e-5dc8-ae53-837a1d7b8c9f"
33
license = "MIT"
44
desc = "Tape based task copying in Turing"
55
repo = "https://github.com/TuringLang/Libtask.jl.git"
6-
version = "0.9.0"
6+
version = "0.9.1"
77

88
[deps]
99
MistyClosures = "dbe65cb8-6be2-42dd-bbc5-4196aaced4f4"

docs/src/index.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,22 @@ public interface of Libtask.jl.
1010
They divide neatly into two kinds of functions: those which are used to manipulate
1111
[`TapedTask`](@ref)s, and those which are intended to be used _inside_ a
1212
[`TapedTask`](@ref).
13-
First, manipulation of [`TapedTask`](@ref)s:
13+
14+
## Manipulation of [`TapedTask`](@ref)s:
1415
```@docs; canonical=true
1516
Libtask.consume
1617
Base.copy(::Libtask.TapedTask)
1718
Libtask.set_taped_globals!
1819
```
1920

20-
Functions for use inside a [`TapedTask`](@ref)s are:
21+
## Functions for use inside a [`TapedTask`](@ref)s:
2122
```@docs; canonical=true
2223
Libtask.produce
2324
Libtask.get_taped_globals
2425
```
26+
27+
An opt-in mechanism marks functions that might contain `Libtask.produce` statements.
28+
29+
```@docs; canonical=true
30+
Libtask.might_produce(::Type{<:Tuple})
31+
```

docs/src/internals.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
```@docs; canonical=true
44
Libtask.produce_value
55
Libtask.is_produce_stmt
6-
Libtask.might_produce
76
Libtask.stmt_might_produce
87
Libtask.inc_args
98
Libtask.get_type

0 commit comments

Comments
 (0)