Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/tests/nofib/spectral/pretty/Main.hs

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


module Main where

import Pretty

main = putStr ((ppShow (80::Int) pretty_stuff) ++ "\n")
 where
  pretty_stuff = ppAboves [ ppBesides [ppInt (-42), ppChar '@', ppStr "This is a string"],
			    pp'SP,
			    ppHang (ppStr "This is the label")
				(8::Int) (ppCat (take (50::Int) pp_words)) ]
  pp_words = pp_word : pp_words
  pp_word = ppStr "xxxxx"

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.