úÎ.W,¯     6Possible terminal colours. (D for Dark, L for Light.)  /Set terminal forground and background colours. :Note that under Windows, the change in colour takes place % immediately. You may need to flush stdout before calling : this function. (This is not necessary under Unix, but it's 1 probably good practise to do it for portability' s sake.)  Change the title of the [virtual] terminal.     =Set terminal foreground colour (background is set to black). 1Set default terminal colours (DWhite on DBlack). Set terminal [foreground] colour and then  a string. >Write a pair of text strings on a single line, with different  [foreground] text colours. 4Print a single line of text, with a given character ; highlighted in colour. Useful for, say, highlighting the / location of a syntax error in an expression. 7The tuple consists of three colour pairs. Each pair is  a foreground/+background pair. The first pair applies to : the next before the nominated position, the second pair 4 applies to the nominated position itself, and the 5 third pair applies to any text after the nominated  position. 'The nominated position is given by the  argument, 7 with 0 being the very first character of the string. 2 Note that if the position is off the end of the 8 string, a blank space will be added to the end of the  string and that will be highlighted. 6Note that no newline is written. If you want one, you  must output it yourself.  A version of  that outputs a newline after  the final character of text. ;A default top-level exception handler, for exceptions that 3 fail to be caught before reaching the top level. 9In a properly designed application, exceptions should be 8 anticipated, caught and handled in the correct place. : (E.g., if you try to open a file, you should anticipate  the possibility of an I/O exception and catch/ process this ; appropriately.) Thus an exception reaching the top-level ; of the program would indicate a programming bug, and the > generated error message reflects this. On a crash, the text  / An internal program malfunction has occurred. 8 Please report this as a bug to the program developers. will be emitted on stderr, coloured bright yellow on a 9 bright red background. The exception is then re-thrown $ (presumably halting the program). Take an  action, and run it with the   installed. Typically you would  do something like  - main = with_default_exception_handler main2   main2 = do ... :Now all unhandled exceptions in your program will cause a $ suitable message to be written to stderr.         !"#$%&$%'(AC-Terminal-1.0System.Terminal.CoreSystem.Terminal.UtilitySystem.TerminalColourLWhiteLYellowLMagentaLRedLCyanLGreenLBlueLBlackDWhiteDYellowDMagentaDRedDCyanDGreenDBlueDBlack set_colours set_title set_colourset_colours_default putStrLnC putPairLn highlight highlightLNdefault_exception_handlerwith_default_exception_handlerdecodeCdecodeIbase System.IOputStrLnghc-prim GHC.TypesIntIO