on master help sign in
Small tweak to handle (Maybe Name) in Src.Modules
commite79abee5bcc92afa36a2ab5f27905814be8bbf87 authorEvan Czaplicki <evancz@users.noreply.github.com> dateTue 26 Mar 2019, 17:04 (8 years ago) parent519bf67
1 file changed+2−2
compiler/src/Reporting/Render/Type/Localizer.hs+2−2
compiler/src/Reporting/Render/Type/Localizer.hs+2−2
@@ -93,9 +93,9 @@ fromNames names =
9393
9494
9595fromModule :: Src.Module -> Localizer
96−fromModule (Src.Module name _ imports _ _ _ _ _) =
96+fromModule modul@(Src.Module _ _ imports _ _ _ _ _) =
9797 Localizer $ Map.fromList $
98− (name, Import Nothing All) : map toPair imports
98+ (Src.getName modul, Import Nothing All) : map toPair imports
9999
100100
101101toPair :: Src.Import -> (Name.Name, Import)