/
witchcraft.ex
45 lines (33 loc) · 1.39 KB
/
witchcraft.ex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
defmodule Witchcraft do
@moduledoc """
Top level module
## Hierarchy
Semigroupoid Semigroup Setoid Foldable Functor -----------┐
↓ ↓ ↓ ↓ ↙ ↓ ↘ |
Category Monoid Ord Traversable Apply Bifunctor |
↓ ↙ ↘ ↓
Arrow Applicative Chain Extend
↘ ↙ ↓
Monad Comonad
## `use Witchcraft`
There is a convenient `use` macro to import *all* functions in the library.
use Witchcraft
This recursively calls `use` on all children modules.
Any options passed to `use` will be passed down to all dependencies.
use Witchcraft, except: [right_fold: 2]
If you would like to not override the functions and operators from `Kernel`,
you can pass the special option `override_kernel: false`.
use Witchcraft, override_kernel: false
This same style of `use` is also available on all submodules, and follow
the dependency chart (above).
"""
use Witchcraft.Internal,
deps: [
Witchcraft.Arrow,
Witchcraft.Monoid,
Witchcraft.Bifunctor,
Witchcraft.Traversable,
Witchcraft.Monad,
Witchcraft.Comonad
]
end