@@ -122,9 +122,7 @@ retrieve filePath = do
122 iface <- liftIO $ Interface.load (Utils.elmi flags filePath)
122 iface <- liftIO $ Interface.load (Utils.elmi flags filePath)
123 case Interface.isValid filePath iface of
123 case Interface.isValid filePath iface of
124 Right (name, interface) ->
124 Right (name, interface) ->
125− do binterfaces <- get
126− let interfaces = snd <$> binterfaces
127− liftIO $ when (Flag.print_types flags) (Print.interfaceTypes interfaces interface)
125+ do liftIO $ when (Flag.print_types flags) (Print.types (Module.iTypes interface))
128 update name interface False
126 update name interface False
130 Left err -> liftIO $ Print.failure err
128 Left err -> liftIO $ Print.failure err
@@ -148,7 +146,7 @@ compile number filePath =
148 exitFailure
146 exitFailure
150 liftIO $ when (Flag.print_types flags) $ do
148 liftIO $ when (Flag.print_types flags) $ do
151− Print.moduleTypes interfaces canonicalModule
149+ Print.types (Module.types (Module.body canonicalModule))
153 let newInters = Module.toInterface canonicalModule
151 let newInters = Module.toInterface canonicalModule
154 generateCache name newInters canonicalModule
152 generateCache name newInters canonicalModule