#NEWLINE# def output_panel( window , text = '' , panel_name = 'sublime_haskell_output_panel' , syntax = None , show_panel = True ) : #NEWLINE# #INDENT# if ( not window ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# output_view = window . get_output_panel ( panel_name ) #NEWLINE# if ( panel_name is not None ) : #NEWLINE# #INDENT# output_view . set_syntax_file ( 'Packages/SublimeHaskell/Syntaxes/{0}.tmLanguage' . format ( syntax ) ) #NEWLINE# #UNINDENT# output_text ( output_view , text , clear = True ) #NEWLINE# output_view . sel ( ) . clear ( ) #NEWLINE# output_view . sel ( ) . add ( sublime . Region ( 0 , 0 ) ) #NEWLINE# if show_panel : #NEWLINE# #INDENT# window . run_command ( 'show_panel' , { #NEWLINE# #INDENT# 'panel' : ( 'output.' + panel_name ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return output_view