Skip to content

Commit

Permalink
use shorter extension names
Browse files Browse the repository at this point in the history
  • Loading branch information
aplavin committed Jan 7, 2025
1 parent 49f9623 commit d2ca00a
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
16 changes: 8 additions & 8 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"

[extensions]
AccessorsAxisKeysExt = "AxisKeys"
AccessorsDatesExt = "Dates"
AccessorsIntervalSetsExt = "IntervalSets"
AccessorsLinearAlgebraExt = "LinearAlgebra"
AccessorsStaticArraysExt = "StaticArrays"
AccessorsStructArraysExt = "StructArrays"
AccessorsTestExt = "Test"
AccessorsUnitfulExt = "Unitful"
AxisKeysExt = "AxisKeys"
DatesExt = "Dates"
IntervalSetsExt = "IntervalSets"
LinearAlgebraExt = "LinearAlgebra"
StaticArraysExt = "StaticArrays"
StructArraysExt = "StructArrays"
TestExt = "Test"
UnitfulExt = "Unitful"

[compat]
AxisKeys = "0.2"
Expand Down
2 changes: 1 addition & 1 deletion ext/AccessorsAxisKeysExt.jl → ext/AxisKeysExt.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module AccessorsAxisKeysExt
module AxisKeysExt
using Accessors
using AxisKeys

Expand Down
2 changes: 1 addition & 1 deletion ext/AccessorsDatesExt.jl → ext/DatesExt.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module AccessorsDatesExt
module DatesExt

using Accessors
import Accessors: set
Expand Down
2 changes: 1 addition & 1 deletion ext/AccessorsIntervalSetsExt.jl → ext/IntervalSetsExt.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module AccessorsIntervalSetsExt
module IntervalSetsExt
using Accessors
using IntervalSets

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module AccessorsLinearAlgebraExt
module LinearAlgebraExt

import Accessors: set, @set
using LinearAlgebra: norm, normalize, diag, diagind
Expand Down
2 changes: 1 addition & 1 deletion ext/AccessorsStaticArraysExt.jl → ext/StaticArraysExt.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module AccessorsStaticArraysExt
module StaticArraysExt
isdefined(Base, :get_extension) ? (using StaticArrays) : (using ..StaticArrays)
using Accessors
import Accessors: setindex, delete, insert
Expand Down
2 changes: 1 addition & 1 deletion ext/AccessorsStructArraysExt.jl → ext/StructArraysExt.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module AccessorsStructArraysExt
module StructArraysExt
using Accessors
using StructArrays

Expand Down
2 changes: 1 addition & 1 deletion ext/AccessorsTestExt.jl → ext/TestExt.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module AccessorsTestExt
module TestExt

using Accessors
using Test: @test
Expand Down
2 changes: 1 addition & 1 deletion ext/AccessorsUnitfulExt.jl → ext/UnitfulExt.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module AccessorsUnitfulExt
module UnitfulExt

import Accessors: set
using Unitful
Expand Down
8 changes: 4 additions & 4 deletions src/Accessors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ include("functionlenses.jl")
include("testing.jl")

if !isdefined(Base, :get_extension)
include("../ext/AccessorsDatesExt.jl")
include("../ext/AccessorsLinearAlgebraExt.jl")
include("../ext/AccessorsTestExt.jl")
include("../ext/DatesExt.jl")
include("../ext/LinearAlgebraExt.jl")
include("../ext/TestExt.jl")
end

function __init__()
@static if !isdefined(Base, :get_extension)
@require StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" include("../ext/AccessorsStaticArraysExt.jl")
@require StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" include("../ext/StaticArraysExt.jl")
end
if isdefined(Base.Experimental, :register_error_hint)
Base.Experimental.register_error_hint(MethodError) do io, exc, argtypes, kwargs
Expand Down

0 comments on commit d2ca00a

Please sign in to comment.