2

Does Curry have the ability to show or pretty print data types inside the REPL (using PAKCS or MCC)? In Haskell, this functionality is impemented using the type class Show. However, no maintained Curry implementation implements type classes. Glancing at the PAKCS libraries, it appears that no abstract data type is given a canonical representation for the user to interact with, but several have separate functions defined for pretty printing them.

For reference, I am implementing several abstract data types for a personal project. Because I have no intention of packaging the code into a compiled program with an interactive user interface, something approximating Haskell's show function would be convenient.

imz -- Ivan Zakharyaschev
  • 4,921
  • 6
  • 53
  • 104
emi
  • 5,380
  • 1
  • 27
  • 45
  • 1
    For information for those interested in the implementation of such a thing in Haskell: fryguybob has studied how `Show` is being used in GHCi (a Haskell REPL); he gave a short summary here: http://stackoverflow.com/questions/5535512/how-to-hack-ghci-or-hugs-so-that-it-prints-unicode-chars-unescaped/5621230#5621230 . – imz -- Ivan Zakharyaschev Jul 29 '11 at 15:04

0 Answers0