@@ -17,6 +17,7 @@ import qualified Data.Map as Map
1717import qualified Data.Set as Set
1818import qualified Data.Text as Text
1919import qualified Data.Text.Encoding as Text
20+import qualified Text.PrettyPrint.ANSI.Leijen as P
2021
2122import qualified AST.Optimized as Opt
2223import qualified AST.Module.Name as ModuleName
@@ -90,7 +91,7 @@ print interfaces home name =
9091 value = Name.toBuilder (Name.fromGlobal home name)
9192 toString = Name.toBuilder (Name.fromKernel N.debug "toString")
9293 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))) ""
9495 in
9596 "var _value = " <> toString <> "(" <> value <> ");\n" <>
9697 "var _type = '" <> B.stringUtf8 (show tipe) <> "';\n\