Skip to content

Commit

Permalink
REFACTOR: Reexport all top-level modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
epatters committed Jun 9, 2023
1 parent 204865d commit cb30f71
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/literate/sketches/preorders.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ end
# expressions are represented at expression trees
ex = compose(P, [:f, :g])
# the head of an expression is the root of the expression tree
Catlab.head(ex)
GATs.head(ex)
# the julia type of the expression
typeof(ex)
# the GAT type of the expression
Expand Down
5 changes: 1 addition & 4 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ const literate_dir = joinpath(@__DIR__, "literate")
const generated_dir = joinpath(@__DIR__, "src", "generated")

@info "Loading Catlab.jl"
using Catlab.GATs,
# Must explicitly load all submodules for which docs are needed.
Catlab.Theories, Catlab.CategoricalAlgebra, Catlab.Graphs,
Catlab.WiringDiagrams, Catlab.Graphics, Catlab.Programs
using Catlab

const no_literate = "--no-literate" in ARGS
if !no_literate
Expand Down
8 changes: 6 additions & 2 deletions src/Catlab.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@ using Reexport

include("gats/GATs.jl")
include("theories/Theories.jl")

include("categorical_algebra/ACSetsGATsInterop.jl")
include("graphs/Graphs.jl")
include("categorical_algebra/CategoricalAlgebra.jl")

include("wiring_diagrams/WiringDiagrams.jl")
include("graphics/Graphics.jl")
include("programs/Programs.jl")

@reexport using .GATs
@reexport using .Theories
@reexport using .Graphs
@reexport using .CategoricalAlgebra
@reexport using .WiringDiagrams
@reexport using .Graphics
@reexport using .Programs

end

0 comments on commit cb30f71

Please sign in to comment.