From acf6a329323707e3cf553c5aa338f47457316975 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Mon, 21 Mar 2022 02:01:09 -0400 Subject: [PATCH] Fix imports --- lib/TryExperimental/src/TryExperimental.jl | 2 ++ src/Try.jl | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/TryExperimental/src/TryExperimental.jl b/lib/TryExperimental/src/TryExperimental.jl index cac15dc..4b8ef20 100644 --- a/lib/TryExperimental/src/TryExperimental.jl +++ b/lib/TryExperimental/src/TryExperimental.jl @@ -49,6 +49,7 @@ end # baremodule Cause module Internal +import ..TryExperimental: @and_then, @or_else using ..TryExperimental: TryExperimental, Causes using Try @@ -58,6 +59,7 @@ for n in names(TryExperimental; all = true) @eval import TryExperimental: $n end +using Base.Meta: isexpr using Base: IteratorEltype, HasEltype, IteratorSize, HasLength, HasShape include("sugars.jl") diff --git a/src/Try.jl b/src/Try.jl index 7b376f7..a88d12f 100644 --- a/src/Try.jl +++ b/src/Try.jl @@ -65,7 +65,7 @@ function or_else end module Internal -import ..Try: @and_return, @?, @and_then, @or_else, @function +import ..Try: @and_return, @?, @function using ..Try: AbstractResult, ConcreteErr, @@ -78,8 +78,6 @@ using ..Try: Try using ..Try.InternalPrelude: _ConcreteResult, _IsOkError -using Base.Meta: isexpr - include("ExternalDocstrings.jl") using .ExternalDocstrings: @define_docstrings