2016-02-24 49 views

risposta

11

È possibile definire il proprio interactive print funzione di esempio:

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

quindi avviare ghci come

ghci -interactive-print=BetterPrint.betterPrint 
+0

Protip: assegnare 'ghci - interactive-print = BetterPrint.betterPrint' in un alias. – PyRulez

+0

Puoi anche metterlo nel tuo ~/.ghci ': set -interactive-print = betterPrint' – pyrospade