# Daml.Trigger import breaks daml repl session

**URL:** <https://forum.canton.network/t/daml-trigger-import-breaks-daml-repl-session/174>\
**Category:** App Development\
**Tags:** daml, trigger\
**Created:** [April 20, 2020, 6:31pm UTC](https://forum.canton.network/t/daml-trigger-import-breaks-daml-repl-session/174 "2020-04-20T18:31:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris.norris](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/chris.norris/32/688_2.png) [@chris.norris](https://forum.canton.network/u/chris.norris)\
**Post date:** [April 20, 2020, 6:31pm UTC](https://forum.canton.network/t/daml-trigger-import-breaks-daml-repl-session/174/1 "2020-04-20T18:31:43Z")

</div>

Following the daml repl [documentation](https://docs.daml.com/1.0.0/daml-repl/index.html) 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:

```haskell
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.

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [April 20, 2020, 6:35pm UTC](https://forum.canton.network/t/daml-trigger-import-breaks-daml-repl-session/174/2 "2020-04-20T18:35:13Z")

</div>

At the moment, DAML REPL does not support DARs with additional dependencies. This will be fixed in the future. However, there are no plans to support running a trigger from DAML REPL so for this particular example you are probably better off, splitting off your templates into a separate package from your trigger (which you should always do, otherwise modifying your trigger requires upgrading live data on the ledger) and then load the templates DAR into DAML Repl.
