-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow imports of internal modules (#10397)
* Allow imports of internal modules changelog_begin - [Daml Compiler] Imports of internal modules from stable packages are no longer illegal. Previously, the compiler raised an error when it encountered imports of internal modules such as `DA.Internal.Template`. Such imports are now accepted by the compiler. Note, however, that internal modules are still not part of the stable API. Fixes #10379 changelog_end * ~unstable~ #10397 (comment) Co-authored-by: Andreas Herrmann <[email protected]>
- Loading branch information
1 parent
b9518ce
commit 9c064da
Showing
4 changed files
with
14 additions
and
3 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
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
-- Copyright (c) 2020, Digital Asset (Switzerland) GmbH and/or its affiliates. | ||
-- All rights reserved. | ||
|
||
-- @ERROR range=9:1-9:28; Import of internal module DA.Internal.Template is not allowed. | ||
-- @ERROR range=10:1-10:39; Import of internal module DA.Internal.RebindableSyntax is not allowed. | ||
|
||
|
||
module InternalImport where | ||
|
||
import DA.Internal.Template | ||
import DA.Internal.Template () | ||
import DA.Internal.RebindableSyntax () |