@@ -17,6 +17,7 @@ import qualified Data.Map as Map
17import qualified Data.Set as Set
17import qualified Data.Set as Set
18import qualified Data.Text as Text
18import qualified Data.Text as Text
19import qualified Data.Text.Encoding as Text
19import qualified Data.Text.Encoding as Text
20+import qualified Text.PrettyPrint.ANSI.Leijen as P
21import qualified AST.Optimized as Opt
22import qualified AST.Optimized as Opt
22import qualified AST.Module.Name as ModuleName
23import qualified AST.Module.Name as ModuleName
@@ -90,7 +91,7 @@ print interfaces home name =
90 value = Name.toBuilder (Name.fromGlobal home name)
91 value = Name.toBuilder (Name.fromGlobal home name)
91 toString = Name.toBuilder (Name.fromKernel N.debug "toString")
92 toString = Name.toBuilder (Name.fromKernel N.debug "toString")
92 annotation = I._types (interfaces ! home) ! name
93 annotation = I._types (interfaces ! home) ! name
93− tipe = Type.toString Type.MultiLine $ Extract.fromAnnotation annotation
94+ tipe = P.displayS (P.renderPretty 1.0 80 (Type.toDoc Type.None (Extract.fromAnnotation annotation))) ""
95 "var _value = " <> toString <> "(" <> value <> ");\n" <>
96 "var _value = " <> toString <> "(" <> value <> ");\n" <>
96 "var _type = '" <> B.stringUtf8 (show tipe) <> "';\n\
97 "var _type = '" <> B.stringUtf8 (show tipe) <> "';\n\