File tree Expand file tree Collapse file tree 7 files changed +29
-14
lines changed
Expand file tree Collapse file tree 7 files changed +29
-14
lines changed Original file line number Diff line number Diff line change 11defmodule Behaviour do
22 @ moduledoc """
3- WARNING: this module is deprecated .
3+ Mechanism for handling behaviours .
44
5- Instead of `defcallback/1` and `defmacrocallback/1`, the `@callback` and
6- `@macrocallback` module attributes can be used (respectively). See the
7- documentation for `Module` for more information on these attributes.
5+ This module is deprecated. Instead of `defcallback/1` and
6+ `defmacrocallback/1`, the `@callback` and `@macrocallback`
7+ module attributes can be used (respectively). See the
8+ documentation for `Module` for more information on these
9+ attributes.
810
911 Instead of `MyModule.__behaviour__(:callbacks)`,
1012 `MyModule.behaviour_info(:callbacks)` can be used.
1113 """
1214
15+ @ moduledoc deprecated: "Use @callback and @macrocallback attributes instead"
16+
1317 @ doc """
1418 Defines a function callback according to the given type specification.
1519 """
Original file line number Diff line number Diff line change 11defmodule Dict do
22 @ moduledoc ~S"""
3- WARNING: this module is deprecated .
3+ Generic API for dictionaries .
44
55 If you need a general dictionary, use the `Map` module.
66 If you need to manipulate keyword lists, use `Keyword`.
@@ -9,6 +9,8 @@ defmodule Dict do
99 `new` function in the respective modules.
1010 """
1111
12+ @ moduledoc deprecated: "Use Map or Keyword modules instead"
13+
1214 @ type key :: any
1315 @ type value :: any
1416 @ type t :: list | map
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ defmodule GenEvent do
44 # Functions from this module are deprecated in elixir_dispatch.
55
66 @ moduledoc """
7- WARNING: this module is deprecated .
7+ A event manager with event handlers behaviour .
88
99 If you are interested in implementing an event manager, please read the
1010 "Alternatives" section below. If you have to implement an event handler to
@@ -43,6 +43,8 @@ defmodule GenEvent do
4343 [`:gen_event`](http://erlang.org/doc/man/gen_event.html) Erlang module.
4444 """
4545
46+ @ moduledoc deprecated: "Use Erlang/OTP's :gen_event module instead"
47+
4648 @ callback init ( args :: term ) ::
4749 { :ok , state }
4850 | { :ok , state , :hibernate }
Original file line number Diff line number Diff line change 11defmodule HashDict do
22 @ moduledoc """
3- WARNING: this module is deprecated .
3+ Tuple-based HashDict implementation .
44
5- Use the `Map` module instead.
5+ This module is deprecated. Use the `Map` module instead.
66 """
77
8+ @ moduledoc deprecated: "Use Map instead"
9+
810 # TODO: Remove by 2.0
911
1012 use Dict
Original file line number Diff line number Diff line change 11defmodule HashSet do
22 @ moduledoc """
3- WARNING: this module is deprecated .
3+ Tuple-based HashSet implementation .
44
5- Use the `MapSet` module instead.
5+ This module is deprecated. Use the `MapSet` module instead.
66 """
77
8- # TODO: Remove by 2.0
8+ @ moduledoc deprecated: "Use MapSet instead"
99
1010 @ node_bitmap 0b111
1111 @ node_shift 3
Original file line number Diff line number Diff line change 11defmodule Set do
22 @ moduledoc ~S"""
3- WARNING: this module is deprecated .
3+ Generic API for sets .
44
5- Use the `MapSet` module instead.
5+ This module is deprecated, use the `MapSet` module instead.
66 """
77
8+ @ moduledoc deprecated: "Use MapSet instead"
9+
810 @ type value :: any
911 @ type values :: [ value ]
1012 @ type t :: map
Original file line number Diff line number Diff line change 11defmodule Supervisor.Spec do
22 @ moduledoc """
3- WARNING: this module is deprecated .
3+ Outdated functions for building child specifications .
44
55 The functions in this module are deprecated and they do not work
66 with the module-based child specs introduced in Elixir v1.5.
@@ -106,6 +106,9 @@ defmodule Supervisor.Spec do
106106
107107 """
108108
109+ @ moduledoc deprecated:
110+ "Use the new child specifications outlined in the Supervisor module instead"
111+
109112 # TODO: Deprecate all functions in this module on Elixir v1.8.
110113 # Also deprecate entry in Supervisor.Default.
111114
You can’t perform that action at this time.
0 commit comments