Following the daml repl documentation with the templated example using daml new script-example script-example
, I can add daml-trigger to my dependencies and create A.daml in src/ with contents:
module A where import DA.Trigger
When rebuilding, restarting the sandbox and then (in another terminal) performing daml repl --ledger-host=localhost --ledger-port=6865 .daml/dist/script-example-0.0.1.dar
I get the following when trying to use the repl:
daml> import DA.Time
File:
Hidden: no
Range: 1:0-100001:0
Source: compiler
Severity: DsError
Message:
<command line>: cannot satisfy --package script-example-0.0.1:
script-example-0.0.1 is unusable due to missing dependencies:
daml-trigger-0.0.1
(use -v for more information)
damlc: Error when running Shake build system:
BadDependency "GhcSession"
Note: I am providing a stripped down repro of the issue which arose elsewhere when I had a repl failure in a project which happened to use triggers.