forked from digital-asset/daml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow qualified import of generic templates (digital-asset#2892)
* Allow for importig generic templates qualified Currently, there's a bug which breaks `template instance` declarations when the module containing the generic template definition is imported qualified. This PR fixes this problem. * Update ghc-lib, allowing qualified import of generic templates
- Loading branch information
1 parent
9130fa8
commit 9a4735a
Showing
3 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-- Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. | ||
-- SPDX-License-Identifier: Apache-2.0 | ||
|
||
daml 1.2 | ||
module QualGenTempl where | ||
|
||
import Proposal qualified | ||
|
||
template T with | ||
p : Party | ||
where | ||
signatory p | ||
|
||
template instance ProposalT = Proposal.Proposal T |