Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change triggers AllInDar export method #20482

Merged
merged 2 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions sdk/triggers/daml/Daml/Trigger.daml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- SPDX-License-Identifier: Apache-2.0
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE PatternSynonyms #-}

module Daml.Trigger
( query
Expand Down Expand Up @@ -44,6 +45,7 @@ module Daml.Trigger
, fromArchived
, CompletionStatus(..)
, RegisteredTemplates(..)
, pattern AllInDar
, registeredTemplate
, RelTime(..)
, getReadAs
Expand All @@ -63,6 +65,11 @@ import Daml.Trigger.Internal
import Daml.Trigger.LowLevel hiding (BatchTrigger, Trigger)
import qualified Daml.Trigger.LowLevel as LowLevel

-- Deprecated pattern syn, must be top level for exports to work
{-# DEPRECATED AllInDar "Use AllTemplates instead" #-}
pattern AllInDar : RegisteredTemplates
pattern AllInDar = AllTemplates

-- public API

-- | Extract the contracts of a given template from the ACS.
Expand Down
6 changes: 1 addition & 5 deletions sdk/triggers/daml/Daml/Trigger/LowLevel.daml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module Daml.Trigger.LowLevel
, fromExercise
, fromExerciseByKey
, fromCreateAndExercise
, RegisteredTemplates(AllInDar, ..)
, RegisteredTemplates(..)
, registeredTemplate
, RelTime(..)
, execStateT
Expand Down Expand Up @@ -223,10 +223,6 @@ data RegisteredTemplates
= AllTemplates -- ^ Listen to events for all templates known by the triggers' runner.
| RegisteredTemplates [RegisteredTemplate]

{-# DEPRECATED AllInDar "Use AllTemplates instead" #-}
pattern AllInDar : RegisteredTemplates
pattern AllInDar = AllTemplates

registeredTemplate : forall t. Template t => RegisteredTemplate
registeredTemplate = RegisteredTemplate (templateTypeRep @t)

Expand Down
Loading