2016-02-24 45 views

Odpowiedz

11

Można zdefiniować własną interactive print funkcji np

module BetterPrint 
betterPrint a = putStrLn (take 1000 $ show a) 

następnie rozpocząć ghci jako

ghci -interactive-print=BetterPrint.betterPrint 
+0

protip: przypisanie 'ghci - interactive-print = BetterPrint.betterPrint' na alias. – PyRulez

+0

Możesz również umieścić to w swoim ~/.ghci ': set -interactive-print = betterPrint' – pyrospade