Skip to content

Commit

Permalink
Renamed time API packages
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed May 30, 2024
1 parent 95ec737 commit 2d0cc43
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/core/timeapi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ package anticipation

import aviation.*

//import language.experimental.captureChecking

// package timeInterfaces:
// given aviationApi: (GenericInstant[Timing.Instant] & GenericDuration[Timing.Duration] &
// SpecificInstant[Timing.Instant] & SpecificDuration[Timing.Duration]) =
// new GenericInstant[Timing.Instant] with GenericDuration[Timing.Duration]
// with SpecificInstant[Timing.Instant] with SpecificDuration[Timing.Duration]:
// export Timing.Instant.generic.{instant, millisecondsSinceEpoch}
// export Timing.Duration.generic.{duration, milliseconds}
import language.experimental.captureChecking

package durationApi:
given aviation: (GenericDuration & SpecificDuration) = new GenericDuration with SpecificDuration:
type Self = Timing.Duration
export Timing.Duration.generic.{duration, milliseconds}

package instantApi:
given aviation: (GenericInstant & SpecificInstant) = new GenericInstant with SpecificInstant:
type Self = Timing.Instant
export Timing.Instant.generic.{instant, millisecondsSinceEpoch}

0 comments on commit 2d0cc43

Please sign in to comment.