on master help sign in
Add a note about what canonicalRealias does
commit60e90c0f955a799b8b9b294fa82fb4a1c517e0bb authorEvan Czaplicki <info@elm-lang.org> dateSat 24 Aug 2013, 14:50 (13 years ago) parent4f69730
1 file changed+2
compiler/Type/Alias.hs+2
compiler/Type/Alias.hs+2
@@ -56,6 +56,8 @@ localizer metaModule = go
5656realias :: Rules -> Type -> Type
5757realias (aliases,localize) tipe = localize (canonicalRealias aliases tipe)
5858
59+-- Realias using canonical aliases, so results will have aliases
60+-- that are fully qualified and possible to compare.
5961canonicalRealias :: [(String,[String],Type)] -> Type -> Type
6062canonicalRealias aliases tipe =
6163 case concatMap tryRealias aliases of