Skip to content

Commit 1ecc1b6

Browse files
authored
Merge pull request #23 from ToucheSir/rm-macrotools
RM MacroTools dep
2 parents 312513e + 77fb30f commit 1ecc1b6

File tree

4 files changed

+2
-27
lines changed

4 files changed

+2
-27
lines changed

Manifest.toml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,2 @@
11
# This file is machine-generated - editing it directly is not advised
22

3-
[[Base64]]
4-
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
5-
6-
[[MacroTools]]
7-
deps = ["Markdown", "Random"]
8-
git-tree-sha1 = "6a8a2a625ab0dea913aba95c11370589e0239ff0"
9-
uuid = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
10-
version = "0.5.6"
11-
12-
[[Markdown]]
13-
deps = ["Base64"]
14-
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
15-
16-
[[Random]]
17-
deps = ["Serialization"]
18-
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
19-
20-
[[Serialization]]
21-
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"

Project.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ uuid = "d9f16b24-f501-4c13-a1f2-28368ffc5196"
33
authors = ["Mike J Innes <mike.j.innes@gmail.com>"]
44
version = "0.2.3"
55

6-
[deps]
7-
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
8-
96
[compat]
10-
MacroTools = "0.5"
117
julia = "1"
128

139
[extras]

src/Functors.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
module Functors
22

3-
using MacroTools
4-
53
export @functor, @flexiblefunctor, fmap, fmapstructure, fcollect
64

75
include("functor.jl")

src/functor.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ function makefunctor(m::Module, T, fs = fieldnames(T))
2020
end
2121

2222
function functorm(T, fs = nothing)
23-
fs == nothing || isexpr(fs, :tuple) || error("@functor T (a, b)")
24-
fs = fs == nothing ? [] : [:($(map(QuoteNode, fs.args)...),)]
23+
fs === nothing || Meta.isexpr(fs, :tuple) || error("@functor T (a, b)")
24+
fs = fs === nothing ? [] : [:($(map(QuoteNode, fs.args)...),)]
2525
:(makefunctor(@__MODULE__, $(esc(T)), $(fs...)))
2626
end
2727

0 commit comments

Comments
 (0)