summaryrefslogtreecommitdiff
path: root/compiler/backpack/BkpSyn.hs
diff options
context:
space:
mode:
authorAlan Zimmerman <alan.zimm@gmail.com>2016-11-03 14:40:12 +0200
committerAlan Zimmerman <alan.zimm@gmail.com>2016-11-03 20:45:05 +0200
commitf46bfeb8344e1818f42066c3dd9717f49e8b511b (patch)
tree7f90fe96ae6a66dd364f5d06bc030c4360f00b80 /compiler/backpack/BkpSyn.hs
parentec22bacdd625b04d28228dd5522d59d0bc8b1152 (diff)
downloadhaskell-f46bfeb8344e1818f42066c3dd9717f49e8b511b.tar.gz
API Annotations: make all ModuleName Located
Summary: This also changes the backpack Renaming type to use a Maybe for the renameTo field, to more accurately reflect the parsed source. Updates haddock submodule to match AST changes Test Plan: ./validate Reviewers: ezyang, bgamari, austin Reviewed By: bgamari Subscribers: thomie, mpickering Differential Revision: https://phabricator.haskell.org/D2670
Diffstat (limited to 'compiler/backpack/BkpSyn.hs')
-rw-r--r--compiler/backpack/BkpSyn.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/backpack/BkpSyn.hs b/compiler/backpack/BkpSyn.hs
index ae03324b34..e019d03b24 100644
--- a/compiler/backpack/BkpSyn.hs
+++ b/compiler/backpack/BkpSyn.hs
@@ -73,5 +73,6 @@ data IncludeDecl n = IncludeDecl {
-- | Rename a module from one name to another. The identity renaming
-- means that the module should be brought into scope.
-data Renaming = Renaming { renameFrom :: ModuleName, renameTo :: ModuleName }
+data Renaming = Renaming { renameFrom :: Located ModuleName
+ , renameTo :: Maybe (Located ModuleName) }
type LRenaming = Located Renaming