Skip to content

Commit

Permalink
Allow future Moshi style syntax to ease transition
Browse files Browse the repository at this point in the history
The Expronicon singleton variant is `Continuous`, for Moshi it is `Continuous()`. This makes `Continuous()` return `Continuous` so we can update downstream to the new syntax already.
  • Loading branch information
visr committed Jan 24, 2025
1 parent c01ffa5 commit a15b0c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/clock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ using Expronicon.ADT: variant_type, @adt, @match
SolverStepClock
end

(clock::TimeDomain)() = clock

Base.Broadcast.broadcastable(d::TimeDomain) = Ref(d)

const DiscriminatorType = typeof(variant_type(Continuous))
Expand Down

0 comments on commit a15b0c0

Please sign in to comment.