packages feed

hscolour 1.15 → 1.25

raw patch · 84 files changed

Files

− .hscolour
@@ -1,17 +0,0 @@-ColourPrefs-  { keyword  = [Underscore,Foreground Green]-  , keyglyph = [Foreground Red]-  , layout   = [Foreground Cyan]-  , comment  = [Foreground Blue]-  , conid    = [Normal]-  , varid    = [Normal]-  , conop    = [Bold,Foreground Red]-  , varop    = [Foreground Cyan]-  , string   = [Foreground Magenta]-  , char     = [Foreground Magenta]-  , number   = [Foreground Magenta]-  , cpp      = [Dim,Foreground Magenta]-  , selection = [Bold, Foreground Magenta]-  , variantselection = [Dim, Foreground Red, Underscore]-  , definition = [Normal]-  }
HsColour.hs view
@@ -1,25 +1,38 @@+{-# LANGUAGE CPP #-} module Main where  import Language.Haskell.HsColour import qualified Language.Haskell.HsColour as HSColour import Language.Haskell.HsColour.Colourise (readColourPrefs) import Language.Haskell.HsColour.Options-import System-import IO-import Monad (when)-import List  (intersperse, isSuffixOf)-import Debug.Trace+import Language.Haskell.HsColour.ACSS (breakS, srcModuleName)+import System.Environment as System+import System.Exit+import System.IO hiding (withFile)+import Control.Monad (when, forM_)+import Data.List  (intersperse, isSuffixOf)+import Control.Exception (bracket)+--import Debug.Trace -version = "1.15"+-- Deal with UTF-8 I/O.+#if __GLASGOW_HASKELL__ > 611+-- possibly if MIN_VERSION_base(4,2,0)+import System.IO (hSetEncoding, utf8)+#endif +version :: String+version = show MAJOR ++"."++show MINOR+ optionTable :: [(String,Option)] optionTable = [ ("help",    Help)               , ("version", Version)               , ("print-css", Information)               , ("html",   Format HTML)               , ("css",    Format CSS)+              , ("acss",   Format ACSS)               , ("icss",   Format ICSS)               , ("tty",    Format TTY)+              , ("tty256", Format (TTYg XTerm256Compatible))               , ("latex",  Format LaTeX)               , ("mirc",   Format MIRC)               , ("lit",    LHS True)@@ -33,6 +46,7 @@  parseOption :: String -> Either String Option parseOption ('-':'o':s) = Right (Output s)+parseOption ('-':'a':'n':'n':'o':'t':'=':s) = Right (Annot s) parseOption s@('-':_)   = maybe (Left s) Right                                 (lookup (dropWhile (== '-') s) optionTable) parseOption s           = Right (Input s)@@ -47,14 +61,15 @@       good    = [ o | Right o <- options ]       formats = [ f | Format f <- good ]       outFile = [ f | Output f <- good ]+      annFile = [ f | Annot f <- good ]       output    = useDefault  TTY         id           formats       anchors   = useDefault  False       id           [ b | Anchors b <- good ]       partial   = useDefault  False       id           [ b | Partial b <- good ]       lhs       = useDefault  Nothing     id           [ Just b | LHS b<- good ]       title     = useDefault  "Haskell code" id        [ f | Input f   <- good ]       ioWrapper = useDefaults (ttyInteract  outFile (guessLiterate lhs ""))-                              (fileInteract outFile)   [ (f,guessLiterate lhs f)-                                                           | Input f   <- good ]+                              (fileInteract outFile annFile)   +			      [(f, guessLiterate lhs f) | Input f <- good]   when (not (null bad)) $        errorOut ("Unrecognised option(s): "++unwords bad++"\n"++usage prog)   when (Help `elem` good)        $ writeResult [] (usage prog)@@ -65,38 +80,51 @@                  ++unwords (map show formats))   when (length outFile > 1) $        errorOut ("Can only have one output file at a time.")+  when (length annFile > 1) $+       errorOut ("Can only use a single annotation file for annotated-CSS output")+     ioWrapper (HSColour.hscolour output pref anchors partial title)    where-    writeResult outF s = do if null outF then putStr s-                                         else writeFile (last outF) s+    writeResult outF s = do if null outF then putStrLn s+                                         else writeUTF8File (last outF) s                             exitSuccess-    fileInteract out inFs u = do h <- case out of-                                          []     -> return stdout-                                          [outF] -> openFile outF WriteMode-                                 mapM_ (\ (f,lit)->-                                           readFile f >>= hPutStr h . u lit)-                                       inFs-                                 hClose h+    fileInteract out ann inFs u +      = do h <- case out of+                  []     -> return stdout+                  [outF] -> openFile outF WriteMode >>= set_utf8_io_enc+           forM_ inFs $ \ (f, lit) -> do+             src <- readUTF8File f+             a   <- readAnnots src ann+             hPutStr h $ u lit $ src ++ a +           hClose h     ttyInteract []     lit u = do hSetBuffering stdout NoBuffering                                   Prelude.interact (u lit)     ttyInteract [outF] lit u = do c <- hGetContents stdin-                                  writeFile outF (u lit c)+                                  writeUTF8File outF (u lit c)     exitSuccess = exitWith ExitSuccess-    errorOut s = hPutStrLn stderr s >> hFlush stderr >> exitFailure-    usage prog = "Usage: "++prog-                 ++" options [file.hs]\n    where\n      options = [ "-                 ++ (indent 15 . unwords . width 58 58 . intersperse "|"+    errorOut s  = hPutStrLn stderr s >> hFlush stderr >> exitFailure+    usage prog  = "Usage: "++prog+                  ++" options [file.hs]\n    where\n      options = [ "+                  ++ (indent 15 . unwords . width 58 58 . intersperse "|"                      . ("-oOUTPUT":)-                     . map (('-':) . fst)) optionTable ++ " ]"-    useDefault d f list | null list = d-                        | otherwise = f (head list)+                     . ("-annot=ANNOTATIONFILE":)+                     . map (('-':) . fst)) optionTable+                  ++ " ]\n"+    useDefault d f list  | null list = d+                         | otherwise = f (head list)     useDefaults d f list | null list = d                          | otherwise = f list     guessLiterate Nothing  f = ".lhs" `isSuffixOf` f || ".ly" `isSuffixOf` f                                || ".lx" `isSuffixOf` f     guessLiterate (Just b) _ = b+    readAnnots _   []     = return ""+    readAnnots src [annF] = do putStrLn $ "HsColour Annot on Module: " ++ mname+                               annots <- readUTF8File annF+                               return $ breakS ++ "\n" ++ mname ++ "\n" ++ annots+                            where mname = srcModuleName src + -- some simple text formatting for usage messages width n left  []    = [] width n left (s:ss) = if size > left then "\n":s : width n n             ss@@ -108,11 +136,45 @@ indent n (c:s)    = c: indent n s  -- Rather than have a separate .css file, define some reasonable defaults here.-cssDefaults = "\-\.hs-keyglyph, .hs-layout {color: red;}\n\-\.hs-keyword {color: blue;}\n\-\.hs-comment, .hs-comment a {color: green;}\n\-\.hs-str, .hs-chr {color: teal;}\n\-\.hs-keyword, .hs-conid, .hs-varid, .hs-conop, .hs-varop, .hs-num, \-\.hs-cpp, .hs-sel, .hs-definition {}\n\-\"+cssDefaults = concat+  [ ".hs-keyglyph, .hs-layout {color: red;}\n"+  , ".hs-keyword {color: blue;}\n"+  , ".hs-comment, .hs-comment a {color: green;}\n"+  , ".hs-str, .hs-chr {color: teal;}\n"+  , ".hs-keyword, .hs-conid, .hs-varid, .hs-conop, .hs-varop, .hs-num, "+  , ".hs-cpp, .hs-sel, .hs-definition {}\n"+  ]++-- Deal with UTF-8 input and output.+set_utf8_io_enc :: Handle -> IO Handle+#if __GLASGOW_HASKELL__ > 611+-- possibly if MIN_VERSION_base(4,2,0)+set_utf8_io_enc h = do hSetEncoding h utf8; return h+#else+set_utf8_io_enc h = return h+#endif++-- FILE I(unput) / O(utput) is in UTF8+-- TTY  I(unput) / O(utput) is in locale+--   ( may have problems with HsColour IFILE >OFILE+--   , as it differs from HsColour IFILE -oOFILE)+-- TTY stderr is always in locale (always used for user interaction)+--+-- Some common use cases:+-- File I / FILE O (HsColour -css -anchor -oOFILE IFILE)+--                 : are both always done in UTF8 mode (cabal hscolour mode)+-- File I / TTY  O (HsColour IFILE)+--                 : file is read in UTF-8 written in locale+-- TTY  I / TTY  O (HsColour)+--                 : stdin/stdout are both in locale++-- fully mimic Prelude analogues+writeUTF8File f txt = withFile f WriteMode (\hdl -> do set_utf8_io_enc hdl+                                                       hPutStr hdl txt)+readUTF8File name   = openFile name ReadMode >>=+                      set_utf8_io_enc >>=+                      hGetContents++withFile :: FilePath -> IOMode -> (Handle -> IO r) -> IO r+withFile name mode = bracket (openFile name mode) hClose+
− LICENCE-GPL
@@ -1,342 +0,0 @@-		    GNU GENERAL PUBLIC LICENSE-		       Version 2, June 1991-- Copyright (C) 1989, 1991 Free Software Foundation, Inc.-     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA- Everyone is permitted to copy and distribute verbatim copies- of this license document, but changing it is not allowed.--			    Preamble--  The licenses for most software are designed to take away your-freedom to share and change it.  By contrast, the GNU General Public-License is intended to guarantee your freedom to share and change free-software--to make sure the software is free for all its users.  This-General Public License applies to most of the Free Software-Foundation's software and to any other program whose authors commit to-using it.  (Some other Free Software Foundation software is covered by-the GNU Library General Public License instead.)  You can apply it to-your programs, too.--  When we speak of free software, we are referring to freedom, not-price.  Our General Public Licenses are designed to make sure that you-have the freedom to distribute copies of free software (and charge for-this service if you wish), that you receive source code or can get it-if you want it, that you can change the software or use pieces of it-in new free programs; and that you know you can do these things.--  To protect your rights, we need to make restrictions that forbid-anyone to deny you these rights or to ask you to surrender the rights.-These restrictions translate to certain responsibilities for you if you-distribute copies of the software, or if you modify it.--  For example, if you distribute copies of such a program, whether-gratis or for a fee, you must give the recipients all the rights that-you have.  You must make sure that they, too, receive or can get the-source code.  And you must show them these terms so they know their-rights.--  We protect your rights with two steps: (1) copyright the software, and-(2) offer you this license which gives you legal permission to copy,-distribute and/or modify the software.--  Also, for each author's protection and ours, we want to make certain-that everyone understands that there is no warranty for this free-software.  If the software is modified by someone else and passed on, we-want its recipients to know that what they have is not the original, so-that any problems introduced by others will not reflect on the original-authors' reputations.--  Finally, any free program is threatened constantly by software-patents.  We wish to avoid the danger that redistributors of a free-program will individually obtain patent licenses, in effect making the-program proprietary.  To prevent this, we have made it clear that any-patent must be licensed for everyone's free use or not licensed at all.--  The precise terms and conditions for copying, distribution and-modification follow.---		    GNU GENERAL PUBLIC LICENSE-   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION--  0. This License applies to any program or other work which contains-a notice placed by the copyright holder saying it may be distributed-under the terms of this General Public License.  The "Program", below,-refers to any such program or work, and a "work based on the Program"-means either the Program or any derivative work under copyright law:-that is to say, a work containing the Program or a portion of it,-either verbatim or with modifications and/or translated into another-language.  (Hereinafter, translation is included without limitation in-the term "modification".)  Each licensee is addressed as "you".--Activities other than copying, distribution and modification are not-covered by this License; they are outside its scope.  The act of-running the Program is not restricted, and the output from the Program-is covered only if its contents constitute a work based on the-Program (independent of having been made by running the Program).-Whether that is true depends on what the Program does.--  1. You may copy and distribute verbatim copies of the Program's-source code as you receive it, in any medium, provided that you-conspicuously and appropriately publish on each copy an appropriate-copyright notice and disclaimer of warranty; keep intact all the-notices that refer to this License and to the absence of any warranty;-and give any other recipients of the Program a copy of this License-along with the Program.--You may charge a fee for the physical act of transferring a copy, and-you may at your option offer warranty protection in exchange for a fee.--  2. You may modify your copy or copies of the Program or any portion-of it, thus forming a work based on the Program, and copy and-distribute such modifications or work under the terms of Section 1-above, provided that you also meet all of these conditions:--    a) You must cause the modified files to carry prominent notices-    stating that you changed the files and the date of any change.--    b) You must cause any work that you distribute or publish, that in-    whole or in part contains or is derived from the Program or any-    part thereof, to be licensed as a whole at no charge to all third-    parties under the terms of this License.--    c) If the modified program normally reads commands interactively-    when run, you must cause it, when started running for such-    interactive use in the most ordinary way, to print or display an-    announcement including an appropriate copyright notice and a-    notice that there is no warranty (or else, saying that you provide-    a warranty) and that users may redistribute the program under-    these conditions, and telling the user how to view a copy of this-    License.  (Exception: if the Program itself is interactive but-    does not normally print such an announcement, your work based on-    the Program is not required to print an announcement.)--These requirements apply to the modified work as a whole.  If-identifiable sections of that work are not derived from the Program,-and can be reasonably considered independent and separate works in-themselves, then this License, and its terms, do not apply to those-sections when you distribute them as separate works.  But when you-distribute the same sections as part of a whole which is a work based-on the Program, the distribution of the whole must be on the terms of-this License, whose permissions for other licensees extend to the-entire whole, and thus to each and every part regardless of who wrote it.--Thus, it is not the intent of this section to claim rights or contest-your rights to work written entirely by you; rather, the intent is to-exercise the right to control the distribution of derivative or-collective works based on the Program.--In addition, mere aggregation of another work not based on the Program-with the Program (or with a work based on the Program) on a volume of-a storage or distribution medium does not bring the other work under-the scope of this License.--  3. You may copy and distribute the Program (or a work based on it,-under Section 2) in object code or executable form under the terms of-Sections 1 and 2 above provided that you also do one of the following:--    a) Accompany it with the complete corresponding machine-readable-    source code, which must be distributed under the terms of Sections-    1 and 2 above on a medium customarily used for software interchange; or,--    b) Accompany it with a written offer, valid for at least three-    years, to give any third party, for a charge no more than your-    cost of physically performing source distribution, a complete-    machine-readable copy of the corresponding source code, to be-    distributed under the terms of Sections 1 and 2 above on a medium-    customarily used for software interchange; or,--    c) Accompany it with the information you received as to the offer-    to distribute corresponding source code.  (This alternative is-    allowed only for noncommercial distribution and only if you-    received the program in object code or executable form with such-    an offer, in accord with Subsection b above.)--The source code for a work means the preferred form of the work for-making modifications to it.  For an executable work, complete source-code means all the source code for all modules it contains, plus any-associated interface definition files, plus the scripts used to-control compilation and installation of the executable.  However, as a-special exception, the source code distributed need not include-anything that is normally distributed (in either source or binary-form) with the major components (compiler, kernel, and so on) of the-operating system on which the executable runs, unless that component-itself accompanies the executable.--If distribution of executable or object code is made by offering-access to copy from a designated place, then offering equivalent-access to copy the source code from the same place counts as-distribution of the source code, even though third parties are not-compelled to copy the source along with the object code.--  4. You may not copy, modify, sublicense, or distribute the Program-except as expressly provided under this License.  Any attempt-otherwise to copy, modify, sublicense or distribute the Program is-void, and will automatically terminate your rights under this License.-However, parties who have received copies, or rights, from you under-this License will not have their licenses terminated so long as such-parties remain in full compliance.--  5. You are not required to accept this License, since you have not-signed it.  However, nothing else grants you permission to modify or-distribute the Program or its derivative works.  These actions are-prohibited by law if you do not accept this License.  Therefore, by-modifying or distributing the Program (or any work based on the-Program), you indicate your acceptance of this License to do so, and-all its terms and conditions for copying, distributing or modifying-the Program or works based on it.--  6. Each time you redistribute the Program (or any work based on the-Program), the recipient automatically receives a license from the-original licensor to copy, distribute or modify the Program subject to-these terms and conditions.  You may not impose any further-restrictions on the recipients' exercise of the rights granted herein.-You are not responsible for enforcing compliance by third parties to-this License.--  7. If, as a consequence of a court judgment or allegation of patent-infringement or for any other reason (not limited to patent issues),-conditions are imposed on you (whether by court order, agreement or-otherwise) that contradict the conditions of this License, they do not-excuse you from the conditions of this License.  If you cannot-distribute so as to satisfy simultaneously your obligations under this-License and any other pertinent obligations, then as a consequence you-may not distribute the Program at all.  For example, if a patent-license would not permit royalty-free redistribution of the Program by-all those who receive copies directly or indirectly through you, then-the only way you could satisfy both it and this License would be to-refrain entirely from distribution of the Program.--If any portion of this section is held invalid or unenforceable under-any particular circumstance, the balance of the section is intended to-apply and the section as a whole is intended to apply in other-circumstances.--It is not the purpose of this section to induce you to infringe any-patents or other property right claims or to contest validity of any-such claims; this section has the sole purpose of protecting the-integrity of the free software distribution system, which is-implemented by public license practices.  Many people have made-generous contributions to the wide range of software distributed-through that system in reliance on consistent application of that-system; it is up to the author/donor to decide if he or she is willing-to distribute software through any other system and a licensee cannot-impose that choice.--This section is intended to make thoroughly clear what is believed to-be a consequence of the rest of this License.--  8. If the distribution and/or use of the Program is restricted in-certain countries either by patents or by copyrighted interfaces, the-original copyright holder who places the Program under this License-may add an explicit geographical distribution limitation excluding-those countries, so that distribution is permitted only in or among-countries not thus excluded.  In such case, this License incorporates-the limitation as if written in the body of this License.--  9. The Free Software Foundation may publish revised and/or new versions-of the General Public License from time to time.  Such new versions will-be similar in spirit to the present version, but may differ in detail to-address new problems or concerns.--Each version is given a distinguishing version number.  If the Program-specifies a version number of this License which applies to it and "any-later version", you have the option of following the terms and conditions-either of that version or of any later version published by the Free-Software Foundation.  If the Program does not specify a version number of-this License, you may choose any version ever published by the Free Software-Foundation.--  10. If you wish to incorporate parts of the Program into other free-programs whose distribution conditions are different, write to the author-to ask for permission.  For software which is copyrighted by the Free-Software Foundation, write to the Free Software Foundation; we sometimes-make exceptions for this.  Our decision will be guided by the two goals-of preserving the free status of all derivatives of our free software and-of promoting the sharing and reuse of software generally.--			    NO WARRANTY--  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,-REPAIR OR CORRECTION.--  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE-POSSIBILITY OF SUCH DAMAGES.--		     END OF TERMS AND CONDITIONS---	    How to Apply These Terms to Your New Programs--  If you develop a new program, and you want it to be of the greatest-possible use to the public, the best way to achieve this is to make it-free software which everyone can redistribute and change under these terms.--  To do so, attach the following notices to the program.  It is safest-to attach them to the start of each source file to most effectively-convey the exclusion of warranty; and each file should have at least-the "copyright" line and a pointer to where the full notice is found.--    <one line to give the program's name and a brief idea of what it does.>-    Copyright (C) <year>  <name of author>--    This program is free software; you can redistribute it and/or modify-    it under the terms of the GNU General Public License as published by-    the Free Software Foundation; either version 2 of the License, or-    (at your option) any later version.--    This program is distributed in the hope that it will be useful,-    but WITHOUT ANY WARRANTY; without even the implied warranty of-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the-    GNU General Public License for more details.--    You should have received a copy of the GNU General Public License-    along with this program; if not, write to the Free Software-    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA---Also add information on how to contact you by electronic and paper mail.--If the program is interactive, make it output a short notice like this-when it starts in an interactive mode:--    Gnomovision version 69, Copyright (C) year name of author-    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.-    This is free software, and you are welcome to redistribute it-    under certain conditions; type `show c' for details.--The hypothetical commands `show w' and `show c' should show the appropriate-parts of the General Public License.  Of course, the commands you use may-be called something other than `show w' and `show c'; they could even be-mouse-clicks or menu items--whatever suits your program.--You should also get your employer (if you work as a programmer) or your-school, if any, to sign a "copyright disclaimer" for the program, if-necessary.  Here is a sample; alter the names:--  Yoyodyne, Inc., hereby disclaims all copyright interest in the program-  `Gnomovision' (which makes passes at compilers) written by James Hacker.--  <signature of Ty Coon>, 1 April 1989-  Ty Coon, President of Vice--This General Public License does not permit incorporating your program into-proprietary programs.  If your program is a subroutine library, you may-consider it more useful to permit linking proprietary applications with the-library.  If this is what you want to do, use the GNU Library General-Public License instead of this License.
+ LICENCE-LGPL view
@@ -0,0 +1,507 @@+                  GNU LESSER GENERAL PUBLIC LICENSE+                       Version 2.1, February 1999++ Copyright (C) 1991, 1999 Free Software Foundation, Inc.+     51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA+ Everyone is permitted to copy and distribute verbatim copies+ of this license document, but changing it is not allowed.++[This is the first released version of the Lesser GPL.  It also counts+ as the successor of the GNU Library Public License, version 2, hence+ the version number 2.1.]++                            Preamble++  The licenses for most software are designed to take away your+freedom to share and change it.  By contrast, the GNU General Public+Licenses are intended to guarantee your freedom to share and change+free software--to make sure the software is free for all its users.++  This license, the Lesser General Public License, applies to some+specially designated software packages--typically libraries--of the+Free Software Foundation and other authors who decide to use it.  You+can use it too, but we suggest you first think carefully about whether+this license or the ordinary General Public License is the better+strategy to use in any particular case, based on the explanations+below.++  When we speak of free software, we are referring to freedom of use,+not price.  Our General Public Licenses are designed to make sure that+you have the freedom to distribute copies of free software (and charge+for this service if you wish); that you receive source code or can get+it if you want it; that you can change the software and use pieces of+it in new free programs; and that you are informed that you can do+these things.++  To protect your rights, we need to make restrictions that forbid+distributors to deny you these rights or to ask you to surrender these+rights.  These restrictions translate to certain responsibilities for+you if you distribute copies of the library or if you modify it.++  For example, if you distribute copies of the library, whether gratis+or for a fee, you must give the recipients all the rights that we gave+you.  You must make sure that they, too, receive or can get the source+code.  If you link other code with the library, you must provide+complete object files to the recipients, so that they can relink them+with the library after making changes to the library and recompiling+it.  And you must show them these terms so they know their rights.++  We protect your rights with a two-step method: (1) we copyright the+library, and (2) we offer you this license, which gives you legal+permission to copy, distribute and/or modify the library.++  To protect each distributor, we want to make it very clear that+there is no warranty for the free library.  Also, if the library is+modified by someone else and passed on, the recipients should know+that what they have is not the original version, so that the original+author's reputation will not be affected by problems that might be+introduced by others.++  Finally, software patents pose a constant threat to the existence of+any free program.  We wish to make sure that a company cannot+effectively restrict the users of a free program by obtaining a+restrictive license from a patent holder.  Therefore, we insist that+any patent license obtained for a version of the library must be+consistent with the full freedom of use specified in this license.++  Most GNU software, including some libraries, is covered by the+ordinary GNU General Public License.  This license, the GNU Lesser+General Public License, applies to certain designated libraries, and+is quite different from the ordinary General Public License.  We use+this license for certain libraries in order to permit linking those+libraries into non-free programs.++  When a program is linked with a library, whether statically or using+a shared library, the combination of the two is legally speaking a+combined work, a derivative of the original library.  The ordinary+General Public License therefore permits such linking only if the+entire combination fits its criteria of freedom.  The Lesser General+Public License permits more lax criteria for linking other code with+the library.++  We call this license the "Lesser" General Public License because it+does Less to protect the user's freedom than the ordinary General+Public License.  It also provides other free software developers Less+of an advantage over competing non-free programs.  These disadvantages+are the reason we use the ordinary General Public License for many+libraries.  However, the Lesser license provides advantages in certain+special circumstances.++  For example, on rare occasions, there may be a special need to+encourage the widest possible use of a certain library, so that it+becomes a de-facto standard.  To achieve this, non-free programs must+be allowed to use the library.  A more frequent case is that a free+library does the same job as widely used non-free libraries.  In this+case, there is little to gain by limiting the free library to free+software only, so we use the Lesser General Public License.++  In other cases, permission to use a particular library in non-free+programs enables a greater number of people to use a large body of+free software.  For example, permission to use the GNU C Library in+non-free programs enables many more people to use the whole GNU+operating system, as well as its variant, the GNU/Linux operating+system.++  Although the Lesser General Public License is Less protective of the+users' freedom, it does ensure that the user of a program that is+linked with the Library has the freedom and the wherewithal to run+that program using a modified version of the Library.++  The precise terms and conditions for copying, distribution and+modification follow.  Pay close attention to the difference between a+"work based on the library" and a "work that uses the library".  The+former contains code derived from the library, whereas the latter must+be combined with the library in order to run.+++                  GNU LESSER GENERAL PUBLIC LICENSE+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION++  0. This License Agreement applies to any software library or other+program which contains a notice placed by the copyright holder or+other authorized party saying it may be distributed under the terms of+this Lesser General Public License (also called "this License").+Each licensee is addressed as "you".++  A "library" means a collection of software functions and/or data+prepared so as to be conveniently linked with application programs+(which use some of those functions and data) to form executables.++  The "Library", below, refers to any such software library or work+which has been distributed under these terms.  A "work based on the+Library" means either the Library or any derivative work under+copyright law: that is to say, a work containing the Library or a+portion of it, either verbatim or with modifications and/or translated+straightforwardly into another language.  (Hereinafter, translation is+included without limitation in the term "modification".)++  "Source code" for a work means the preferred form of the work for+making modifications to it.  For a library, complete source code means+all the source code for all modules it contains, plus any associated+interface definition files, plus the scripts used to control+compilation and installation of the library.++  Activities other than copying, distribution and modification are not+covered by this License; they are outside its scope.  The act of+running a program using the Library is not restricted, and output from+such a program is covered only if its contents constitute a work based+on the Library (independent of the use of the Library in a tool for+writing it).  Whether that is true depends on what the Library does+and what the program that uses the Library does.++  1. You may copy and distribute verbatim copies of the Library's+complete source code as you receive it, in any medium, provided that+you conspicuously and appropriately publish on each copy an+appropriate copyright notice and disclaimer of warranty; keep intact+all the notices that refer to this License and to the absence of any+warranty; and distribute a copy of this License along with the+Library.++  You may charge a fee for the physical act of transferring a copy,+and you may at your option offer warranty protection in exchange for a+fee.++  2. You may modify your copy or copies of the Library or any portion+of it, thus forming a work based on the Library, and copy and+distribute such modifications or work under the terms of Section 1+above, provided that you also meet all of these conditions:++    a) The modified work must itself be a software library.++    b) You must cause the files modified to carry prominent notices+    stating that you changed the files and the date of any change.++    c) You must cause the whole of the work to be licensed at no+    charge to all third parties under the terms of this License.++    d) If a facility in the modified Library refers to a function or a+    table of data to be supplied by an application program that uses+    the facility, other than as an argument passed when the facility+    is invoked, then you must make a good faith effort to ensure that,+    in the event an application does not supply such function or+    table, the facility still operates, and performs whatever part of+    its purpose remains meaningful.++    (For example, a function in a library to compute square roots has+    a purpose that is entirely well-defined independent of the+    application.  Therefore, Subsection 2d requires that any+    application-supplied function or table used by this function must+    be optional: if the application does not supply it, the square+    root function must still compute square roots.)++These requirements apply to the modified work as a whole.  If+identifiable sections of that work are not derived from the Library,+and can be reasonably considered independent and separate works in+themselves, then this License, and its terms, do not apply to those+sections when you distribute them as separate works.  But when you+distribute the same sections as part of a whole which is a work based+on the Library, the distribution of the whole must be on the terms of+this License, whose permissions for other licensees extend to the+entire whole, and thus to each and every part regardless of who wrote+it.++Thus, it is not the intent of this section to claim rights or contest+your rights to work written entirely by you; rather, the intent is to+exercise the right to control the distribution of derivative or+collective works based on the Library.++In addition, mere aggregation of another work not based on the Library+with the Library (or with a work based on the Library) on a volume of+a storage or distribution medium does not bring the other work under+the scope of this License.++  3. You may opt to apply the terms of the ordinary GNU General Public+License instead of this License to a given copy of the Library.  To do+this, you must alter all the notices that refer to this License, so+that they refer to the ordinary GNU General Public License, version 2,+instead of to this License.  (If a newer version than version 2 of the+ordinary GNU General Public License has appeared, then you can specify+that version instead if you wish.)  Do not make any other change in+these notices.++  Once this change is made in a given copy, it is irreversible for+that copy, so the ordinary GNU General Public License applies to all+subsequent copies and derivative works made from that copy.++  This option is useful when you wish to copy part of the code of+the Library into a program that is not a library.++  4. You may copy and distribute the Library (or a portion or+derivative of it, under Section 2) in object code or executable form+under the terms of Sections 1 and 2 above provided that you accompany+it with the complete corresponding machine-readable source code, which+must be distributed under the terms of Sections 1 and 2 above on a+medium customarily used for software interchange.++  If distribution of object code is made by offering access to copy+from a designated place, then offering equivalent access to copy the+source code from the same place satisfies the requirement to+distribute the source code, even though third parties are not+compelled to copy the source along with the object code.++  5. A program that contains no derivative of any portion of the+Library, but is designed to work with the Library by being compiled or+linked with it, is called a "work that uses the Library".  Such a+work, in isolation, is not a derivative work of the Library, and+therefore falls outside the scope of this License.++  However, linking a "work that uses the Library" with the Library+creates an executable that is a derivative of the Library (because it+contains portions of the Library), rather than a "work that uses the+library".  The executable is therefore covered by this License.+Section 6 states terms for distribution of such executables.++  When a "work that uses the Library" uses material from a header file+that is part of the Library, the object code for the work may be a+derivative work of the Library even though the source code is not.+Whether this is true is especially significant if the work can be+linked without the Library, or if the work is itself a library.  The+threshold for this to be true is not precisely defined by law.++  If such an object file uses only numerical parameters, data+structure layouts and accessors, and small macros and small inline+functions (ten lines or less in length), then the use of the object+file is unrestricted, regardless of whether it is legally a derivative+work.  (Executables containing this object code plus portions of the+Library will still fall under Section 6.)++  Otherwise, if the work is a derivative of the Library, you may+distribute the object code for the work under the terms of Section 6.+Any executables containing that work also fall under Section 6,+whether or not they are linked directly with the Library itself.++  6. As an exception to the Sections above, you may also combine or+link a "work that uses the Library" with the Library to produce a+work containing portions of the Library, and distribute that work+under terms of your choice, provided that the terms permit+modification of the work for the customer's own use and reverse+engineering for debugging such modifications.++  You must give prominent notice with each copy of the work that the+Library is used in it and that the Library and its use are covered by+this License.  You must supply a copy of this License.  If the work+during execution displays copyright notices, you must include the+copyright notice for the Library among them, as well as a reference+directing the user to the copy of this License.  Also, you must do one+of these things:++    a) Accompany the work with the complete corresponding+    machine-readable source code for the Library including whatever+    changes were used in the work (which must be distributed under+    Sections 1 and 2 above); and, if the work is an executable linked+    with the Library, with the complete machine-readable "work that+    uses the Library", as object code and/or source code, so that the+    user can modify the Library and then relink to produce a modified+    executable containing the modified Library.  (It is understood+    that the user who changes the contents of definitions files in the+    Library will not necessarily be able to recompile the application+    to use the modified definitions.)++    b) Use a suitable shared library mechanism for linking with the+    Library.  A suitable mechanism is one that (1) uses at run time a+    copy of the library already present on the user's computer system,+    rather than copying library functions into the executable, and (2)+    will operate properly with a modified version of the library, if+    the user installs one, as long as the modified version is+    interface-compatible with the version that the work was made with.++    c) Accompany the work with a written offer, valid for at least+    three years, to give the same user the materials specified in+    Subsection 6a, above, for a charge no more than the cost of+    performing this distribution.++    d) If distribution of the work is made by offering access to copy+    from a designated place, offer equivalent access to copy the above+    specified materials from the same place.++    e) Verify that the user has already received a copy of these+    materials or that you have already sent this user a copy.++  For an executable, the required form of the "work that uses the+Library" must include any data and utility programs needed for+reproducing the executable from it.  However, as a special exception,+the materials to be distributed need not include anything that is+normally distributed (in either source or binary form) with the major+components (compiler, kernel, and so on) of the operating system on+which the executable runs, unless that component itself accompanies+the executable.++  It may happen that this requirement contradicts the license+restrictions of other proprietary libraries that do not normally+accompany the operating system.  Such a contradiction means you cannot+use both them and the Library together in an executable that you+distribute.++  7. You may place library facilities that are a work based on the+Library side-by-side in a single library together with other library+facilities not covered by this License, and distribute such a combined+library, provided that the separate distribution of the work based on+the Library and of the other library facilities is otherwise+permitted, and provided that you do these two things:++    a) Accompany the combined library with a copy of the same work+    based on the Library, uncombined with any other library+    facilities.  This must be distributed under the terms of the+    Sections above.++    b) Give prominent notice with the combined library of the fact+    that part of it is a work based on the Library, and explaining+    where to find the accompanying uncombined form of the same work.++  8. You may not copy, modify, sublicense, link with, or distribute+the Library except as expressly provided under this License.  Any+attempt otherwise to copy, modify, sublicense, link with, or+distribute the Library is void, and will automatically terminate your+rights under this License.  However, parties who have received copies,+or rights, from you under this License will not have their licenses+terminated so long as such parties remain in full compliance.++  9. You are not required to accept this License, since you have not+signed it.  However, nothing else grants you permission to modify or+distribute the Library or its derivative works.  These actions are+prohibited by law if you do not accept this License.  Therefore, by+modifying or distributing the Library (or any work based on the+Library), you indicate your acceptance of this License to do so, and+all its terms and conditions for copying, distributing or modifying+the Library or works based on it.++  10. Each time you redistribute the Library (or any work based on the+Library), the recipient automatically receives a license from the+original licensor to copy, distribute, link with or modify the Library+subject to these terms and conditions.  You may not impose any further+restrictions on the recipients' exercise of the rights granted herein.+You are not responsible for enforcing compliance by third parties with+this License.++  11. If, as a consequence of a court judgment or allegation of patent+infringement or for any other reason (not limited to patent issues),+conditions are imposed on you (whether by court order, agreement or+otherwise) that contradict the conditions of this License, they do not+excuse you from the conditions of this License.  If you cannot+distribute so as to satisfy simultaneously your obligations under this+License and any other pertinent obligations, then as a consequence you+may not distribute the Library at all.  For example, if a patent+license would not permit royalty-free redistribution of the Library by+all those who receive copies directly or indirectly through you, then+the only way you could satisfy both it and this License would be to+refrain entirely from distribution of the Library.++If any portion of this section is held invalid or unenforceable under+any particular circumstance, the balance of the section is intended to+apply, and the section as a whole is intended to apply in other+circumstances.++It is not the purpose of this section to induce you to infringe any+patents or other property right claims or to contest validity of any+such claims; this section has the sole purpose of protecting the+integrity of the free software distribution system which is+implemented by public license practices.  Many people have made+generous contributions to the wide range of software distributed+through that system in reliance on consistent application of that+system; it is up to the author/donor to decide if he or she is willing+to distribute software through any other system and a licensee cannot+impose that choice.++This section is intended to make thoroughly clear what is believed to+be a consequence of the rest of this License.++  12. If the distribution and/or use of the Library is restricted in+certain countries either by patents or by copyrighted interfaces, the+original copyright holder who places the Library under this License+may add an explicit geographical distribution limitation excluding those+countries, so that distribution is permitted only in or among+countries not thus excluded.  In such case, this License incorporates+the limitation as if written in the body of this License.++  13. The Free Software Foundation may publish revised and/or new+versions of the Lesser General Public License from time to time.+Such new versions will be similar in spirit to the present version,+but may differ in detail to address new problems or concerns.++Each version is given a distinguishing version number.  If the Library+specifies a version number of this License which applies to it and+"any later version", you have the option of following the terms and+conditions either of that version or of any later version published by+the Free Software Foundation.  If the Library does not specify a+license version number, you may choose any version ever published by+the Free Software Foundation.++  14. If you wish to incorporate parts of the Library into other free+programs whose distribution conditions are incompatible with these,+write to the author to ask for permission.  For software which is+copyrighted by the Free Software Foundation, write to the Free+Software Foundation; we sometimes make exceptions for this.  Our+decision will be guided by the two goals of preserving the free status+of all derivatives of our free software and of promoting the sharing+and reuse of software generally.++                            NO WARRANTY++  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE+LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.++  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH+DAMAGES.++                     END OF TERMS AND CONDITIONS+++           How to Apply These Terms to Your New Libraries++  If you develop a new library, and you want it to be of the greatest+possible use to the public, we recommend making it free software that+everyone can redistribute and change.  You can do so by permitting+redistribution under these terms (or, alternatively, under the terms of the+ordinary General Public License).++  To apply these terms, attach the following notices to the library.  It is+safest to attach them to the start of each source file to most effectively+convey the exclusion of warranty; and each file should have at least the+"copyright" line and a pointer to where the full notice is found.++    <one line to give the library's name and a brief idea of what it does.>+    Copyright (C) <year>  <name of author>++    This library is free software; you can redistribute it and/or+    modify it under the terms of the GNU Lesser General Public+    License as published by the Free Software Foundation; either+    version 2.1 of the License, or (at your option) any later version.++    This library is distributed in the hope that it will be useful,+    but WITHOUT ANY WARRANTY; without even the implied warranty of+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU+    Lesser General Public License for more details.++    You should have received a copy of the GNU Lesser General Public+    License along with this library; if not, write to the Free Software+    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA++Also add information on how to contact you by electronic and paper mail.++You should also get your employer (if you work as a programmer) or your+school, if any, to sign a "copyright disclaimer" for the library, if+necessary.  Here is a sample; alter the names:++  Yoyodyne, Inc., hereby disclaims all copyright interest in the+  library `Frob' (a library for tweaking knobs) written by James Random Hacker.++  <signature of Ty Coon>, 1 April 1990+  Ty Coon, President of Vice++That's all there is to it!+
Language/Haskell/HsColour.hs view
@@ -20,13 +20,14 @@ import qualified Language.Haskell.HsColour.TTY        as TTY import qualified Language.Haskell.HsColour.HTML       as HTML import qualified Language.Haskell.HsColour.CSS        as CSS+import qualified Language.Haskell.HsColour.ACSS       as ACSS  import qualified Language.Haskell.HsColour.InlineCSS  as ICSS import qualified Language.Haskell.HsColour.LaTeX      as LaTeX import qualified Language.Haskell.HsColour.MIRC       as MIRC-import Data.List(mapAccumL, isPrefixOf) +import Data.List(mapAccumL, isPrefixOf) import Data.Maybe import Language.Haskell.HsColour.Output-import Debug.Trace+--import Debug.Trace  -- | Colourise Haskell source code with the given output format. hscolour :: Output      -- ^ Output format.@@ -39,37 +40,44 @@          -> String      -- ^ Coloured Haskell source code. hscolour output pref anchor partial title False =         (if partial then id else top'n'tail output title) .-        hscolour' output pref anchor+        hscolour' output pref anchor 1 hscolour output pref anchor partial title True  =         (if partial then id else top'n'tail output title) .-        concatMap chunk . joinL . classify . inlines+        concat . chunk 1 . joinL . classify . inlines   where-    chunk (Code c) = hscolour' output pref anchor c-    chunk (Lit c)  = c+    chunk _        []     = []+    chunk n (Code c: cs)  = hscolour' output pref anchor n c+                              : chunk (n + length (lines c)) cs+    chunk n (Lit c:  cs)  = c : chunk n cs  -- | The actual colourising worker, despatched on the chosen output format. hscolour' :: Output      -- ^ Output format.           -> ColourPrefs -- ^ Colour preferences (for formats that support them)           -> Bool        -- ^ Whether to include anchors.+          -> Int         -- ^ Starting line number (for line anchors)           -> String      -- ^ Haskell source code.           -> String      -- ^ Coloured Haskell source code.-hscolour' TTY   pref _      = TTY.hscolour   pref-hscolour' MIRC  pref _      = MIRC.hscolour  pref-hscolour' LaTeX pref _      = LaTeX.hscolour pref-hscolour' HTML  pref anchor = HTML.hscolour  pref anchor-hscolour' CSS   _    anchor = CSS.hscolour        anchor-hscolour' ICSS  pref anchor = ICSS.hscolour  pref anchor+hscolour' TTY       pref _      _ = TTY.hscolour     pref+hscolour' (TTYg tt) pref _      _ = TTY.hscolourG tt pref+hscolour' MIRC      pref _      _ = MIRC.hscolour    pref+hscolour' LaTeX     pref _      _ = LaTeX.hscolour   pref+hscolour' HTML      pref anchor n = HTML.hscolour    pref anchor n+hscolour' CSS       _    anchor n = CSS.hscolour          anchor n+hscolour' ICSS      pref anchor n = ICSS.hscolour    pref anchor n+hscolour' ACSS      _    anchor n = ACSS.hscolour         anchor n  -- | Choose the right headers\/footers, depending on the output format. top'n'tail :: Output           -- ^ Output format            -> String           -- ^ Title for output            -> (String->String) -- ^ Output transformer top'n'tail TTY   _     = id+top'n'tail (TTYg _) _  = id top'n'tail MIRC  _     = id top'n'tail LaTeX title = LaTeX.top'n'tail title top'n'tail HTML  title = HTML.top'n'tail title top'n'tail CSS   title = CSS.top'n'tail  title top'n'tail ICSS  title = ICSS.top'n'tail title+top'n'tail ACSS  title = CSS.top'n'tail  title  -- | Separating literate files into code\/comment chunks. data Lit = Code {unL :: String} | Lit {unL :: String} deriving (Show)@@ -88,16 +96,24 @@   -- | The code for classify is largely stolen from Language.Preprocessor.Unlit.+classify ::  [String] -> [Lit] classify []             = [] classify (x:xs) | "\\begin{code}"`isPrefixOf`x-                        = Lit x: allProg xs-   where allProg []     = []  -- Should give an error message,-                              -- but I have no good position information.-         allProg (x:xs) | "\\end{code}"`isPrefixOf`x-                        = Lit x: classify xs-         allProg (x:xs) = Code x: allProg xs+                        = Lit x: allProg "code" xs+classify (x:xs) | "\\begin{spec}"`isPrefixOf`x+                        = Lit x: allProg "spec" xs classify (('>':x):xs)   = Code ('>':x) : classify xs classify (x:xs)         = Lit x: classify xs+++allProg name  = go +  where+    end       = "\\end{" ++ name ++ "}"+    go []     = []  -- Should give an error message,+                    -- but I have no good position information.+    go (x:xs) | end `isPrefixOf `x+              = Lit x: classify xs+    go (x:xs) = Code x: go xs  -- | Join up chunks of code\/comment that are next to each other. joinL :: [Lit] -> [Lit]
+ Language/Haskell/HsColour/ACSS.hs view
@@ -0,0 +1,148 @@+-- | Formats Haskell source code as HTML with CSS and Mouseover Type Annotations+module Language.Haskell.HsColour.ACSS (+    hscolour+  , hsannot+  , AnnMap (..)+  , Loc (..)+  , breakS+  , srcModuleName +  ) where++import Language.Haskell.HsColour.Anchors+import Language.Haskell.HsColour.Classify as Classify+import Language.Haskell.HsColour.HTML (renderAnchors, renderComment,+                                       renderNewLinesAnchors, escape)+import qualified Language.Haskell.HsColour.CSS as CSS++import Data.Maybe  (fromMaybe) +import qualified Data.Map as M+import Data.List   (isSuffixOf, findIndex, elemIndices, intercalate)+import Data.Char   (isLower, isSpace, isAlphaNum)+import Text.Printf+import Debug.Trace++newtype AnnMap = Ann (M.Map Loc (String, String))                    +newtype Loc    = L (Int, Int) deriving (Eq, Ord, Show)++-- | Formats Haskell source code using HTML and mouse-over annotations +hscolour :: Bool     -- ^ Whether to include anchors.+         -> Int      -- ^ Starting line number (for line anchors).+         -> String   -- ^ Haskell source code, Annotations as comments at end+         -> String   -- ^ Coloured Haskell source code.++hscolour anchor n = hsannot anchor n . splitSrcAndAnns++-- | Formats Haskell source code using HTML and mouse-over annotations +hsannot  :: Bool             -- ^ Whether to include anchors.+         -> Int              -- ^ Starting line number (for line anchors).+         -> (String, AnnMap) -- ^ Haskell Source, Annotations+         -> String           -- ^ Coloured Haskell source code.++hsannot anchor n = +    CSS.pre+    . (if anchor then -- renderNewLinesAnchors n .+                      concatMap (renderAnchors renderAnnotToken)+                      . insertAnnotAnchors+                 else concatMap renderAnnotToken)+    . annotTokenise++annotTokenise  :: (String, AnnMap) -> [(TokenType, String, Maybe String)] +annotTokenise (src, Ann annm) +  = zipWith (\(x,y) z -> (x,y, snd `fmap` z)) toks annots +  where toks       = tokenise src +        spans      = tokenSpans $ map snd toks +        annots     = map (`M.lookup` annm) spans++tokenSpans :: [String] -> [Loc]+tokenSpans = scanl plusLoc (L (1, 1)) ++plusLoc :: Loc -> String -> Loc+plusLoc (L (l, c)) s +  = case '\n' `elemIndices` s of+      [] -> L (l, (c + n))+      is -> L ((l + length is), (n - maximum is))+    where n = length s++renderAnnotToken :: (TokenType, String, Maybe String) -> String+renderAnnotToken (x,y, Nothing) +  = CSS.renderToken (x, y)+renderAnnotToken (x,y, Just ann)+  = printf template (escape ann) (CSS.renderToken (x, y))+    where template = "<a class=annot href=\"#\"><span class=annottext>%s</span>%s</a>"++{- Example Annotation:+<a class=annot href="#"><span class=annottext>x#agV:Int -&gt; {VV_int:Int | (0 &lt;= VV_int),(x#agV &lt;= VV_int)}</span>+<span class='hs-definition'>NOWTRYTHIS</span></a>+-}+++insertAnnotAnchors :: [(TokenType, String, a)] -> [Either String (TokenType, String, a)]+insertAnnotAnchors toks +  = stitch (zip toks' toks) $ insertAnchors toks'+  where toks' = [(x,y) | (x,y,_) <- toks] ++stitch ::  Eq b => [(b, c)] -> [Either a b] -> [Either a c]+stitch xys ((Left a) : rest)+  = (Left a) : stitch xys rest+stitch ((x,y):xys) ((Right x'):rest) +  | x == x' +  = (Right y) : stitch xys rest+  | otherwise+  = error "stitch"+stitch _ []+  = []+++splitSrcAndAnns ::  String -> (String, AnnMap) +splitSrcAndAnns s = +  let ls = lines s in+  case findIndex (breakS ==) ls of+    Nothing -> (s, Ann M.empty)+    Just i  -> (src, {- trace ("annm =" ++ show ann) -} ann)+               where (codes, _:mname:annots) = splitAt i ls+                     ann   = annotParse mname $ dropWhile isSpace $ unlines annots+                     src   = unlines codes+                     -- mname = srcModuleName src++srcModuleName :: String -> String+srcModuleName = fromMaybe "Main" . tokenModule . tokenise+  +tokenModule toks +  = do i <- findIndex ((Keyword, "module") ==) toks +       let (_, toks')  = splitAt (i+2) toks+       j <- findIndex ((Space ==) . fst) toks'+       let (toks'', _) = splitAt j toks'+       return $ concatMap snd toks''++breakS = "MOUSEOVER ANNOTATIONS" ++annotParse :: String -> String -> AnnMap+annotParse mname = Ann . M.fromList . parseLines mname 0 . lines++parseLines mname i [] +  = []+parseLines mname i ("":ls)      +  = parseLines mname (i+1) ls+parseLines mname i (x:f:l:c:n:rest) +  | f /= mname -- `isSuffixOf` mname +  = {- trace ("wrong annot f = " ++ f ++ " mname = " ++ mname) $ -} parseLines mname (i + 5 + num) rest'+  | otherwise +  = (L (line, col), (x, anns)) : parseLines mname (i + 5 + num) rest'+    where line  = (read l) :: Int+          col   = (read c) :: Int+          num   = (read n) :: Int+          anns  = intercalate "\n" $ take num rest+          rest' = drop num rest+parseLines _ i _              +  = error $ "Error Parsing Annot Input on Line: " ++ show i++takeFileName s = map slashWhite s+  where slashWhite '/' = ' '++instance Show AnnMap where+  show (Ann m) = "\n\n" ++ (concatMap ppAnnot $ M.toList m)+    where ppAnnot (L (l, c), (x,s)) =  x ++ "\n" +                                    ++ show l ++ "\n"+                                    ++ show c ++ "\n"+                                    ++ show (length $ lines s) ++ "\n"+                                    ++ s ++ "\n\n\n"
Language/Haskell/HsColour/ANSI.hs view
@@ -1,8 +1,8 @@ -- | Partially taken from Hugs AnsiScreen.hs library: module Language.Haskell.HsColour.ANSI-  ( highlightOn+  ( highlightOnG,highlightOn   , highlightOff-  , highlight+  , highlightG,highlight   , cleareol, clearbol, clearline, clearDown, clearUp, cls   , goto   , cursorUp, cursorDown, cursorLeft, cursorRight@@ -12,14 +12,17 @@   , colourCycle   , enableScrollRegion, scrollUp, scrollDown   , lineWrap+  , TerminalType(..)   ) where  import Language.Haskell.HsColour.ColourHighlight+import Language.Haskell.HsColour.Output(TerminalType(..)) -import List (intersperse,isPrefixOf)-import Char (isDigit)+import Data.List (intersperse,isPrefixOf)+import Data.Char (isDigit)  + -- Basic screen control codes:  type Pos           = (Int,Int)@@ -64,20 +67,42 @@   fromEnum Blink        = 5   fromEnum ReverseVideo = 7   fromEnum Concealed    = 8+  -- The translation of these depends on the terminal type, and they don't translate to single numbers anyway. Should we really use the Enum class for this purpose rather than simply moving this table to 'renderAttrG'?+  fromEnum (Foreground (Rgb _ _ _)) = error "Internal error: fromEnum (Foreground (Rgb _ _ _))"+  fromEnum (Background (Rgb _ _ _)) = error "Internal error: fromEnum (Background (Rgb _ _ _))"   fromEnum (Foreground c) = 30 + fromEnum c   fromEnum (Background c) = 40 + fromEnum c   fromEnum Italic       = 2 ++-- | = 'highlightG' 'Ansi16Colour'+highlight ::  [Highlight] -> String -> String+highlight = highlightG Ansi16Colour++-- | = 'highlightOn' 'Ansi16Colour'+highlightOn ::  [Highlight] -> String+highlightOn = highlightOnG Ansi16Colour++ -- | Make the given string appear with all of the listed highlights-highlight :: [Highlight] -> String -> String-highlight attrs s = highlightOn attrs ++ s ++ highlightOff+highlightG :: TerminalType -> [Highlight] -> String -> String+highlightG tt attrs s = highlightOnG tt attrs ++ s ++ highlightOff -highlightOn []     = highlightOn [Normal]-highlightOn attrs  = "\ESC["-                     ++ concat (intersperse ";" (map (show.fromEnum) attrs))-                     ++"m"+highlightOnG :: TerminalType -> [Highlight] -> String+highlightOnG tt []     = highlightOnG tt [Normal]+highlightOnG tt attrs  = "\ESC["+                       ++ concat (intersperse ";" (concatMap (renderAttrG tt) attrs))+                       ++"m"+highlightOff ::  [Char] highlightOff = "\ESC[0m" +renderAttrG ::  TerminalType -> Highlight -> [String]+renderAttrG XTerm256Compatible (Foreground (Rgb r g b)) = +    [ "38", "5", show ( rgb24bit_to_xterm256 r g b ) ]+renderAttrG XTerm256Compatible (Background (Rgb r g b)) = +    [ "48", "5", show ( rgb24bit_to_xterm256 r g b ) ]+renderAttrG _ a                                         = +    [ show (fromEnum (hlProjectToBasicColour8 a)) ]  -- | An infinite supply of colours. colourCycle :: [Colour]@@ -88,10 +113,13 @@ enableScrollRegion :: Int -> Int -> String enableScrollRegion start end = "\ESC["++show start++';':show end++"r" +scrollDown ::  String scrollDown  = "\ESCD"+scrollUp ::  String scrollUp    = "\ESCM"  -- Line-wrapping mode+lineWrap ::  Bool -> [Char] lineWrap True  = "\ESC[7h" lineWrap False = "\ESC[7l" 
Language/Haskell/HsColour/Anchors.hs view
@@ -4,7 +4,8 @@  import Language.Haskell.HsColour.Classify import Language.Haskell.HsColour.General-import List+import Data.List+import Data.Char (isUpper, isLower, isDigit, ord, intToDigit)  -- This is an attempt to find the first defining occurrence of an -- identifier (function, datatype, class) in a Haskell source file.@@ -27,13 +28,30 @@  -- looks at first token in the left-most position of each line -- precondition: have just seen a newline token.+anchor :: ST -> [(TokenType, String)] -> [Either String (TokenType, String)] anchor st s = case identifier st s of                 Nothing -> emit st s-                Just v  -> Left v: emit (insertST v st) s+                Just v  -> Left (escape v): emit (insertST v st) s +-- some chars are not valid in anchor URIs: http://www.ietf.org/rfc/rfc3986+-- NOTE: This code assumes characters are 8-bit.+--       Ideally, it should transcode to utf8 octets first.+escape :: String -> String+escape = concatMap enc+    where enc x | isDigit x+                || isURIFragmentValid x+                || isLower x+                || isUpper x = [x]+                | ord x >= 256 = [x] -- not correct, but better than nothing+                | otherwise  = ['%',hexHi (ord x), hexLo (ord x)]+          hexHi d = intToDigit (d`div`16)+          hexLo d = intToDigit (d`mod`16)+          isURIFragmentValid x = x `elem` "!$&'()*+,;=/?-._~:@"+ -- emit passes stuff through until the next newline has been encountered, -- then jumps back into the anchor function -- pre-condition: newlines are explicitly single tokens+emit :: ST -> [(TokenType, String)] -> [Either String (TokenType, String)] emit st (t@(Space,"\n"):stream) = Right t: anchor st stream emit st (t:stream)              = Right t: emit st stream emit _  []                      = []@@ -41,6 +59,7 @@ -- Given that we are at the beginning of a line, determine whether there -- is an identifier defined here, and if so, return it. -- precondition: have just seen a newline token.+identifier ::  ST -> [(TokenType, String)] -> Maybe String identifier st t@((kind,v):stream) | kind`elem`[Varid,Definition] =     case skip stream of         ((Varop,v):_) | not (v`inST`st) -> Just (fix v)@@ -57,10 +76,17 @@           ((Varop,v):_) | not (v`inST`st) -> Just (fix v)           _             -> Nothing identifier st t@((Keyword,"foreign"):stream) = Nothing -- not yet implemented+identifier st t@((Keyword,"data"):(Space,_):(Keyword,"family"):stream)+                                             = getConid stream identifier st t@((Keyword,"data"):stream)    = getConid stream identifier st t@((Keyword,"newtype"):stream) = getConid stream+identifier st t@((Keyword,"type"):(Space,_):(Keyword,"family"):stream)+                                             = getConid stream+identifier st t@((Keyword,"type"):(Space,_):(Keyword,"data"):stream)+                                             = getConid stream identifier st t@((Keyword,"type"):stream)    = getConid stream identifier st t@((Keyword,"class"):stream)   = getConid stream+identifier st t@((Keyword,"instance"):stream)= getInstance stream identifier st t@((Comment,_):(Space,"\n"):stream) = identifier st stream identifier st stream = Nothing @@ -75,6 +101,7 @@ typesig _                     = False  -- throw away everything from opening paren to matching close+munchParens ::  [(TokenType, String)] -> [(TokenType, String)] munchParens =  munch (0::Int)	-- already seen open paren   where munch 0 ((Layout,")"):rest) = rest         munch n ((Layout,")"):rest) = munch (n-1) rest@@ -83,16 +110,19 @@         munch _ []                  = []	-- source is ill-formed  -- ensure anchor name is correct for a Varop+fix ::  String -> String fix ('`':v) = dropLast '`' v fix v       = v  -- look past whitespace and comments to next "real" token+skip ::  [(TokenType, t)] -> [(TokenType, t)] skip ((Space,_):stream)   = skip stream skip ((Comment,_):stream) = skip stream skip stream               = stream  -- skip possible context up to and including "=>", returning next Conid token -- (this function is highly partial - relies on source being parse-correct)+getConid ::  [(TokenType, String)] -> Maybe String getConid stream =     case skip stream of         ((Conid,c):rest) -> case context rest of@@ -114,10 +144,31 @@        --                       ++"\n  in the context of: "++c)  -- jump past possible class context+context ::  [(TokenType, String)] -> [(TokenType, String)] context stream@((Keyglyph,"="):_) = stream context stream@((Keyglyph,"=>"):_) = stream+context stream@((Keyglyph,"⇒"):_) = stream context (_:stream) = context stream context [] = []++-- the anchor name for an instance is just the entire instance head, minus+-- any extra context clause+getInstance = Just . unwords . ("instance":) . words . concat . map snd+              . trimContext . takeWhile (not . terminator)+  where+    trimContext ts = if (Keyglyph,"=>") `elem` ts+                     ||  (Keyglyph,"⇒") `elem` ts+                     then tail . dropWhile (`notElem`[(Keyglyph,"=>")+                                                     ,(Keyglyph,"⇒")]) $ ts+                     else ts+    terminator (Keyword, _)   = True+    terminator (Comment, _)   = True+    terminator (Cpp,     _)   = True+    terminator (Keyglyph,"|") = True+    terminator (Layout,  ";") = True+    terminator (Layout,  "{") = True+    terminator (Layout,  "}") = True+    terminator _              = False  -- simple implementation of a string lookup table. -- replace this with something more sophisticated if needed.
Language/Haskell/HsColour/CSS.hs view
@@ -1,5 +1,10 @@ -- | Formats Haskell source code as HTML with CSS.-module Language.Haskell.HsColour.CSS (hscolour,top'n'tail) where+module Language.Haskell.HsColour.CSS +  ( hscolour+  , top'n'tail+  , renderToken +  , pre +  ) where  import Language.Haskell.HsColour.Anchors import Language.Haskell.HsColour.Classify as Classify@@ -8,13 +13,14 @@  -- | Formats Haskell source code as a complete HTML document with CSS. hscolour :: Bool   -- ^ Whether to include anchors.+         -> Int    -- ^ Starting line number (for line anchors).          -> String -- ^ Haskell source code.          -> String -- ^ An HTML document containing the coloured                     --   Haskell source code.-hscolour anchor =+hscolour anchor n =   pre   . (if anchor -        then renderNewLinesAnchors+        then renderNewLinesAnchors n              . concatMap (renderAnchors renderToken)              . insertAnchors         else concatMap renderToken)@@ -53,10 +59,11 @@   cssPrefix title = unlines-    ["<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"+    ["<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+    ,"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"     ,"<html>"     ,"<head>"-    ,"<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->"+    ,"<!-- Generated by HsColour, http://code.haskell.org/~malcolm/hscolour/ -->"     ,"<title>"++title++"</title>"     ,"<link type='text/css' rel='stylesheet' href='hscolour.css' />"     ,"</head>"
Language/Haskell/HsColour/Classify.hs view
@@ -3,17 +3,31 @@   , tokenise   ) where -import Char-import List+import Data.Char (isSpace, isUpper, isLower, isDigit)+import Data.List  -- | Lex Haskell source code into an annotated token stream, without --   discarding any characters or layout. tokenise :: String -> [(TokenType,String)] tokenise str =      let chunks = glue . chunk $ str -        newline = True : (map ("\n" `isPrefixOf`) chunks)-    in map (\(s,n)-> (classify s n,s)) (zip chunks newline)+    in markDefs $ map (\s-> (classify s,s)) chunks +markDefs :: [(TokenType, String)] -> [(TokenType, String)]+markDefs [] = []+markDefs ((Varid, s) : rest) = (Definition, s) : continue rest+markDefs ((Varop, ">") : (Space, " ") : (Varid, d) : rest) =+    (Varop, ">") : (Space, " ") : (Definition, d) : continue rest+markDefs rest = continue rest++continue rest +    = let (thisLine, nextLine) = span (/= (Space, "\n")) rest+      in+        case nextLine of+          [] -> thisLine+          ((Space, "\n"):nextLine') -> (thisLine ++ ((Space, "\n") : (markDefs nextLine')))++ -- Basic Haskell lexing, except we keep whitespace. chunk :: String -> [String] chunk []    = []@@ -33,8 +47,8 @@ isLinearSpace c = c `elem` " \t\f" -- " \t\xa0"  -- Glue sequences of tokens into more useful blobs---glue (q:".":n:rest) | Char.isUpper (head q)	-- qualified names---                    = glue ((q++"."++n): rest)+glue (q:".":n:rest) | isUpper (head q)	-- qualified names+                    = glue ((q++"."++n): rest) glue ("`":rest) =				-- `varid` -> varop   case glue rest of     (qn:"`":rest) -> ("`"++qn++"`"): glue rest@@ -78,8 +92,8 @@   Definition   deriving (Eq,Show) -classify :: String -> Bool -> TokenType-classify s@(h:t) newline+classify :: String -> TokenType+classify s@(h:t)     | isSpace h              = Space     | all (=='-') s          = Comment     | "--" `isPrefixOf` s@@ -92,7 +106,7 @@     | s == "[]"              = Conid     | h == '(' && isTupleTail t = Conid     | h == '#'               = Cpp-    | isLower h              = if newline then Definition else Varid+    | isLower h              = Varid     | h `elem` symbols       = Varop     | h==':'                 = Conop     | h=='`'                 = Varop@@ -100,7 +114,7 @@     | h=='\''                = Char     | isDigit h              = Number     | otherwise              = Error-classify _ _ = Space+classify _ = Space  isTupleTail [')'] = True isTupleTail (',':xs) = isTupleTail xs@@ -112,7 +126,7 @@   ["case","class","data","default","deriving","do","else","forall"   ,"if","import","in","infix","infixl","infixr","instance","let","module"   ,"newtype","of","qualified","then","type","where","_"-  ,"foreign","ccall","as","safe","unsafe"]+  ,"foreign","ccall","as","safe","unsafe","family"] keyglyphs =   ["..","::","=","\\","|","<-","->","@","~","=>","[","]"] layoutchars =
Language/Haskell/HsColour/ColourHighlight.hs view
@@ -1,12 +1,78 @@ module Language.Haskell.HsColour.ColourHighlight   ( Colour(..)   , Highlight(..)+  , base256, unbase+  , rgb24bit_to_xterm256+  ,   projectToBasicColour8+  , hlProjectToBasicColour8   ) where +import Data.Word+ -- | Colours supported by ANSI codes.-data Colour = Black | Red | Green | Yellow | Blue | Magenta | Cyan | White-  deriving (Eq,Show,Read,Enum)+data Colour = Black | Red | Green | Yellow | Blue | Magenta | Cyan | White | Rgb Word8 Word8 Word8+  deriving (Eq,Show,Read) +-- | Convert an integer in the range [0,2^24-1] to its base 256-triplet, passing the result to the given continuation (avoid unnecessary tupleism).+base256 :: Integral int => (Word8 -> Word8 -> Word8 -> r) -> int -> r+base256 kont x =+    let+        (r,gb) = divMod x 256+        (g,b)  = divMod gb 256+        fi = fromIntegral+    in +        kont (fi r) (fi g) (fi b)++-- | Convert a three-digit numeral in the given (as arg 1) base to its integer value.+unbase :: Integral int => int -> Word8 -> Word8 -> Word8 -> int+unbase base r g b = (fi r*base+fi g)*base+fi b+    where fi = fromIntegral++-- | Approximate a 24-bit Rgb colour with a colour in the xterm256 6x6x6 colour cube, returning its index.+rgb24bit_to_xterm256 :: (Integral t) => Word8 -> Word8 -> Word8 -> t+rgb24bit_to_xterm256 r g b = let f = (`div` 43)+                          in 16 + unbase 6 (f r) (f g) (f b)+++-- | Ap\"proxi\"mate a 24-bit Rgb colour with an ANSI8 colour. Will leave other colours unchanged and will never return an 'Rgb' constructor value. +projectToBasicColour8 ::  Colour -> Colour+projectToBasicColour8 (Rgb r g b) = let f = (`div` 128)+                          in  toEnum ( unbase 2 (f r) (f g) (f b) )+projectToBasicColour8 x = x+++-- | Lift 'projectToBasicColour8' to 'Highlight's+hlProjectToBasicColour8 ::  Highlight -> Highlight+hlProjectToBasicColour8 (Foreground c) = Foreground (projectToBasicColour8 c)+hlProjectToBasicColour8 (Background c) = Background (projectToBasicColour8 c)+hlProjectToBasicColour8 h = h++        ++instance Enum Colour where+    toEnum 0 = Black+    toEnum 1 = Red +    toEnum 2 = Green +    toEnum 3 = Yellow +    toEnum 4 = Blue +    toEnum 5 = Magenta +    toEnum 6 = Cyan +    toEnum 7 = White +    -- Arbitrary extension; maybe just 'error' out instead+    toEnum x = base256 Rgb (x-8)+    +    fromEnum Black   = 0+    fromEnum Red     = 1+    fromEnum Green   = 2+    fromEnum Yellow  = 3+    fromEnum Blue    = 4+    fromEnum Magenta = 5+    fromEnum Cyan    = 6+    fromEnum White   = 7+    -- Arbitrary extension; maybe just 'error' out instead+    fromEnum (Rgb r g b) = 8 + unbase 256 r g b+ + -- | Types of highlighting supported by ANSI codes (and some extra styles). data Highlight =     Normal@@ -18,7 +84,10 @@   | Concealed   | Foreground Colour   | Background Colour-  -- Above are ANSI-only.  Below are extra styles.+  -- The above styles are ANSI-supported, with the exception of the 'Rgb' constructor for 'Colour's.  Below are extra styles (e.g. for Html rendering).   | Italic   deriving (Eq,Show,Read)+++ 
Language/Haskell/HsColour/Colourise.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE ScopedTypeVariables #-} module Language.Haskell.HsColour.Colourise   ( module Language.Haskell.HsColour.ColourHighlight   , ColourPrefs(..)@@ -9,9 +10,11 @@ import Language.Haskell.HsColour.ColourHighlight import Language.Haskell.HsColour.Classify (TokenType(..)) -import IO (hPutStrLn,stderr)-import System (getEnv)-import List+import System.IO (hPutStrLn,stderr)+import System.Environment (getEnv)+import Data.List+import Prelude hiding (catch)+import Control.Exception.Base (catch)  -- | Colour preferences. data ColourPrefs = ColourPrefs@@ -54,11 +57,11 @@ readColourPrefs = catch   (do val <- readFile ".hscolour"       parseColourPrefs ".hscolour" val)-  (\_-> catch+  (\ (_::IOError)-> catch     (do home <- getEnv "HOME"         val <- readFile (home++"/.hscolour")         parseColourPrefs (home++"/.hscolour") val)-    (\_-> return defaultColourPrefs))+    (\ (_::IOError)-> return defaultColourPrefs))  -- | Convert token classification to colour highlights. colourise :: ColourPrefs -> TokenType -> [Highlight]
Language/Haskell/HsColour/HTML.hs view
@@ -11,16 +11,18 @@ import Language.Haskell.HsColour.Colourise  import Data.Char(isAlphaNum)+import Text.Printf   -- | Formats Haskell source code using HTML with font tags. hscolour :: ColourPrefs -- ^ Colour preferences.          -> Bool        -- ^ Whether to include anchors.+         -> Int         -- ^ Starting line number (for line anchors).          -> String      -- ^ Haskell source code.          -> String      -- ^ Coloured Haskell source code.-hscolour pref anchor = +hscolour pref anchor n =      pre-    . (if anchor then renderNewLinesAnchors+    . (if anchor then renderNewLinesAnchors n                       . concatMap (renderAnchors (renderToken pref))                       . insertAnchors                  else concatMap (renderToken pref))@@ -36,8 +38,7 @@ renderToken pref (t,s) = fontify (colourise pref t)                          (if t == Comment then renderComment s else escape s) -renderAnchors :: ((TokenType,String)->String)-                 -> Either String (TokenType,String) -> String+renderAnchors :: (a -> String) -> Either String a -> String renderAnchors _      (Left v) = "<a name=\""++v++"\"></a>" renderAnchors render (Right r) = render r @@ -55,14 +56,16 @@ renderComment (x:xs) = escape [x] ++ renderComment xs renderComment [] = [] -renderNewLinesAnchors :: String -> String-renderNewLinesAnchors = unlines . map render . zip [1..] . lines+renderNewLinesAnchors :: Int -> String -> String+renderNewLinesAnchors n = unlines . map render . zip [n..] . lines     where render (line, s) = "<a name=\"line-" ++ show line ++ "\"></a>" ++ s  -- Html stuff+fontify ::  [Highlight] -> String -> String fontify [] s     = s fontify (h:hs) s = font h (fontify hs s) +font ::  Highlight -> String -> String font Normal         s = s font Bold           s = "<b>"++s++"</b>" font Dim            s = "<em>"++s++"</em>"@@ -70,23 +73,28 @@ font Blink          s = "<blink>"++s++"</blink>" font ReverseVideo   s = s font Concealed      s = s-font (Foreground c) s = "<font color="++show c++">"++s++"</font>"+font (Foreground (Rgb r g b)) s = printf   "<font color=\"#%02x%02x%02x\">%s</font>" r g b s+font (Background (Rgb r g b)) s = printf "<font bgcolor=\"#%02x%02x%02x\">%s</font>" r g b s+font (Foreground c) s =   "<font color="++show c++">"++s++"</font>" font (Background c) s = "<font bgcolor="++show c++">"++s++"</font>" font Italic         s = "<i>"++s++"</i>" +escape ::  String -> String escape ('<':cs) = "&lt;"++escape cs escape ('>':cs) = "&gt;"++escape cs escape ('&':cs) = "&amp;"++escape cs escape (c:cs)   = c: escape cs escape []       = [] +htmlHeader ::  String -> String htmlHeader title = unlines   [ "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">"   , "<html>"   , "<head>"-  ,"<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->"+  ,"<!-- Generated by HsColour, http://code.haskell.org/~malcolm/hscolour/ -->"   , "<title>"++title++"</title>"   , "</head>"   , "<body>"   ]+htmlClose ::  String htmlClose  = "\n</body>\n</html>"
Language/Haskell/HsColour/InlineCSS.hs view
@@ -6,17 +6,19 @@ import Language.Haskell.HsColour.Colourise import Language.Haskell.HsColour.HTML (renderAnchors, renderComment,                                        renderNewLinesAnchors, escape)+import Text.Printf  -- | Formats Haskell source code as a complete HTML document with inline styling hscolour :: ColourPrefs	-- ^ Preferences for styling.          -> Bool   -- ^ Whether to include anchors.+         -> Int    -- ^ Starting line number (for line anchors).          -> String -- ^ Haskell source code.          -> String -- ^ An HTML document containing the coloured                     --   Haskell source code.-hscolour prefs anchor =+hscolour prefs anchor n =   pre   . (if anchor -        then renderNewLinesAnchors+        then renderNewLinesAnchors n              . concatMap (renderAnchors (renderToken prefs))              . insertAnchors         else concatMap (renderToken prefs))@@ -38,10 +40,11 @@ stylise hs s = "<span style=\"" ++ concatMap style hs ++ "\">" ++s++ "</span>"  cssPrefix title = unlines-    ["<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"+    ["<?xml version=\"1.0\" encoding=\"UTF-8\">"+    ,"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"     ,"<html>"     ,"<head>"-    ,"<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->"+    ,"<!-- Generated by HsColour, http://code.haskell.org/~malcolm/hscolour/ -->"     ,"<title>"++title++"</title>"     ,"</head>"     ,"<body style=\"background-color: #131313; color: #ffffff;\">"@@ -61,7 +64,7 @@ style ReverseVideo   = "" style Concealed      = "text-decoration:  line-through;" style (Foreground c) = "color: "++csscolour c++";"-style (Background c) = "background-colour: "++csscolour c++";"+style (Background c) = "background-color: "++csscolour c++";" style Italic         = "font-style: italic;"  csscolour :: Colour -> String@@ -73,4 +76,5 @@ csscolour Magenta = "#ff00ff" csscolour Cyan    = "#00ffff" csscolour White   = "#ffffff"+csscolour (Rgb r g b) = printf "#%02x%02x%02x" r g b 
Language/Haskell/HsColour/LaTeX.hs view
@@ -82,6 +82,8 @@ latexColour Magenta = "magenta" latexColour Cyan    = "cyan" latexColour White   = "white"+-- | TODO: How are these properly encoded in Latex?+latexColour c@(Rgb _ _ _) = latexColour (projectToBasicColour8 c)  -- | Generic LaTeX document preamble. latexPrefix title = unlines
Language/Haskell/HsColour/MIRC.hs view
@@ -50,19 +50,20 @@                                                    : code bg blink++s++"\^O"  code :: Colour -> Bool -> String-code Black   False = "1"-code Red     False = "5"-code Green   False = "3"-code Yellow  False = "7"-code Blue    False = "2"-code Magenta False = "6"+code Black   False = "01"+code Red     False = "05"+code Green   False = "03"+code Yellow  False = "07"+code Blue    False = "02"+code Magenta False = "06" code Cyan    False = "10"-code White   False = "0"+code White   False = "00" code Black   True  = "14"-code Red     True  = "4"-code Green   True  = "9"-code Yellow  True  = "8"+code Red     True  = "04"+code Green   True  = "09"+code Yellow  True  = "08" code Blue    True  = "12" code Magenta True  = "13" code Cyan    True  = "11" code White   True  = "15"+code c@(Rgb _ _ _) b = code (projectToBasicColour8 c) b
Language/Haskell/HsColour/Options.hs view
@@ -1,6 +1,7 @@ module Language.Haskell.HsColour.Options   ( Option(..)   , Output(..)+  , TerminalType(..)   ) where   import Language.Haskell.HsColour.Output@@ -16,4 +17,5 @@   | Partial Bool	-- ^ whether to produce a full document or partial   | Input FilePath	-- ^ input source file   | Output FilePath	-- ^ output source file+  | Annot FilePath  -- ^ annotations file   deriving Eq
Language/Haskell/HsColour/Output.hs view
@@ -1,10 +1,17 @@-module Language.Haskell.HsColour.Output where+module Language.Haskell.HsColour.Output(TerminalType(..),Output(..)) where +data TerminalType = +      Ansi16Colour -- ^ @\\033[Xm@-style escape sequences (with /X/ =~ [34][0-7]) +    | XTerm256Compatible -- ^ 'Ansi16Colour', and also @\\033[Y8;5;Zm]@-style escape sequences (with /Y/ =~ [3,4] and /Z/ an integer in [0,255] with the XTerm colour cube semantics).+    deriving (Show,Eq,Ord)+ -- | The supported output formats.-data Output = TTY   -- ^ ANSI terminal codes+data Output = TTY   -- ^ ANSI terminal codes. Equivalent to 'TTYg' 'Ansi16Colour' but left in for backwards compatibility. +            | TTYg TerminalType -- ^ Terminal codes appropriate for the 'TerminalType'.             | LaTeX -- ^ TeX macros             | HTML  -- ^ HTML with font tags             | CSS   -- ^ HTML with CSS.+            | ACSS  -- ^ HTML with CSS and mouseover types.              | ICSS  -- ^ HTML with inline CSS.             | MIRC  -- ^ mIRC chat clients   deriving (Eq,Show)
Language/Haskell/HsColour/TTY.hs view
@@ -1,15 +1,22 @@ -- | Highlights Haskell code with ANSI terminal codes.-module Language.Haskell.HsColour.TTY (hscolour) where+module Language.Haskell.HsColour.TTY (hscolour,hscolourG) where  import Language.Haskell.HsColour.ANSI as ANSI import Language.Haskell.HsColour.Classify import Language.Haskell.HsColour.Colourise+import Language.Haskell.HsColour.Output(TerminalType(Ansi16Colour)) --- | Highlights Haskell code with ANSI terminal codes.+-- | = 'hscolourG' 'Ansi16Colour' hscolour :: ColourPrefs -- ^ Colour preferences.          -> String      -- ^ Haskell source code.          -> String      -- ^ Coloured Haskell source code.-hscolour pref = concatMap (renderToken pref) . tokenise+hscolour = hscolourG Ansi16Colour +-- | Highlights Haskell code with ANSI terminal codes.+hscolourG terminalType pref = concatMap (renderTokenG terminalType pref) . tokenise++ renderToken :: ColourPrefs -> (TokenType,String) -> String-renderToken pref (t,s) = ANSI.highlight (colourise pref t) s+renderToken = renderTokenG Ansi16Colour++renderTokenG terminalType pref (t,s) = ANSI.highlightG terminalType (colourise pref t) s
− Makefile
@@ -1,70 +0,0 @@-LIBRARY	= hscolour-VERSION	= 1.15--DIRS	= Language/Haskell/HsColour--SRCS	= Language/Haskell/HsColour.hs \-	  Language/Haskell/HsColour/General.hs \-	  Language/Haskell/HsColour/ANSI.hs \-	  Language/Haskell/HsColour/Anchors.hs \-	  Language/Haskell/HsColour/CSS.hs \-	  Language/Haskell/HsColour/Classify.hs \-	  Language/Haskell/HsColour/ColourHighlight.hs \-	  Language/Haskell/HsColour/Colourise.hs \-	  Language/Haskell/HsColour/HTML.hs \-	  Language/Haskell/HsColour/InlineCSS.hs \-	  Language/Haskell/HsColour/LaTeX.hs \-	  Language/Haskell/HsColour/TTY.hs \-	  Language/Haskell/HsColour/MIRC.hs \-	  Language/Haskell/HsColour/Output.hs \-	  Language/Haskell/HsColour/Options.hs--AUX	= README LICENCE* $(LIBRARY).cabal Setup.hs Makefile \-	  HsColour.hs hscolour.css .hscolour \-	  index.html docs/*--GHC     = ghc--#all: $(LIBRARY)-executable: $(SRCS) HsColour.hs-	$(GHC) --make -o $(LIBRARY) HsColour-package:-	tar cf tmp.tar $(SRCS) $(AUX)-	mkdir $(LIBRARY)-$(VERSION)-	cd $(LIBRARY)-$(VERSION); tar xf ../tmp.tar-	tar zcf $(LIBRARY)-$(VERSION).tar.gz $(LIBRARY)-$(VERSION)-	zip -r $(LIBRARY)-$(VERSION).zip $(LIBRARY)-$(VERSION)-	rm -r tmp.tar $(LIBRARY)-$(VERSION)-haddock: $(SRCS)-	mkdir -p docs/$(LIBRARY)-	for dir in $(DIRS); do mkdir -p docs/$(LIBRARY)/$$dir; done-	for file in $(SRCS); \-	    do ./$(LIBRARY) -html -anchor $$file \-	          >docs/$(LIBRARY)/`dirname $$file`/`basename $$file .hs`.html;\-	    done-	haddock --html --title=$(LIBRARY) --odir=docs/$(LIBRARY) \-	    --package=$(LIBRARY) \-	    --source-module="%{MODULE/.//}.html" \-	    --source-entity="%{MODULE/.//}.html#%{NAME}" \-	    $(SRCS)--#$(LIBRARY): $(SRCS)-#	$(HC) $(HFLAGS) $(HEAP) -o $@  $(SRCS)-#	$(STRIP) $@--docs: haddock--install:-	install -D $(LIBRARY) $(DESTDIR)/usr/bin/$(LIBRARY)-	install -D $(LIBRARY).css $(DESTDIR)/usr/share/doc/$(LIBRARY)/examples/$(LIBRARY).css--install-docs:-	install -D index.html $(DESTDIR)/usr/share/doc/$(LIBRARY)/index.html-	cp -a docs/$(LIBRARY)/Language/Haskell/* $(DESTDIR)/usr/share/doc/$(LIBRARY)/--clean:-	rm -f $(DIRS)/*.o $(DIRS)/*.hi-	rm -f Language/Haskell/HsColour.o Language/Haskell/HsColour.hi-	rm -f *.o *.hi-	rm -f $(LIBRARY)-	rm -rf docs
− README
@@ -1,74 +0,0 @@-HsColour: A Haskell source-code colouriser.---------------------------------------------Copyright:  2003-2009, Malcolm Wallace, University of York-Licence:    GPL--Building:-    hmake HsColour-or-    ghc --make HsColour--Usage:-    HsColour [-Ofile]-             [ -tty | -html | -css | -icss | -latex | -mirc ]-             [ -lit | -lit-tex | -anchor  | -partial ]-             [ -nolit          | -noanchor| -nopartial ]-             [file.hs]--The program can colourise a Haskell source file for either terminal-output (option -tty), or HTML 3.2 output with font tags (option -html),-or HTML 4.01 output with CSS (option -css), or XHTML 1.0 output with-inline styling (option -icss) or LaTeX output (option -latex), or IRC-chat client (option -mirc).  The default is for terminal output, which-uses standard ANSI screen codes for the colours.--If no file argument is given, it reads standard input.  Output is-written to the file specified by the -O option, or by default, stdout.--HsColour can add named anchors in HTML or CSS or ICSS (option -anchor) to-top-level definitions in the source file (functions, datatypes,-classes).  This enables you to make links to a specific location in the-generated file with the standard "file.html#anchor" notation.--If an input file is literate, that is, it has a suffix ".lhs" or ".ly"-or ".lx", then only the code fragments will be colourised, leaving the-commentary untouched.  You can explicitly override this-filename-guessing of literate status: use the -lit option to-force literate colouring, or -nolit to force all text to be-colourised.  (-lit-tex is an obsolete synonym for -lit)--For more advanced usage, if you are building documents in parts, and you-want to embed several individually colourised fragments into a larger-document, use the <tt>-partial</tt> option with each fragment, to omit-the HTML DOCTYPE header, CSS stylesheet link, or LaTeX prologue.--You can configure the colours for different lexical entities by-editing a configuration file called .hscolour in the current directory.-(An example is included in the distribution.)  The file format is as-a simple Haskell value of type ColourPrefs, constructed using named-fields, as follows:--  data ColourPrefs = ColourPrefs-    { keyword, keyglyph, layout, comment-    , conid, varid, conop, varop-    , string, char, number, cpp-    , selection, variantselection :: [Highlight]-    }--  data Colour = Black | Red | Green | Yellow | Blue | Magenta | Cyan | White--  data Highlight =-      Normal-    | Bold-    | Dim-    | Underscore-    | Blink-    | ReverseVideo-    | Concealed-    | Foreground Colour-    | Background Colour-    | Italic--For CSS output, it is sufficient to edit the hscolour.css file, also in-the distribution.-
+ data/rgb24-example-.hscolour view
@@ -0,0 +1,25 @@+ColourPrefs+  { keyword          = [Foreground (Rgb  255 255 150 ), Background (Rgb  0 0 0)]+  , keyglyph         = [Foreground (Rgb  255 255 150 ), Background (Rgb  0 0 0)]+  , layout           = [Foreground (Rgb  150 255 150 ), Background (Rgb  0 0 0         ), Bold]+  , comment          = [Foreground (Rgb  0 0 0       ), Background (Rgb  150 255 150   ), Italic]+  , conid            = [Foreground (Rgb  150 150 255 ), Background (Rgb  0 0 0         ), Bold]+  , varid            = [Foreground (Rgb  150 150 255 ), Background (Rgb  0 0 0)]+  , conop            = [Foreground (Rgb  255 150 150 ), Background (Rgb  0 0 0         ), Bold]+  , varop            = [Foreground (Rgb  255 150 150 ), Background (Rgb  0 0 0)]+  , string           = [Foreground (Rgb  0 0 0       ), Background (Rgb  150 150 255)]+  , char             = [Foreground (Rgb  0 0 0       ), Background (Rgb  150 150 255)]+  , number           = [Foreground (Rgb  255 255 150 ), Background (Rgb  0 0 0)]+  , cpp              = [Foreground (Rgb  0 0 0       ), Background (Rgb  255 150 150)]+  , selection        = [Foreground (Rgb  150 255 150 ), Background (Rgb  0 0 0)]+  , variantselection = [Dim, Foreground Red, Underscore]+  , definition       = [Foreground (Rgb  150 255 150 ), Background (Rgb  0 0 0)]+  }++++-- This example configuration file would take effect if you moved it to ~/.hscolour.++-- Note: Comments currently have to come *after* the above block++-- vim: ft=haskell
− docs/hscolour/Language-Haskell-HsColour-ANSI.html
@@ -1,810 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->Language.Haskell.HsColour.ANSI</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-><SCRIPT SRC="haddock.js" TYPE="text/javascript"-></SCRIPT-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="Language/Haskell/HsColour/ANSI.html"->Source code</A-></TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="modulebar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><FONT SIZE="6"->Language.Haskell.HsColour.ANSI</FONT-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Description</TD-></TR-><TR-><TD CLASS="doc"->Partially taken from Hugs AnsiScreen.hs library:-</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Synopsis</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><A HREF="#v%3Ahighlight"->highlight</A-> :: [<A HREF="Language-Haskell-HsColour-ANSI.html#t%3AHighlight"->Highlight</A->] -&gt; String -&gt; String</TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><A HREF="#v%3Acls"->cls</A-> :: String</TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><A HREF="#v%3Agoto"->goto</A-> :: Int -&gt; Int -&gt; String</TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><SPAN CLASS="keyword"->data</SPAN-> <A HREF="#t%3AHighlight"->Highlight</A-> </TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"->= <A HREF="#v%3ANormal"->Normal</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ABold"->Bold</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ADim"->Dim</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AUnderscore"->Underscore</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ABlink"->Blink</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AReverseVideo"->ReverseVideo</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AConcealed"->Concealed</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AForeground"->Foreground</A-> <A HREF="Language-Haskell-HsColour-ANSI.html#t%3AColour"->Colour</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ABackground"->Background</A-> <A HREF="Language-Haskell-HsColour-ANSI.html#t%3AColour"->Colour</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AItalic"->Italic</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><SPAN CLASS="keyword"->data</SPAN-> <A HREF="#t%3AColour"->Colour</A-> </TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"->= <A HREF="#v%3ABlack"->Black</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ARed"->Red</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AGreen"->Green</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AYellow"->Yellow</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ABlue"->Blue</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AMagenta"->Magenta</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ACyan"->Cyan</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AWhite"->White</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><A HREF="#v%3AcolourCycle"->colourCycle</A-> :: [<A HREF="Language-Haskell-HsColour-ANSI.html#t%3AColour"->Colour</A->]</TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><A HREF="#v%3AenableScrollRegion"->enableScrollRegion</A-> :: Int -&gt; Int -&gt; String</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Documentation</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3Ahighlight"-></A-><B->highlight</B-> :: [<A HREF="Language-Haskell-HsColour-ANSI.html#t%3AHighlight"->Highlight</A->] -&gt; String -&gt; String</TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/ANSI.html#highlight"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="doc"->Make the given string appear with all of the listed highlights-</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3Acls"-></A-><B->cls</B-> :: String</TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/ANSI.html#cls"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="doc"->Clear the screen.-</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3Agoto"-></A-><B->goto</B-> :: Int -&gt; Int -&gt; String</TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/ANSI.html#goto"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="doc"->Move the screen cursor to the given position.-</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><SPAN CLASS="keyword"->data</SPAN-> <A NAME="t%3AHighlight"-></A-><B->Highlight</B-> </TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/ANSI.html#Highlight"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="ndoc"->Types of highlighting supported by ANSI codes (and some extra styles).-</TD-></TR-><TR-><TD CLASS="section4"->Constructors</TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="arg"-><A NAME="v%3ANormal"-></A-><B->Normal</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ABold"-></A-><B->Bold</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ADim"-></A-><B->Dim</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AUnderscore"-></A-><B->Underscore</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ABlink"-></A-><B->Blink</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AReverseVideo"-></A-><B->ReverseVideo</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AConcealed"-></A-><B->Concealed</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AForeground"-></A-><B->Foreground</B-> <A HREF="Language-Haskell-HsColour-ANSI.html#t%3AColour"->Colour</A-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ABackground"-></A-><B->Background</B-> <A HREF="Language-Haskell-HsColour-ANSI.html#t%3AColour"->Colour</A-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AItalic"-></A-><B->Italic</B-></TD-><TD CLASS="rdoc"-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section4"-><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:Highlight')" ALT="show/hide"-> Instances</TD-></TR-><TR-><TD CLASS="body"-><DIV ID="i:Highlight" STYLE="display:block;"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="decl"->Enum <A HREF="Language-Haskell-HsColour-ANSI.html#t%3AHighlight"->Highlight</A-></TD-></TR-><TR-><TD CLASS="decl"->Eq <A HREF="Language-Haskell-HsColour-ANSI.html#t%3AHighlight"->Highlight</A-></TD-></TR-><TR-><TD CLASS="decl"->Read <A HREF="Language-Haskell-HsColour-ANSI.html#t%3AHighlight"->Highlight</A-></TD-></TR-><TR-><TD CLASS="decl"->Show <A HREF="Language-Haskell-HsColour-ANSI.html#t%3AHighlight"->Highlight</A-></TD-></TR-></TABLE-></DIV-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><SPAN CLASS="keyword"->data</SPAN-> <A NAME="t%3AColour"-></A-><B->Colour</B-> </TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/ANSI.html#Colour"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="ndoc"->Colours supported by ANSI codes.-</TD-></TR-><TR-><TD CLASS="section4"->Constructors</TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="arg"-><A NAME="v%3ABlack"-></A-><B->Black</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ARed"-></A-><B->Red</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AGreen"-></A-><B->Green</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AYellow"-></A-><B->Yellow</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ABlue"-></A-><B->Blue</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AMagenta"-></A-><B->Magenta</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ACyan"-></A-><B->Cyan</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AWhite"-></A-><B->White</B-></TD-><TD CLASS="rdoc"-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section4"-><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:Colour')" ALT="show/hide"-> Instances</TD-></TR-><TR-><TD CLASS="body"-><DIV ID="i:Colour" STYLE="display:block;"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="decl"->Enum <A HREF="Language-Haskell-HsColour-ANSI.html#t%3AColour"->Colour</A-></TD-></TR-><TR-><TD CLASS="decl"->Eq <A HREF="Language-Haskell-HsColour-ANSI.html#t%3AColour"->Colour</A-></TD-></TR-><TR-><TD CLASS="decl"->Read <A HREF="Language-Haskell-HsColour-ANSI.html#t%3AColour"->Colour</A-></TD-></TR-><TR-><TD CLASS="decl"->Show <A HREF="Language-Haskell-HsColour-ANSI.html#t%3AColour"->Colour</A-></TD-></TR-></TABLE-></DIV-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3AcolourCycle"-></A-><B->colourCycle</B-> :: [<A HREF="Language-Haskell-HsColour-ANSI.html#t%3AColour"->Colour</A->]</TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/ANSI.html#colourCycle"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="doc"->An infinite supply of colours.-</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3AenableScrollRegion"-></A-><B->enableScrollRegion</B-> :: Int -&gt; Int -&gt; String</TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/ANSI.html#enableScrollRegion"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="doc"->Scrolling-</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="botbar"->Produced by <A HREF="http://www.haskell.org/haddock/"->Haddock</A-> version 0.8</TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/Language-Haskell-HsColour-Anchors.html
@@ -1,155 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->Language.Haskell.HsColour.Anchors</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-><SCRIPT SRC="haddock.js" TYPE="text/javascript"-></SCRIPT-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="Language/Haskell/HsColour/Anchors.html"->Source code</A-></TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="modulebar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><FONT SIZE="6"->Language.Haskell.HsColour.Anchors</FONT-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Synopsis</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><A HREF="#v%3AinsertAnchors"->insertAnchors</A-> :: [(<A HREF="Language-Haskell-HsColour-Classify.html#t%3ATokenType"->TokenType</A->, String)] -&gt; [Either Anchor (<A HREF="Language-Haskell-HsColour-Classify.html#t%3ATokenType"->TokenType</A->, String)]</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Documentation</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3AinsertAnchors"-></A-><B->insertAnchors</B-> :: [(<A HREF="Language-Haskell-HsColour-Classify.html#t%3ATokenType"->TokenType</A->, String)] -&gt; [Either Anchor (<A HREF="Language-Haskell-HsColour-Classify.html#t%3ATokenType"->TokenType</A->, String)]</TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/Anchors.html#insertAnchors"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="doc"-><TT-><A HREF="Language-Haskell-HsColour-Anchors.html#v%3AinsertAnchors"->insertAnchors</A-></TT-> places an anchor marker in the token stream before the-   first defining occurrence of any identifier.  Here, <EM->before</EM-> means-   immediately preceding its type signature, or preceding a (haddock)-   comment that comes immediately before the type signature, or failing-   either of those, before the first equation.-</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="botbar"->Produced by <A HREF="http://www.haskell.org/haddock/"->Haddock</A-> version 0.8</TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/Language-Haskell-HsColour-CSS.html
@@ -1,206 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->Language.Haskell.HsColour.CSS</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-><SCRIPT SRC="haddock.js" TYPE="text/javascript"-></SCRIPT-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="Language/Haskell/HsColour/CSS.html"->Source code</A-></TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="modulebar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><FONT SIZE="6"->Language.Haskell.HsColour.CSS</FONT-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Description</TD-></TR-><TR-><TD CLASS="doc"->Formats Haskell source code as HTML with CSS.-</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Synopsis</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><A HREF="#v%3Ahscolour"->hscolour</A-> :: Bool -&gt; String -&gt; String</TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><A HREF="#v%3Atop%27n%27tail"->top'n'tail</A-> :: String -&gt; String -&gt; String</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Documentation</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3Ahscolour"-></A-><B->hscolour</B-></TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/CSS.html#hscolour"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="arg"->:: Bool</TD-><TD CLASS="rdoc"->Whether to include anchors.-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; String</TD-><TD CLASS="rdoc"->Haskell source code.-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; String</TD-><TD CLASS="rdoc"->An HTML document containing the coloured -   Haskell source code.-</TD-></TR-><TR-><TD CLASS="ndoc" COLSPAN="2"->Formats Haskell source code as a complete HTML document with CSS.-</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3Atop%27n%27tail"-></A-><B->top'n'tail</B-> :: String -&gt; String -&gt; String</TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/CSS.html#top%27n%27tail"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="botbar"->Produced by <A HREF="http://www.haskell.org/haddock/"->Haddock</A-> version 0.8</TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/Language-Haskell-HsColour-Classify.html
@@ -1,476 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->Language.Haskell.HsColour.Classify</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-><SCRIPT SRC="haddock.js" TYPE="text/javascript"-></SCRIPT-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="Language/Haskell/HsColour/Classify.html"->Source code</A-></TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="modulebar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><FONT SIZE="6"->Language.Haskell.HsColour.Classify</FONT-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Synopsis</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><SPAN CLASS="keyword"->data</SPAN-> <A HREF="#t%3ATokenType"->TokenType</A-> </TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"->= <A HREF="#v%3ASpace"->Space</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AKeyword"->Keyword</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AKeyglyph"->Keyglyph</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ALayout"->Layout</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AComment"->Comment</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AConid"->Conid</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AVarid"->Varid</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AConop"->Conop</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AVarop"->Varop</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AString"->String</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AChar"->Char</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ANumber"->Number</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ACpp"->Cpp</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AError"->Error</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ADefinition"->Definition</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><A HREF="#v%3Atokenise"->tokenise</A-> :: String -&gt; [(<A HREF="Language-Haskell-HsColour-Classify.html#t%3ATokenType"->TokenType</A->, String)]</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Documentation</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><SPAN CLASS="keyword"->data</SPAN-> <A NAME="t%3ATokenType"-></A-><B->TokenType</B-> </TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/Classify.html#TokenType"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="ndoc"->Classification of tokens as lexical entities-</TD-></TR-><TR-><TD CLASS="section4"->Constructors</TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="arg"-><A NAME="v%3ASpace"-></A-><B->Space</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AKeyword"-></A-><B->Keyword</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AKeyglyph"-></A-><B->Keyglyph</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ALayout"-></A-><B->Layout</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AComment"-></A-><B->Comment</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AConid"-></A-><B->Conid</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AVarid"-></A-><B->Varid</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AConop"-></A-><B->Conop</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AVarop"-></A-><B->Varop</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AString"-></A-><B->String</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AChar"-></A-><B->Char</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ANumber"-></A-><B->Number</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ACpp"-></A-><B->Cpp</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AError"-></A-><B->Error</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ADefinition"-></A-><B->Definition</B-></TD-><TD CLASS="rdoc"-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section4"-><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:TokenType')" ALT="show/hide"-> Instances</TD-></TR-><TR-><TD CLASS="body"-><DIV ID="i:TokenType" STYLE="display:block;"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="decl"->Eq <A HREF="Language-Haskell-HsColour-Classify.html#t%3ATokenType"->TokenType</A-></TD-></TR-><TR-><TD CLASS="decl"->Show <A HREF="Language-Haskell-HsColour-Classify.html#t%3ATokenType"->TokenType</A-></TD-></TR-></TABLE-></DIV-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3Atokenise"-></A-><B->tokenise</B-> :: String -&gt; [(<A HREF="Language-Haskell-HsColour-Classify.html#t%3ATokenType"->TokenType</A->, String)]</TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/Classify.html#tokenise"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="doc"->Lex Haskell source code into an annotated token stream, without-   discarding any characters or layout.-</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="botbar"->Produced by <A HREF="http://www.haskell.org/haddock/"->Haddock</A-> version 0.8</TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/Language-Haskell-HsColour-ColourHighlight.html
@@ -1,608 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->Language.Haskell.HsColour.ColourHighlight</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-><SCRIPT SRC="haddock.js" TYPE="text/javascript"-></SCRIPT-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="Language/Haskell/HsColour/ColourHighlight.html"->Source code</A-></TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="modulebar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><FONT SIZE="6"->Language.Haskell.HsColour.ColourHighlight</FONT-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Synopsis</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><SPAN CLASS="keyword"->data</SPAN-> <A HREF="#t%3AColour"->Colour</A-> </TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"->= <A HREF="#v%3ABlack"->Black</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ARed"->Red</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AGreen"->Green</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AYellow"->Yellow</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ABlue"->Blue</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AMagenta"->Magenta</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ACyan"->Cyan</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AWhite"->White</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><SPAN CLASS="keyword"->data</SPAN-> <A HREF="#t%3AHighlight"->Highlight</A-> </TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"->= <A HREF="#v%3ANormal"->Normal</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ABold"->Bold</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ADim"->Dim</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AUnderscore"->Underscore</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ABlink"->Blink</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AReverseVideo"->ReverseVideo</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AConcealed"->Concealed</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AForeground"->Foreground</A-> <A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AColour"->Colour</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ABackground"->Background</A-> <A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AColour"->Colour</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AItalic"->Italic</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Documentation</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><SPAN CLASS="keyword"->data</SPAN-> <A NAME="t%3AColour"-></A-><B->Colour</B-> </TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/ColourHighlight.html#Colour"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="ndoc"->Colours supported by ANSI codes.-</TD-></TR-><TR-><TD CLASS="section4"->Constructors</TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="arg"-><A NAME="v%3ABlack"-></A-><B->Black</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ARed"-></A-><B->Red</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AGreen"-></A-><B->Green</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AYellow"-></A-><B->Yellow</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ABlue"-></A-><B->Blue</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AMagenta"-></A-><B->Magenta</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ACyan"-></A-><B->Cyan</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AWhite"-></A-><B->White</B-></TD-><TD CLASS="rdoc"-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section4"-><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:Colour')" ALT="show/hide"-> Instances</TD-></TR-><TR-><TD CLASS="body"-><DIV ID="i:Colour" STYLE="display:block;"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="decl"->Enum <A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AColour"->Colour</A-></TD-></TR-><TR-><TD CLASS="decl"->Eq <A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AColour"->Colour</A-></TD-></TR-><TR-><TD CLASS="decl"->Read <A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AColour"->Colour</A-></TD-></TR-><TR-><TD CLASS="decl"->Show <A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AColour"->Colour</A-></TD-></TR-></TABLE-></DIV-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><SPAN CLASS="keyword"->data</SPAN-> <A NAME="t%3AHighlight"-></A-><B->Highlight</B-> </TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/ColourHighlight.html#Highlight"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="ndoc"->Types of highlighting supported by ANSI codes (and some extra styles).-</TD-></TR-><TR-><TD CLASS="section4"->Constructors</TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="arg"-><A NAME="v%3ANormal"-></A-><B->Normal</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ABold"-></A-><B->Bold</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ADim"-></A-><B->Dim</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AUnderscore"-></A-><B->Underscore</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ABlink"-></A-><B->Blink</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AReverseVideo"-></A-><B->ReverseVideo</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AConcealed"-></A-><B->Concealed</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AForeground"-></A-><B->Foreground</B-> <A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AColour"->Colour</A-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ABackground"-></A-><B->Background</B-> <A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AColour"->Colour</A-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AItalic"-></A-><B->Italic</B-></TD-><TD CLASS="rdoc"-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section4"-><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:Highlight')" ALT="show/hide"-> Instances</TD-></TR-><TR-><TD CLASS="body"-><DIV ID="i:Highlight" STYLE="display:block;"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="decl"->Enum <A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AHighlight"->Highlight</A-></TD-></TR-><TR-><TD CLASS="decl"->Eq <A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AHighlight"->Highlight</A-></TD-></TR-><TR-><TD CLASS="decl"->Read <A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AHighlight"->Highlight</A-></TD-></TR-><TR-><TD CLASS="decl"->Show <A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AHighlight"->Highlight</A-></TD-></TR-></TABLE-></DIV-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="botbar"->Produced by <A HREF="http://www.haskell.org/haddock/"->Haddock</A-> version 0.8</TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/Language-Haskell-HsColour-Colourise.html
@@ -1,423 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->Language.Haskell.HsColour.Colourise</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-><SCRIPT SRC="haddock.js" TYPE="text/javascript"-></SCRIPT-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="Language/Haskell/HsColour/Colourise.html"->Source code</A-></TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="modulebar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><FONT SIZE="6"->Language.Haskell.HsColour.Colourise</FONT-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Synopsis</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"->module <A HREF="Language-Haskell-HsColour-ColourHighlight.html"->Language.Haskell.HsColour.ColourHighlight</A-></TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><SPAN CLASS="keyword"->data</SPAN-> <A HREF="#t%3AColourPrefs"->ColourPrefs</A->  = <A HREF="#v%3AColourPrefs"->ColourPrefs</A-> {<TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="recfield"-><A HREF="#v%3Akeyword"->keyword</A->, <A HREF="#v%3Akeyglyph"->keyglyph</A->, <A HREF="#v%3Alayout"->layout</A->, <A HREF="#v%3Acomment"->comment</A->, <A HREF="#v%3Aconid"->conid</A->, <A HREF="#v%3Avarid"->varid</A->, <A HREF="#v%3Aconop"->conop</A->, <A HREF="#v%3Avarop"->varop</A->, <A HREF="#v%3Astring"->string</A->, <A HREF="#v%3Achar"->char</A->, <A HREF="#v%3Anumber"->number</A->, <A HREF="#v%3Acpp"->cpp</A->, <A HREF="#v%3Aselection"->selection</A->, <A HREF="#v%3Avariantselection"->variantselection</A->, <A HREF="#v%3Adefinition"->definition</A-> :: [<A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AHighlight"->Highlight</A->]</TD-></TR-></TABLE->}</TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><A HREF="#v%3AreadColourPrefs"->readColourPrefs</A-> :: IO <A HREF="Language-Haskell-HsColour-Colourise.html#t%3AColourPrefs"->ColourPrefs</A-></TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><A HREF="#v%3Acolourise"->colourise</A-> :: <A HREF="Language-Haskell-HsColour-Colourise.html#t%3AColourPrefs"->ColourPrefs</A-> -&gt; <A HREF="Language-Haskell-HsColour-Classify.html#t%3ATokenType"->TokenType</A-> -&gt; [<A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AHighlight"->Highlight</A->]</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Documentation</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="decl"->module <A HREF="Language-Haskell-HsColour-ColourHighlight.html"->Language.Haskell.HsColour.ColourHighlight</A-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><SPAN CLASS="keyword"->data</SPAN-> <A NAME="t%3AColourPrefs"-></A-><B->ColourPrefs</B-> </TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/Colourise.html#ColourPrefs"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="ndoc"->Colour preferences.-</TD-></TR-><TR-><TD CLASS="section4"->Constructors</TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="5" CELLPADDING="0"-><TR-><TD CLASS="arg"-><A NAME="v%3AColourPrefs"-></A-><B->ColourPrefs</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="body" COLSPAN="2"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="arg"-><A NAME="v%3Akeyword"-></A-><B->keyword</B->, <A NAME="v%3Akeyglyph"-></A-><B->keyglyph</B->, <A NAME="v%3Alayout"-></A-><B->layout</B->, <A NAME="v%3Acomment"-></A-><B->comment</B->, <A NAME="v%3Aconid"-></A-><B->conid</B->, <A NAME="v%3Avarid"-></A-><B->varid</B->, <A NAME="v%3Aconop"-></A-><B->conop</B->, <A NAME="v%3Avarop"-></A-><B->varop</B->, <A NAME="v%3Astring"-></A-><B->string</B->, <A NAME="v%3Achar"-></A-><B->char</B->, <A NAME="v%3Anumber"-></A-><B->number</B->, <A NAME="v%3Acpp"-></A-><B->cpp</B->, <A NAME="v%3Aselection"-></A-><B->selection</B->, <A NAME="v%3Avariantselection"-></A-><B->variantselection</B->, <A NAME="v%3Adefinition"-></A-><B->definition</B-> :: [<A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AHighlight"->Highlight</A->]</TD-><TD CLASS="rdoc"-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section4"-><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:ColourPrefs')" ALT="show/hide"-> Instances</TD-></TR-><TR-><TD CLASS="body"-><DIV ID="i:ColourPrefs" STYLE="display:block;"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="decl"->Eq <A HREF="Language-Haskell-HsColour-Colourise.html#t%3AColourPrefs"->ColourPrefs</A-></TD-></TR-><TR-><TD CLASS="decl"->Read <A HREF="Language-Haskell-HsColour-Colourise.html#t%3AColourPrefs"->ColourPrefs</A-></TD-></TR-><TR-><TD CLASS="decl"->Show <A HREF="Language-Haskell-HsColour-Colourise.html#t%3AColourPrefs"->ColourPrefs</A-></TD-></TR-></TABLE-></DIV-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3AreadColourPrefs"-></A-><B->readColourPrefs</B-> :: IO <A HREF="Language-Haskell-HsColour-Colourise.html#t%3AColourPrefs"->ColourPrefs</A-></TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/Colourise.html#readColourPrefs"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="doc"->Read colour preferences from .hscolour file in the current directory, or failing that,-   from $HOME/.hscolour, and failing that, returns a default set of prefs.-</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3Acolourise"-></A-><B->colourise</B-> :: <A HREF="Language-Haskell-HsColour-Colourise.html#t%3AColourPrefs"->ColourPrefs</A-> -&gt; <A HREF="Language-Haskell-HsColour-Classify.html#t%3ATokenType"->TokenType</A-> -&gt; [<A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AHighlight"->Highlight</A->]</TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/Colourise.html#colourise"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="doc"->Convert token classification to colour highlights.-</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="botbar"->Produced by <A HREF="http://www.haskell.org/haddock/"->Haddock</A-> version 0.8</TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/Language-Haskell-HsColour-General.html
@@ -1,134 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->Language.Haskell.HsColour.General</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-><SCRIPT SRC="haddock.js" TYPE="text/javascript"-></SCRIPT-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="Language/Haskell/HsColour/General.html"->Source code</A-></TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="modulebar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><FONT SIZE="6"->Language.Haskell.HsColour.General</FONT-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Documentation</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3AdropLast"-></A-><B->dropLast</B-> :: Eq a =&gt; a -&gt; [a] -&gt; [a]</TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/General.html#dropLast"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3AdropFirst"-></A-><B->dropFirst</B-> :: Eq a =&gt; a -&gt; [a] -&gt; [a]</TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/General.html#dropFirst"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="botbar"->Produced by <A HREF="http://www.haskell.org/haddock/"->Haddock</A-> version 0.8</TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/Language-Haskell-HsColour-HTML.html
@@ -1,348 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->Language.Haskell.HsColour.HTML</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-><SCRIPT SRC="haddock.js" TYPE="text/javascript"-></SCRIPT-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="Language/Haskell/HsColour/HTML.html"->Source code</A-></TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="modulebar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><FONT SIZE="6"->Language.Haskell.HsColour.HTML</FONT-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="section4"-><B->Contents</B-></TD-></TR-><TR-><TD-><DL-><DT-><A HREF="#1"->Internals-</A-></DT-></DL-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Description</TD-></TR-><TR-><TD CLASS="doc"->Formats Haskell source code using HTML with font tags.-</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Synopsis</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><A HREF="#v%3Ahscolour"->hscolour</A-> :: <A HREF="Language-Haskell-HsColour-Colourise.html#t%3AColourPrefs"->ColourPrefs</A-> -&gt; Bool -&gt; String -&gt; String</TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><A HREF="#v%3Atop%27n%27tail"->top'n'tail</A-> :: String -&gt; String -&gt; String</TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><A HREF="#v%3ArenderAnchors"->renderAnchors</A-> :: ((<A HREF="Language-Haskell-HsColour-Classify.html#t%3ATokenType"->TokenType</A->, String) -&gt; String) -&gt; Either String (<A HREF="Language-Haskell-HsColour-Classify.html#t%3ATokenType"->TokenType</A->, String) -&gt; String</TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><A HREF="#v%3ArenderComment"->renderComment</A-> :: String -&gt; String</TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><A HREF="#v%3ArenderNewLinesAnchors"->renderNewLinesAnchors</A-> :: String -&gt; String</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Documentation</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3Ahscolour"-></A-><B->hscolour</B-></TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/HTML.html#hscolour"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="arg"->:: <A HREF="Language-Haskell-HsColour-Colourise.html#t%3AColourPrefs"->ColourPrefs</A-></TD-><TD CLASS="rdoc"->Colour preferences.-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; Bool</TD-><TD CLASS="rdoc"->Whether to include anchors.-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; String</TD-><TD CLASS="rdoc"->Haskell source code.-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; String</TD-><TD CLASS="rdoc"->Coloured Haskell source code.-</TD-></TR-><TR-><TD CLASS="ndoc" COLSPAN="2"->Formats Haskell source code using HTML with font tags.-</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3Atop%27n%27tail"-></A-><B->top'n'tail</B-> :: String -&gt; String -&gt; String</TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/HTML.html#top%27n%27tail"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"-><A NAME="1"->Internals-</A-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3ArenderAnchors"-></A-><B->renderAnchors</B-> :: ((<A HREF="Language-Haskell-HsColour-Classify.html#t%3ATokenType"->TokenType</A->, String) -&gt; String) -&gt; Either String (<A HREF="Language-Haskell-HsColour-Classify.html#t%3ATokenType"->TokenType</A->, String) -&gt; String</TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/HTML.html#renderAnchors"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3ArenderComment"-></A-><B->renderComment</B-> :: String -&gt; String</TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/HTML.html#renderComment"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3ArenderNewLinesAnchors"-></A-><B->renderNewLinesAnchors</B-> :: String -&gt; String</TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/HTML.html#renderNewLinesAnchors"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="botbar"->Produced by <A HREF="http://www.haskell.org/haddock/"->Haddock</A-> version 0.8</TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/Language-Haskell-HsColour-InlineCSS.html
@@ -1,217 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->Language.Haskell.HsColour.InlineCSS</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-><SCRIPT SRC="haddock.js" TYPE="text/javascript"-></SCRIPT-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="Language/Haskell/HsColour/InlineCSS.html"->Source code</A-></TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="modulebar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><FONT SIZE="6"->Language.Haskell.HsColour.InlineCSS</FONT-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Description</TD-></TR-><TR-><TD CLASS="doc"->Formats Haskell source code as HTML with inline CSS.-</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Synopsis</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><A HREF="#v%3Ahscolour"->hscolour</A-> :: <A HREF="Language-Haskell-HsColour-Colourise.html#t%3AColourPrefs"->ColourPrefs</A-> -&gt; Bool -&gt; String -&gt; String</TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><A HREF="#v%3Atop%27n%27tail"->top'n'tail</A-> :: String -&gt; String -&gt; String</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Documentation</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3Ahscolour"-></A-><B->hscolour</B-></TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/InlineCSS.html#hscolour"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="arg"->:: <A HREF="Language-Haskell-HsColour-Colourise.html#t%3AColourPrefs"->ColourPrefs</A-></TD-><TD CLASS="rdoc"->Preferences for styling.-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; Bool</TD-><TD CLASS="rdoc"->Whether to include anchors.-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; String</TD-><TD CLASS="rdoc"->Haskell source code.-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; String</TD-><TD CLASS="rdoc"->An HTML document containing the coloured -   Haskell source code.-</TD-></TR-><TR-><TD CLASS="ndoc" COLSPAN="2"->Formats Haskell source code as a complete HTML document with inline styling-</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3Atop%27n%27tail"-></A-><B->top'n'tail</B-> :: String -&gt; String -&gt; String</TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/InlineCSS.html#top%27n%27tail"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="botbar"->Produced by <A HREF="http://www.haskell.org/haddock/"->Haddock</A-> version 0.8</TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/Language-Haskell-HsColour-LaTeX.html
@@ -1,210 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->Language.Haskell.HsColour.LaTeX</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-><SCRIPT SRC="haddock.js" TYPE="text/javascript"-></SCRIPT-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="Language/Haskell/HsColour/LaTeX.html"->Source code</A-></TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="modulebar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><FONT SIZE="6"->Language.Haskell.HsColour.LaTeX</FONT-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Description</TD-></TR-><TR-><TD CLASS="doc"->Formats Haskell source code using LaTeX macros.-</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Synopsis</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><A HREF="#v%3Ahscolour"->hscolour</A-> :: <A HREF="Language-Haskell-HsColour-Colourise.html#t%3AColourPrefs"->ColourPrefs</A-> -&gt; String -&gt; String</TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><A HREF="#v%3Atop%27n%27tail"->top'n'tail</A-> :: String -&gt; String -&gt; String</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Documentation</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3Ahscolour"-></A-><B->hscolour</B-></TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/LaTeX.html#hscolour"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="arg"->:: <A HREF="Language-Haskell-HsColour-Colourise.html#t%3AColourPrefs"->ColourPrefs</A-></TD-><TD CLASS="rdoc"->Colour preferences.-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; String</TD-><TD CLASS="rdoc"->Haskell source code.-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; String</TD-><TD CLASS="rdoc"->A LaTeX document/fragment containing the coloured -   Haskell source code.-</TD-></TR-><TR-><TD CLASS="ndoc" COLSPAN="2"->Formats Haskell source code as a complete LaTeX document.-</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3Atop%27n%27tail"-></A-><B->top'n'tail</B-> :: String -&gt; String -&gt; String</TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/LaTeX.html#top%27n%27tail"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="botbar"->Produced by <A HREF="http://www.haskell.org/haddock/"->Haddock</A-> version 0.8</TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/Language-Haskell-HsColour-MIRC.html
@@ -1,178 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->Language.Haskell.HsColour.MIRC</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-><SCRIPT SRC="haddock.js" TYPE="text/javascript"-></SCRIPT-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="Language/Haskell/HsColour/MIRC.html"->Source code</A-></TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="modulebar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><FONT SIZE="6"->Language.Haskell.HsColour.MIRC</FONT-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Description</TD-></TR-><TR-><TD CLASS="doc"->Formats Haskell source code using mIRC codes.-   (see http://irssi.org/documentation/formats)-</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Synopsis</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><A HREF="#v%3Ahscolour"->hscolour</A-> :: <A HREF="Language-Haskell-HsColour-Colourise.html#t%3AColourPrefs"->ColourPrefs</A-> -&gt; String -&gt; String</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Documentation</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3Ahscolour"-></A-><B->hscolour</B-></TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/MIRC.html#hscolour"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="arg"->:: <A HREF="Language-Haskell-HsColour-Colourise.html#t%3AColourPrefs"->ColourPrefs</A-></TD-><TD CLASS="rdoc"->Colour preferences.-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; String</TD-><TD CLASS="rdoc"->Haskell source code.-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; String</TD-><TD CLASS="rdoc"->Coloured Haskell source code.-</TD-></TR-><TR-><TD CLASS="ndoc" COLSPAN="2"->Formats Haskell source code using mIRC codes.-</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="botbar"->Produced by <A HREF="http://www.haskell.org/haddock/"->Haddock</A-> version 0.8</TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/Language-Haskell-HsColour-Options.html
@@ -1,541 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->Language.Haskell.HsColour.Options</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-><SCRIPT SRC="haddock.js" TYPE="text/javascript"-></SCRIPT-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="Language/Haskell/HsColour/Options.html"->Source code</A-></TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="modulebar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><FONT SIZE="6"->Language.Haskell.HsColour.Options</FONT-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Synopsis</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><SPAN CLASS="keyword"->data</SPAN-> <A HREF="#t%3AOption"->Option</A-> </TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"->= <A HREF="#v%3AHelp"->Help</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AVersion"->Version</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AInformation"->Information</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AFormat"->Format</A-> <A HREF="Language-Haskell-HsColour-Options.html#t%3AOutput"->Output</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ALHS"->LHS</A-> Bool</TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AAnchors"->Anchors</A-> Bool</TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3APartial"->Partial</A-> Bool</TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AInput"->Input</A-> FilePath</TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AOutput"->Output</A-> FilePath</TD-></TR-></TABLE-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><SPAN CLASS="keyword"->data</SPAN-> <A HREF="#t%3AOutput"->Output</A-> </TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"->= <A HREF="#v%3ATTY"->TTY</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ALaTeX"->LaTeX</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AHTML"->HTML</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ACSS"->CSS</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AICSS"->ICSS</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AMIRC"->MIRC</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Documentation</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><SPAN CLASS="keyword"->data</SPAN-> <A NAME="t%3AOption"-></A-><B->Option</B-> </TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/Options.html#Option"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="ndoc"->Command-line options-</TD-></TR-><TR-><TD CLASS="section4"->Constructors</TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="arg"-><A NAME="v%3AHelp"-></A-><B->Help</B-></TD-><TD CLASS="rdoc"->print usage message-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AVersion"-></A-><B->Version</B-></TD-><TD CLASS="rdoc"->report version-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AInformation"-></A-><B->Information</B-></TD-><TD CLASS="rdoc"->report auxiliary information, e.g. CSS defaults-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AFormat"-></A-><B->Format</B-> <A HREF="Language-Haskell-HsColour-Options.html#t%3AOutput"->Output</A-></TD-><TD CLASS="rdoc"->what type of output to produce-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ALHS"-></A-><B->LHS</B-> Bool</TD-><TD CLASS="rdoc"->literate input (i.e. multiple embedded fragments)-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AAnchors"-></A-><B->Anchors</B-> Bool</TD-><TD CLASS="rdoc"->whether to add anchors-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3APartial"-></A-><B->Partial</B-> Bool</TD-><TD CLASS="rdoc"->whether to produce a full document or partial-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AInput"-></A-><B->Input</B-> FilePath</TD-><TD CLASS="rdoc"->input source file-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AOutput"-></A-><B->Output</B-> FilePath</TD-><TD CLASS="rdoc"->output source file-</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section4"-><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:Option')" ALT="show/hide"-> Instances</TD-></TR-><TR-><TD CLASS="body"-><DIV ID="i:Option" STYLE="display:block;"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="decl"->Eq <A HREF="Language-Haskell-HsColour-Options.html#t%3AOption"->Option</A-></TD-></TR-></TABLE-></DIV-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><SPAN CLASS="keyword"->data</SPAN-> <A NAME="t%3AOutput"-></A-><B->Output</B-> </TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/Options.html#Output"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="ndoc"->The supported output formats.-</TD-></TR-><TR-><TD CLASS="section4"->Constructors</TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="arg"-><A NAME="v%3ATTY"-></A-><B->TTY</B-></TD-><TD CLASS="rdoc"->ANSI terminal codes-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ALaTeX"-></A-><B->LaTeX</B-></TD-><TD CLASS="rdoc"->TeX macros-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AHTML"-></A-><B->HTML</B-></TD-><TD CLASS="rdoc"->HTML with font tags-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ACSS"-></A-><B->CSS</B-></TD-><TD CLASS="rdoc"->HTML with CSS.-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AICSS"-></A-><B->ICSS</B-></TD-><TD CLASS="rdoc"->HTML with inline CSS.-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AMIRC"-></A-><B->MIRC</B-></TD-><TD CLASS="rdoc"->mIRC chat clients-</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section4"-><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:Output')" ALT="show/hide"-> Instances</TD-></TR-><TR-><TD CLASS="body"-><DIV ID="i:Output" STYLE="display:block;"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="decl"->Eq <A HREF="Language-Haskell-HsColour-Options.html#t%3AOutput"->Output</A-></TD-></TR-><TR-><TD CLASS="decl"->Show <A HREF="Language-Haskell-HsColour-Options.html#t%3AOutput"->Output</A-></TD-></TR-></TABLE-></DIV-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="botbar"->Produced by <A HREF="http://www.haskell.org/haddock/"->Haddock</A-> version 0.8</TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/Language-Haskell-HsColour-Output.html
@@ -1,296 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->Language.Haskell.HsColour.Output</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-><SCRIPT SRC="haddock.js" TYPE="text/javascript"-></SCRIPT-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="Language/Haskell/HsColour/Output.html"->Source code</A-></TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="modulebar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><FONT SIZE="6"->Language.Haskell.HsColour.Output</FONT-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Synopsis</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><SPAN CLASS="keyword"->data</SPAN-> <A HREF="#t%3AOutput"->Output</A-> </TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"->= <A HREF="#v%3ATTY"->TTY</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ALaTeX"->LaTeX</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AHTML"->HTML</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ACSS"->CSS</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AICSS"->ICSS</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AMIRC"->MIRC</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Documentation</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><SPAN CLASS="keyword"->data</SPAN-> <A NAME="t%3AOutput"-></A-><B->Output</B-> </TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/Output.html#Output"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="ndoc"->The supported output formats.-</TD-></TR-><TR-><TD CLASS="section4"->Constructors</TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="arg"-><A NAME="v%3ATTY"-></A-><B->TTY</B-></TD-><TD CLASS="rdoc"->ANSI terminal codes-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ALaTeX"-></A-><B->LaTeX</B-></TD-><TD CLASS="rdoc"->TeX macros-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AHTML"-></A-><B->HTML</B-></TD-><TD CLASS="rdoc"->HTML with font tags-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ACSS"-></A-><B->CSS</B-></TD-><TD CLASS="rdoc"->HTML with CSS.-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AICSS"-></A-><B->ICSS</B-></TD-><TD CLASS="rdoc"->HTML with inline CSS.-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AMIRC"-></A-><B->MIRC</B-></TD-><TD CLASS="rdoc"->mIRC chat clients-</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section4"-><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:Output')" ALT="show/hide"-> Instances</TD-></TR-><TR-><TD CLASS="body"-><DIV ID="i:Output" STYLE="display:block;"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="decl"->Eq <A HREF="Language-Haskell-HsColour-Output.html#t%3AOutput"->Output</A-></TD-></TR-><TR-><TD CLASS="decl"->Show <A HREF="Language-Haskell-HsColour-Output.html#t%3AOutput"->Output</A-></TD-></TR-></TABLE-></DIV-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="botbar"->Produced by <A HREF="http://www.haskell.org/haddock/"->Haddock</A-> version 0.8</TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/Language-Haskell-HsColour-TTY.html
@@ -1,177 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->Language.Haskell.HsColour.TTY</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-><SCRIPT SRC="haddock.js" TYPE="text/javascript"-></SCRIPT-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="Language/Haskell/HsColour/TTY.html"->Source code</A-></TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="modulebar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><FONT SIZE="6"->Language.Haskell.HsColour.TTY</FONT-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Description</TD-></TR-><TR-><TD CLASS="doc"->Highlights Haskell code with ANSI terminal codes.-</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Synopsis</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><A HREF="#v%3Ahscolour"->hscolour</A-> :: <A HREF="Language-Haskell-HsColour-Colourise.html#t%3AColourPrefs"->ColourPrefs</A-> -&gt; String -&gt; String</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Documentation</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3Ahscolour"-></A-><B->hscolour</B-></TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour/TTY.html#hscolour"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="arg"->:: <A HREF="Language-Haskell-HsColour-Colourise.html#t%3AColourPrefs"->ColourPrefs</A-></TD-><TD CLASS="rdoc"->Colour preferences.-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; String</TD-><TD CLASS="rdoc"->Haskell source code.-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; String</TD-><TD CLASS="rdoc"->Coloured Haskell source code.-</TD-></TR-><TR-><TD CLASS="ndoc" COLSPAN="2"->Highlights Haskell code with ANSI terminal codes.-</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="botbar"->Produced by <A HREF="http://www.haskell.org/haddock/"->Haddock</A-> version 0.8</TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/Language-Haskell-HsColour.html
@@ -1,647 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->Language.Haskell.HsColour</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-><SCRIPT SRC="haddock.js" TYPE="text/javascript"-></SCRIPT-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="Language/Haskell/HsColour.html"->Source code</A-></TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="modulebar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><FONT SIZE="6"->Language.Haskell.HsColour</FONT-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Description</TD-></TR-><TR-><TD CLASS="doc"-><P->This is a library which colourises Haskell code.-   It currently has six output formats:-</P-><UL-><LI-> ANSI terminal codes-</LI-><LI-> LaTeX macros-</LI-><LI-> HTML 3.2 with font tags-</LI-><LI-> HTML 4.01 with external CSS.-</LI-><LI-> XHTML 1.0 with internal CSS.-</LI-><LI-> mIRC chat client colour codes.-</LI-></UL-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Synopsis</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"-><SPAN CLASS="keyword"->data</SPAN-> <A HREF="#t%3AOutput"->Output</A-> </TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="decl"->= <A HREF="#v%3ATTY"->TTY</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ALaTeX"->LaTeX</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AHTML"->HTML</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3ACSS"->CSS</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AICSS"->ICSS</A-></TD-></TR-><TR-><TD CLASS="decl"->| <A HREF="#v%3AMIRC"->MIRC</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><SPAN CLASS="keyword"->data</SPAN-> <A HREF="#t%3AColourPrefs"->ColourPrefs</A->  = <A HREF="#v%3AColourPrefs"->ColourPrefs</A-> {<TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="recfield"-><A HREF="#v%3Akeyword"->keyword</A->, <A HREF="#v%3Akeyglyph"->keyglyph</A->, <A HREF="#v%3Alayout"->layout</A->, <A HREF="#v%3Acomment"->comment</A->, <A HREF="#v%3Aconid"->conid</A->, <A HREF="#v%3Avarid"->varid</A->, <A HREF="#v%3Aconop"->conop</A->, <A HREF="#v%3Avarop"->varop</A->, <A HREF="#v%3Astring"->string</A->, <A HREF="#v%3Achar"->char</A->, <A HREF="#v%3Anumber"->number</A->, <A HREF="#v%3Acpp"->cpp</A->, <A HREF="#v%3Aselection"->selection</A->, <A HREF="#v%3Avariantselection"->variantselection</A->, <A HREF="#v%3Adefinition"->definition</A-> :: [<A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AHighlight"->Highlight</A->]</TD-></TR-></TABLE->}</TD-></TR-><TR-><TD CLASS="s8"-></TD-></TR-><TR-><TD CLASS="decl"-><A HREF="#v%3Ahscolour"->hscolour</A-> :: <A HREF="Language-Haskell-HsColour.html#t%3AOutput"->Output</A-> -&gt; <A HREF="Language-Haskell-HsColour.html#t%3AColourPrefs"->ColourPrefs</A-> -&gt; Bool -&gt; Bool -&gt; String -&gt; Bool -&gt; String -&gt; String</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="section1"->Documentation</TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><SPAN CLASS="keyword"->data</SPAN-> <A NAME="t%3AOutput"-></A-><B->Output</B-> </TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour.html#Output"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="ndoc"->The supported output formats.-</TD-></TR-><TR-><TD CLASS="section4"->Constructors</TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="arg"-><A NAME="v%3ATTY"-></A-><B->TTY</B-></TD-><TD CLASS="rdoc"->ANSI terminal codes-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ALaTeX"-></A-><B->LaTeX</B-></TD-><TD CLASS="rdoc"->TeX macros-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AHTML"-></A-><B->HTML</B-></TD-><TD CLASS="rdoc"->HTML with font tags-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3ACSS"-></A-><B->CSS</B-></TD-><TD CLASS="rdoc"->HTML with CSS.-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AICSS"-></A-><B->ICSS</B-></TD-><TD CLASS="rdoc"->HTML with inline CSS.-</TD-></TR-><TR-><TD CLASS="arg"-><A NAME="v%3AMIRC"-></A-><B->MIRC</B-></TD-><TD CLASS="rdoc"->mIRC chat clients-</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section4"-><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:Output')" ALT="show/hide"-> Instances</TD-></TR-><TR-><TD CLASS="body"-><DIV ID="i:Output" STYLE="display:block;"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="decl"->Eq <A HREF="Language-Haskell-HsColour.html#t%3AOutput"->Output</A-></TD-></TR-><TR-><TD CLASS="decl"->Show <A HREF="Language-Haskell-HsColour.html#t%3AOutput"->Output</A-></TD-></TR-></TABLE-></DIV-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><SPAN CLASS="keyword"->data</SPAN-> <A NAME="t%3AColourPrefs"-></A-><B->ColourPrefs</B-> </TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour.html#ColourPrefs"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="ndoc"->Colour preferences.-</TD-></TR-><TR-><TD CLASS="section4"->Constructors</TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="5" CELLPADDING="0"-><TR-><TD CLASS="arg"-><A NAME="v%3AColourPrefs"-></A-><B->ColourPrefs</B-></TD-><TD CLASS="rdoc"-></TD-></TR-><TR-><TD CLASS="body" COLSPAN="2"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="arg"-><A NAME="v%3Akeyword"-></A-><B->keyword</B->, <A NAME="v%3Akeyglyph"-></A-><B->keyglyph</B->, <A NAME="v%3Alayout"-></A-><B->layout</B->, <A NAME="v%3Acomment"-></A-><B->comment</B->, <A NAME="v%3Aconid"-></A-><B->conid</B->, <A NAME="v%3Avarid"-></A-><B->varid</B->, <A NAME="v%3Aconop"-></A-><B->conop</B->, <A NAME="v%3Avarop"-></A-><B->varop</B->, <A NAME="v%3Astring"-></A-><B->string</B->, <A NAME="v%3Achar"-></A-><B->char</B->, <A NAME="v%3Anumber"-></A-><B->number</B->, <A NAME="v%3Acpp"-></A-><B->cpp</B->, <A NAME="v%3Aselection"-></A-><B->selection</B->, <A NAME="v%3Avariantselection"-></A-><B->variantselection</B->, <A NAME="v%3Adefinition"-></A-><B->definition</B-> :: [<A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AHighlight"->Highlight</A->]</TD-><TD CLASS="rdoc"-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section4"-><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:ColourPrefs')" ALT="show/hide"-> Instances</TD-></TR-><TR-><TD CLASS="body"-><DIV ID="i:ColourPrefs" STYLE="display:block;"-><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"-><TR-><TD CLASS="decl"->Eq <A HREF="Language-Haskell-HsColour.html#t%3AColourPrefs"->ColourPrefs</A-></TD-></TR-><TR-><TD CLASS="decl"->Read <A HREF="Language-Haskell-HsColour.html#t%3AColourPrefs"->ColourPrefs</A-></TD-></TR-><TR-><TD CLASS="decl"->Show <A HREF="Language-Haskell-HsColour.html#t%3AColourPrefs"->ColourPrefs</A-></TD-></TR-></TABLE-></DIV-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="topdecl"-><TABLE CLASS="declbar"-><TR-><TD CLASS="declname"-><A NAME="v%3Ahscolour"-></A-><B->hscolour</B-></TD-><TD CLASS="declbut"-><A HREF="Language/Haskell/HsColour.html#hscolour"->Source</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="body"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="arg"->:: <A HREF="Language-Haskell-HsColour.html#t%3AOutput"->Output</A-></TD-><TD CLASS="rdoc"->Output format.-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; <A HREF="Language-Haskell-HsColour.html#t%3AColourPrefs"->ColourPrefs</A-></TD-><TD CLASS="rdoc"->Colour preferences (for formats that support them).-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; Bool</TD-><TD CLASS="rdoc"->Whether to include anchors.-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; Bool</TD-><TD CLASS="rdoc"->Whether output document is partial or complete.-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; String</TD-><TD CLASS="rdoc"->Title for output.-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; Bool</TD-><TD CLASS="rdoc"->Whether input document is literate haskell or not-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; String</TD-><TD CLASS="rdoc"->Haskell source code.-</TD-></TR-><TR-><TD CLASS="arg"->-&gt; String</TD-><TD CLASS="rdoc"->Coloured Haskell source code.-</TD-></TR-><TR-><TD CLASS="ndoc" COLSPAN="2"->Colourise Haskell source code with the given output format.-</TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="botbar"->Produced by <A HREF="http://www.haskell.org/haddock/"->Haddock</A-> version 0.8</TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/Language/Haskell/HsColour.html
@@ -1,118 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">-<html>-<head>-<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->-<title>Language/Haskell/HsColour.hs</title>-</head>-<body>-<pre><a name="line-1"></a><font color=Blue>-- | This is a library which colourises Haskell code.</font>-<a name="line-2"></a><font color=Blue>--   It currently has six output formats:</font>-<a name="line-3"></a><font color=Blue>--</font>-<a name="line-4"></a><font color=Blue>-- * ANSI terminal codes</font>-<a name="line-5"></a><font color=Blue>--</font>-<a name="line-6"></a><font color=Blue>-- * LaTeX macros</font>-<a name="line-7"></a><font color=Blue>--</font>-<a name="line-8"></a><font color=Blue>-- * HTML 3.2 with font tags</font>-<a name="line-9"></a><font color=Blue>--</font>-<a name="line-10"></a><font color=Blue>-- * HTML 4.01 with external CSS.</font>-<a name="line-11"></a><font color=Blue>--</font>-<a name="line-12"></a><font color=Blue>-- * XHTML 1.0 with internal CSS.</font>-<a name="line-13"></a><font color=Blue>--</font>-<a name="line-14"></a><font color=Blue>-- * mIRC chat client colour codes.</font>-<a name="line-15"></a><font color=Blue>--</font>-<a name="line-16"></a><u><font color=Green>module</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour <font color=Cyan>(</font>Output<font color=Cyan>(</font><font color=Red>..</font><font color=Cyan>)</font><font color=Cyan>,</font> ColourPrefs<font color=Cyan>(</font><font color=Red>..</font><font color=Cyan>)</font><font color=Cyan>,</font>-<a name="line-17"></a>                                  hscolour<font color=Cyan>)</font> <u><font color=Green>where</font></u>-<a name="line-18"></a>-<a name="line-19"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Colourise  <font color=Cyan>(</font>ColourPrefs<font color=Cyan>(</font><font color=Red>..</font><font color=Cyan>)</font><font color=Cyan>)</font>-<a name="line-20"></a><u><font color=Green>import</font></u> <u><font color=Green>qualified</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>TTY        <u><font color=Green>as</font></u> TTY-<a name="line-21"></a><u><font color=Green>import</font></u> <u><font color=Green>qualified</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>HTML       <u><font color=Green>as</font></u> HTML-<a name="line-22"></a><u><font color=Green>import</font></u> <u><font color=Green>qualified</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>CSS        <u><font color=Green>as</font></u> CSS-<a name="line-23"></a><u><font color=Green>import</font></u> <u><font color=Green>qualified</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>InlineCSS  <u><font color=Green>as</font></u> ICSS-<a name="line-24"></a><u><font color=Green>import</font></u> <u><font color=Green>qualified</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>LaTeX      <u><font color=Green>as</font></u> LaTeX-<a name="line-25"></a><u><font color=Green>import</font></u> <u><font color=Green>qualified</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>MIRC       <u><font color=Green>as</font></u> MIRC-<a name="line-26"></a><u><font color=Green>import</font></u> Data<font color=Cyan>.</font>List<font color=Cyan>(</font>mapAccumL<font color=Cyan>,</font> isPrefixOf<font color=Cyan>)</font> -<a name="line-27"></a><u><font color=Green>import</font></u> Data<font color=Cyan>.</font>Maybe-<a name="line-28"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Output-<a name="line-29"></a><u><font color=Green>import</font></u> Debug<font color=Cyan>.</font>Trace-<a name="line-30"></a>-<a name="line-31"></a><a name="hscolour"></a><font color=Blue>-- | Colourise Haskell source code with the given output format.</font>-<a name="line-32"></a>hscolour <font color=Red>::</font> Output      <font color=Blue>-- ^ Output format.</font>-<a name="line-33"></a>         <font color=Red>-&gt;</font> ColourPrefs <font color=Blue>-- ^ Colour preferences (for formats that support them).</font>-<a name="line-34"></a>         <font color=Red>-&gt;</font> Bool        <font color=Blue>-- ^ Whether to include anchors.</font>-<a name="line-35"></a>         <font color=Red>-&gt;</font> Bool        <font color=Blue>-- ^ Whether output document is partial or complete.</font>-<a name="line-36"></a>         <font color=Red>-&gt;</font> String	<font color=Blue>-- ^ Title for output.</font>-<a name="line-37"></a>         <font color=Red>-&gt;</font> Bool        <font color=Blue>-- ^ Whether input document is literate haskell or not</font>-<a name="line-38"></a>         <font color=Red>-&gt;</font> String      <font color=Blue>-- ^ Haskell source code.</font>-<a name="line-39"></a>         <font color=Red>-&gt;</font> String      <font color=Blue>-- ^ Coloured Haskell source code.</font>-<a name="line-40"></a>hscolour output pref anchor partial title False <font color=Red>=</font>-<a name="line-41"></a>        <font color=Cyan>(</font><u><font color=Green>if</font></u> partial <u><font color=Green>then</font></u> id <u><font color=Green>else</font></u> top'n'tail output title<font color=Cyan>)</font> <font color=Cyan>.</font>-<a name="line-42"></a>        hscolour' output pref anchor-<a name="line-43"></a>hscolour output pref anchor partial title True  <font color=Red>=</font>-<a name="line-44"></a>        <font color=Cyan>(</font><u><font color=Green>if</font></u> partial <u><font color=Green>then</font></u> id <u><font color=Green>else</font></u> top'n'tail output title<font color=Cyan>)</font> <font color=Cyan>.</font>-<a name="line-45"></a>        concatMap chunk <font color=Cyan>.</font> joinL <font color=Cyan>.</font> classify <font color=Cyan>.</font> inlines-<a name="line-46"></a>  <u><font color=Green>where</font></u>-<a name="line-47"></a>    chunk <font color=Cyan>(</font>Code c<font color=Cyan>)</font> <font color=Red>=</font> hscolour' output pref anchor c-<a name="line-48"></a>    chunk <font color=Cyan>(</font>Lit c<font color=Cyan>)</font>  <font color=Red>=</font> c-<a name="line-49"></a>-<a name="line-50"></a><a name="hscolour'"></a><font color=Blue>-- | The actual colourising worker, despatched on the chosen output format.</font>-<a name="line-51"></a>hscolour' <font color=Red>::</font> Output      <font color=Blue>-- ^ Output format.</font>-<a name="line-52"></a>          <font color=Red>-&gt;</font> ColourPrefs <font color=Blue>-- ^ Colour preferences (for formats that support them)</font>-<a name="line-53"></a>          <font color=Red>-&gt;</font> Bool        <font color=Blue>-- ^ Whether to include anchors.</font>-<a name="line-54"></a>          <font color=Red>-&gt;</font> String      <font color=Blue>-- ^ Haskell source code.</font>-<a name="line-55"></a>          <font color=Red>-&gt;</font> String      <font color=Blue>-- ^ Coloured Haskell source code.</font>-<a name="line-56"></a>hscolour' TTY   pref <u><font color=Green>_</font></u>      <font color=Red>=</font> TTY<font color=Cyan>.</font>hscolour   pref-<a name="line-57"></a>hscolour' MIRC  pref <u><font color=Green>_</font></u>      <font color=Red>=</font> MIRC<font color=Cyan>.</font>hscolour  pref-<a name="line-58"></a>hscolour' LaTeX pref <u><font color=Green>_</font></u>      <font color=Red>=</font> LaTeX<font color=Cyan>.</font>hscolour pref-<a name="line-59"></a>hscolour' HTML  pref anchor <font color=Red>=</font> HTML<font color=Cyan>.</font>hscolour  pref anchor-<a name="line-60"></a>hscolour' CSS   <u><font color=Green>_</font></u>    anchor <font color=Red>=</font> CSS<font color=Cyan>.</font>hscolour        anchor-<a name="line-61"></a>hscolour' ICSS  pref anchor <font color=Red>=</font> ICSS<font color=Cyan>.</font>hscolour  pref anchor-<a name="line-62"></a>-<a name="line-63"></a><a name="top'n'tail"></a><font color=Blue>-- | Choose the right headers\/footers, depending on the output format.</font>-<a name="line-64"></a>top'n'tail <font color=Red>::</font> Output           <font color=Blue>-- ^ Output format</font>-<a name="line-65"></a>           <font color=Red>-&gt;</font> String           <font color=Blue>-- ^ Title for output</font>-<a name="line-66"></a>           <font color=Red>-&gt;</font> <font color=Cyan>(</font>String<font color=Red>-&gt;</font>String<font color=Cyan>)</font> <font color=Blue>-- ^ Output transformer</font>-<a name="line-67"></a>top'n'tail TTY   <u><font color=Green>_</font></u>     <font color=Red>=</font> id-<a name="line-68"></a>top'n'tail MIRC  <u><font color=Green>_</font></u>     <font color=Red>=</font> id-<a name="line-69"></a>top'n'tail LaTeX title <font color=Red>=</font> LaTeX<font color=Cyan>.</font>top'n'tail title-<a name="line-70"></a>top'n'tail HTML  title <font color=Red>=</font> HTML<font color=Cyan>.</font>top'n'tail title-<a name="line-71"></a>top'n'tail CSS   title <font color=Red>=</font> CSS<font color=Cyan>.</font>top'n'tail  title-<a name="line-72"></a>top'n'tail ICSS  title <font color=Red>=</font> ICSS<font color=Cyan>.</font>top'n'tail title-<a name="line-73"></a>-<a name="line-74"></a><a name="Lit"></a><font color=Blue>-- | Separating literate files into code\/comment chunks.</font>-<a name="line-75"></a><a name="Lit"></a><u><font color=Green>data</font></u> Lit <font color=Red>=</font> Code <font color=Cyan>{</font>unL <font color=Red>::</font> String<font color=Cyan>}</font> <font color=Red>|</font> Lit <font color=Cyan>{</font>unL <font color=Red>::</font> String<font color=Cyan>}</font> <u><font color=Green>deriving</font></u> <font color=Cyan>(</font>Show<font color=Cyan>)</font>-<a name="line-76"></a>-<a name="line-77"></a><a name="inlines"></a><font color=Blue>-- Re-implementation of 'lines', for better efficiency (but decreased laziness).</font>-<a name="line-78"></a><font color=Blue>-- Also, importantly, accepts non-standard DOS and Mac line ending characters.</font>-<a name="line-79"></a><font color=Blue>-- And retains the trailing '\n' character in each resultant string.</font>-<a name="line-80"></a>inlines <font color=Red>::</font> String <font color=Red>-&gt;</font> <font color=Red>[</font>String<font color=Red>]</font>-<a name="line-81"></a>inlines s <font color=Red>=</font> lines' s id-<a name="line-82"></a>  <u><font color=Green>where</font></u>-<a name="line-83"></a>  lines' []             acc <font color=Red>=</font> <font color=Red>[</font>acc []<font color=Red>]</font>-<a name="line-84"></a>  lines' <font color=Cyan>(</font><font color=Magenta>'\^M'</font><b><font color=Red>:</font></b><font color=Magenta>'\n'</font><b><font color=Red>:</font></b>s<font color=Cyan>)</font> acc <font color=Red>=</font> acc <font color=Red>[</font><font color=Magenta>'\n'</font><font color=Red>]</font> <b><font color=Red>:</font></b> lines' s id	<font color=Blue>-- DOS</font>-<a name="line-85"></a><font color=Blue>--lines' ('\^M':s)      acc = acc ['\n'] : lines' s id	-- MacOS</font>-<a name="line-86"></a>  lines' <font color=Cyan>(</font><font color=Magenta>'\n'</font><b><font color=Red>:</font></b>s<font color=Cyan>)</font>       acc <font color=Red>=</font> acc <font color=Red>[</font><font color=Magenta>'\n'</font><font color=Red>]</font> <b><font color=Red>:</font></b> lines' s id	<font color=Blue>-- Unix</font>-<a name="line-87"></a>  lines' <font color=Cyan>(</font>c<b><font color=Red>:</font></b>s<font color=Cyan>)</font>          acc <font color=Red>=</font> lines' s <font color=Cyan>(</font>acc <font color=Cyan>.</font> <font color=Cyan>(</font>c<b><font color=Red>:</font></b><font color=Cyan>)</font><font color=Cyan>)</font>-<a name="line-88"></a>-<a name="line-89"></a>-<a name="line-90"></a><a name="classify"></a><font color=Blue>-- | The code for classify is largely stolen from Language.Preprocessor.Unlit.</font>-<a name="line-91"></a>classify []             <font color=Red>=</font> []-<a name="line-92"></a>classify <font color=Cyan>(</font>x<b><font color=Red>:</font></b>xs<font color=Cyan>)</font> <font color=Red>|</font> <font color=Magenta>"\\begin{code}"</font><font color=Cyan>`isPrefixOf`</font>x-<a name="line-93"></a>                        <font color=Red>=</font> Lit x<b><font color=Red>:</font></b> allProg xs-<a name="line-94"></a>   <u><font color=Green>where</font></u> allProg []     <font color=Red>=</font> []  <font color=Blue>-- Should give an error message,</font>-<a name="line-95"></a>                              <font color=Blue>-- but I have no good position information.</font>-<a name="line-96"></a>         allProg <font color=Cyan>(</font>x<b><font color=Red>:</font></b>xs<font color=Cyan>)</font> <font color=Red>|</font> <font color=Magenta>"\\end{code}"</font><font color=Cyan>`isPrefixOf`</font>x-<a name="line-97"></a>                        <font color=Red>=</font> Lit x<b><font color=Red>:</font></b> classify xs-<a name="line-98"></a>         allProg <font color=Cyan>(</font>x<b><font color=Red>:</font></b>xs<font color=Cyan>)</font> <font color=Red>=</font> Code x<b><font color=Red>:</font></b> allProg xs-<a name="line-99"></a>classify <font color=Cyan>(</font><font color=Cyan>(</font><font color=Magenta>'&gt;'</font><b><font color=Red>:</font></b>x<font color=Cyan>)</font><b><font color=Red>:</font></b>xs<font color=Cyan>)</font>   <font color=Red>=</font> Code <font color=Cyan>(</font><font color=Magenta>'&gt;'</font><b><font color=Red>:</font></b>x<font color=Cyan>)</font> <b><font color=Red>:</font></b> classify xs-<a name="line-100"></a>classify <font color=Cyan>(</font>x<b><font color=Red>:</font></b>xs<font color=Cyan>)</font>         <font color=Red>=</font> Lit x<b><font color=Red>:</font></b> classify xs-<a name="line-101"></a>-<a name="line-102"></a><a name="joinL"></a><font color=Blue>-- | Join up chunks of code\/comment that are next to each other.</font>-<a name="line-103"></a>joinL <font color=Red>::</font> <font color=Red>[</font>Lit<font color=Red>]</font> <font color=Red>-&gt;</font> <font color=Red>[</font>Lit<font color=Red>]</font>-<a name="line-104"></a>joinL []                  <font color=Red>=</font> []-<a name="line-105"></a>joinL <font color=Cyan>(</font>Code c<b><font color=Red>:</font></b>Code c2<b><font color=Red>:</font></b>xs<font color=Cyan>)</font> <font color=Red>=</font> joinL <font color=Cyan>(</font>Code <font color=Cyan>(</font>c<font color=Cyan>++</font>c2<font color=Cyan>)</font><b><font color=Red>:</font></b>xs<font color=Cyan>)</font>-<a name="line-106"></a>joinL <font color=Cyan>(</font>Lit c <b><font color=Red>:</font></b>Lit c2 <b><font color=Red>:</font></b>xs<font color=Cyan>)</font> <font color=Red>=</font> joinL <font color=Cyan>(</font>Lit  <font color=Cyan>(</font>c<font color=Cyan>++</font>c2<font color=Cyan>)</font><b><font color=Red>:</font></b>xs<font color=Cyan>)</font>-<a name="line-107"></a>joinL <font color=Cyan>(</font>any<b><font color=Red>:</font></b>xs<font color=Cyan>)</font>            <font color=Red>=</font> any<b><font color=Red>:</font></b> joinL xs-<a name="line-108"></a>-</pre>-</body>-</html>
− docs/hscolour/Language/Haskell/HsColour/ANSI.html
@@ -1,107 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">-<html>-<head>-<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->-<title>Language/Haskell/HsColour/ANSI.hs</title>-</head>-<body>-<pre><a name="line-1"></a><font color=Blue>-- | Partially taken from Hugs AnsiScreen.hs library:</font>-<a name="line-2"></a><u><font color=Green>module</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>ANSI-<a name="line-3"></a>  <font color=Cyan>(</font> highlightOn-<a name="line-4"></a>  <font color=Cyan>,</font> highlightOff-<a name="line-5"></a>  <font color=Cyan>,</font> highlight-<a name="line-6"></a>  <font color=Cyan>,</font> cleareol<font color=Cyan>,</font> clearbol<font color=Cyan>,</font> clearline<font color=Cyan>,</font> clearDown<font color=Cyan>,</font> clearUp<font color=Cyan>,</font> cls-<a name="line-7"></a>  <font color=Cyan>,</font> goto-<a name="line-8"></a>  <font color=Cyan>,</font> cursorUp<font color=Cyan>,</font> cursorDown<font color=Cyan>,</font> cursorLeft<font color=Cyan>,</font> cursorRight-<a name="line-9"></a>  <font color=Cyan>,</font> savePosition<font color=Cyan>,</font> restorePosition-<a name="line-10"></a>  <font color=Cyan>,</font> Highlight<font color=Cyan>(</font><font color=Red>..</font><font color=Cyan>)</font>-<a name="line-11"></a>  <font color=Cyan>,</font> Colour<font color=Cyan>(</font><font color=Red>..</font><font color=Cyan>)</font>-<a name="line-12"></a>  <font color=Cyan>,</font> colourCycle-<a name="line-13"></a>  <font color=Cyan>,</font> enableScrollRegion<font color=Cyan>,</font> scrollUp<font color=Cyan>,</font> scrollDown-<a name="line-14"></a>  <font color=Cyan>,</font> lineWrap-<a name="line-15"></a>  <font color=Cyan>)</font> <u><font color=Green>where</font></u>-<a name="line-16"></a>-<a name="line-17"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>ColourHighlight-<a name="line-18"></a>-<a name="line-19"></a><u><font color=Green>import</font></u> List <font color=Cyan>(</font>intersperse<font color=Cyan>,</font>isPrefixOf<font color=Cyan>)</font>-<a name="line-20"></a><u><font color=Green>import</font></u> Char <font color=Cyan>(</font>isDigit<font color=Cyan>)</font>-<a name="line-21"></a>-<a name="line-22"></a>-<a name="line-23"></a><font color=Blue>-- Basic screen control codes:</font>-<a name="line-24"></a>-<a name="line-25"></a><a name="Pos"></a><u><font color=Green>type</font></u> Pos           <font color=Red>=</font> <font color=Cyan>(</font>Int<font color=Cyan>,</font>Int<font color=Cyan>)</font>-<a name="line-26"></a>-<a name="line-27"></a><a name="at"></a>at        <font color=Red>::</font> Pos <font color=Red>-&gt;</font> String <font color=Red>-&gt;</font> String-<a name="line-28"></a><a name="goto"></a><font color=Blue>-- | Move the screen cursor to the given position.</font>-<a name="line-29"></a>goto      <font color=Red>::</font> Int <font color=Red>-&gt;</font> Int <font color=Red>-&gt;</font> String-<a name="line-30"></a><a name="home"></a>home      <font color=Red>::</font> String-<a name="line-31"></a><a name="cls"></a><font color=Blue>-- | Clear the screen.</font>-<a name="line-32"></a>cls       <font color=Red>::</font> String-<a name="line-33"></a>-<a name="line-34"></a>at <font color=Cyan>(</font>x<font color=Cyan>,</font>y<font color=Cyan>)</font> s  <font color=Red>=</font> goto x y <font color=Cyan>++</font> s-<a name="line-35"></a>goto x y    <font color=Red>=</font> <font color=Magenta>'\ESC'</font><b><font color=Red>:</font></b><font color=Magenta>'['</font><b><font color=Red>:</font></b><font color=Cyan>(</font>show y <font color=Cyan>++</font><font color=Cyan>(</font><font color=Magenta>';'</font><b><font color=Red>:</font></b>show x <font color=Cyan>++</font> <font color=Magenta>"H"</font><font color=Cyan>)</font><font color=Cyan>)</font>-<a name="line-36"></a>home        <font color=Red>=</font> goto <font color=Magenta>1</font> <font color=Magenta>1</font>-<a name="line-37"></a>-<a name="line-38"></a><a name="cursorUp"></a>cursorUp    <font color=Red>=</font> <font color=Magenta>"\ESC[A"</font>-<a name="line-39"></a><a name="cursorDown"></a>cursorDown  <font color=Red>=</font> <font color=Magenta>"\ESC[B"</font>-<a name="line-40"></a><a name="cursorRight"></a>cursorRight <font color=Red>=</font> <font color=Magenta>"\ESC[C"</font>-<a name="line-41"></a><a name="cursorLeft"></a>cursorLeft  <font color=Red>=</font> <font color=Magenta>"\ESC[D"</font>-<a name="line-42"></a>-<a name="line-43"></a><a name="cleareol"></a>cleareol    <font color=Red>=</font> <font color=Magenta>"\ESC[K"</font>-<a name="line-44"></a><a name="clearbol"></a>clearbol    <font color=Red>=</font> <font color=Magenta>"\ESC[1K"</font>-<a name="line-45"></a><a name="clearline"></a>clearline   <font color=Red>=</font> <font color=Magenta>"\ESC[2K"</font>-<a name="line-46"></a><a name="clearDown"></a>clearDown   <font color=Red>=</font> <font color=Magenta>"\ESC[J"</font>-<a name="line-47"></a><a name="clearUp"></a>clearUp     <font color=Red>=</font> <font color=Magenta>"\ESC[1J"</font>-<a name="line-48"></a><font color=Blue>-- Choose whichever of the following lines is suitable for your system:</font>-<a name="line-49"></a>cls         <font color=Red>=</font> <font color=Magenta>"\ESC[2J"</font>     <font color=Blue>-- for PC with ANSI.SYS</font>-<a name="line-50"></a><font color=Blue>--cls         = "\^L"         -- for Sun window</font>-<a name="line-51"></a>-<a name="line-52"></a><a name="savePosition"></a>savePosition    <font color=Red>=</font> <font color=Magenta>"\ESC7"</font>-<a name="line-53"></a><a name="restorePosition"></a>restorePosition <font color=Red>=</font> <font color=Magenta>"\ESC8"</font>-<a name="line-54"></a>-<a name="line-55"></a>-<a name="line-56"></a><font color=Blue>-- data Colour    -- imported from ColourHighlight</font>-<a name="line-57"></a><font color=Blue>-- data Highlight -- imported from ColourHighlight</font>-<a name="line-58"></a>-<a name="line-59"></a><u><font color=Green>instance</font></u> Enum Highlight <u><font color=Green>where</font></u>-<a name="line-60"></a>  fromEnum Normal       <font color=Red>=</font> <font color=Magenta>0</font>-<a name="line-61"></a>  fromEnum Bold         <font color=Red>=</font> <font color=Magenta>1</font>-<a name="line-62"></a>  fromEnum Dim          <font color=Red>=</font> <font color=Magenta>2</font>-<a name="line-63"></a>  fromEnum Underscore   <font color=Red>=</font> <font color=Magenta>4</font>-<a name="line-64"></a>  fromEnum Blink        <font color=Red>=</font> <font color=Magenta>5</font>-<a name="line-65"></a>  fromEnum ReverseVideo <font color=Red>=</font> <font color=Magenta>7</font>-<a name="line-66"></a>  fromEnum Concealed    <font color=Red>=</font> <font color=Magenta>8</font>-<a name="line-67"></a>  fromEnum <font color=Cyan>(</font>Foreground c<font color=Cyan>)</font> <font color=Red>=</font> <font color=Magenta>30</font> <font color=Cyan>+</font> fromEnum c-<a name="line-68"></a>  fromEnum <font color=Cyan>(</font>Background c<font color=Cyan>)</font> <font color=Red>=</font> <font color=Magenta>40</font> <font color=Cyan>+</font> fromEnum c-<a name="line-69"></a>  fromEnum Italic       <font color=Red>=</font> <font color=Magenta>2</font>-<a name="line-70"></a>-<a name="line-71"></a><a name="highlight"></a><font color=Blue>-- | Make the given string appear with all of the listed highlights</font>-<a name="line-72"></a>highlight <font color=Red>::</font> <font color=Red>[</font>Highlight<font color=Red>]</font> <font color=Red>-&gt;</font> String <font color=Red>-&gt;</font> String-<a name="line-73"></a>highlight attrs s <font color=Red>=</font> highlightOn attrs <font color=Cyan>++</font> s <font color=Cyan>++</font> highlightOff-<a name="line-74"></a>-<a name="line-75"></a><a name="highlightOn"></a>highlightOn []     <font color=Red>=</font> highlightOn <font color=Red>[</font>Normal<font color=Red>]</font>-<a name="line-76"></a>highlightOn attrs  <font color=Red>=</font> <font color=Magenta>"\ESC["</font>-<a name="line-77"></a>                     <font color=Cyan>++</font> concat <font color=Cyan>(</font>intersperse <font color=Magenta>";"</font> <font color=Cyan>(</font>map <font color=Cyan>(</font>show<font color=Cyan>.</font>fromEnum<font color=Cyan>)</font> attrs<font color=Cyan>)</font><font color=Cyan>)</font>-<a name="line-78"></a>                     <font color=Cyan>++</font><font color=Magenta>"m"</font>-<a name="line-79"></a><a name="highlightOff"></a>highlightOff <font color=Red>=</font> <font color=Magenta>"\ESC[0m"</font>-<a name="line-80"></a>-<a name="line-81"></a>-<a name="line-82"></a><a name="colourCycle"></a><font color=Blue>-- | An infinite supply of colours.</font>-<a name="line-83"></a>colourCycle <font color=Red>::</font> <font color=Red>[</font>Colour<font color=Red>]</font>-<a name="line-84"></a>colourCycle <font color=Red>=</font> cycle <font color=Red>[</font>Red<font color=Cyan>,</font>Blue<font color=Cyan>,</font>Magenta<font color=Cyan>,</font>Green<font color=Cyan>,</font>Cyan<font color=Red>]</font>-<a name="line-85"></a>-<a name="line-86"></a>-<a name="line-87"></a><a name="enableScrollRegion"></a><font color=Blue>-- | Scrolling</font>-<a name="line-88"></a>enableScrollRegion <font color=Red>::</font> Int <font color=Red>-&gt;</font> Int <font color=Red>-&gt;</font> String-<a name="line-89"></a>enableScrollRegion start end <font color=Red>=</font> <font color=Magenta>"\ESC["</font><font color=Cyan>++</font>show start<font color=Cyan>++</font><font color=Magenta>';'</font><b><font color=Red>:</font></b>show end<font color=Cyan>++</font><font color=Magenta>"r"</font>-<a name="line-90"></a>-<a name="line-91"></a><a name="scrollDown"></a>scrollDown  <font color=Red>=</font> <font color=Magenta>"\ESCD"</font>-<a name="line-92"></a><a name="scrollUp"></a>scrollUp    <font color=Red>=</font> <font color=Magenta>"\ESCM"</font>-<a name="line-93"></a>-<a name="line-94"></a><a name="lineWrap"></a><font color=Blue>-- Line-wrapping mode</font>-<a name="line-95"></a>lineWrap True  <font color=Red>=</font> <font color=Magenta>"\ESC[7h"</font>-<a name="line-96"></a>lineWrap False <font color=Red>=</font> <font color=Magenta>"\ESC[7l"</font>-<a name="line-97"></a>-</pre>-</body>-</html>
− docs/hscolour/Language/Haskell/HsColour/Anchors.html
@@ -1,143 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">-<html>-<head>-<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->-<title>Language/Haskell/HsColour/Anchors.hs</title>-</head>-<body>-<pre><a name="line-1"></a><u><font color=Green>module</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Anchors-<a name="line-2"></a>  <font color=Cyan>(</font> insertAnchors-<a name="line-3"></a>  <font color=Cyan>)</font> <u><font color=Green>where</font></u>-<a name="line-4"></a>-<a name="line-5"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Classify-<a name="line-6"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>General-<a name="line-7"></a><u><font color=Green>import</font></u> List-<a name="line-8"></a>-<a name="line-9"></a><font color=Blue>-- This is an attempt to find the first defining occurrence of an</font>-<a name="line-10"></a><font color=Blue>-- identifier (function, datatype, class) in a Haskell source file.</font>-<a name="line-11"></a><font color=Blue>-- Rather than parse the module properly, we try to get by with just</font>-<a name="line-12"></a><font color=Blue>-- a finite state automaton.  Keeping a record of identifiers we</font>-<a name="line-13"></a><font color=Blue>-- have already seen, we look at the beginning of every line to see</font>-<a name="line-14"></a><font color=Blue>-- if it starts with the right tokens to introduce a defn.  If so,</font>-<a name="line-15"></a><font color=Blue>-- we look a little bit further until we can be certain.  Then plonk</font>-<a name="line-16"></a><font color=Blue>-- (or not) an anchor at the beginning of the line.</font>-<a name="line-17"></a>-<a name="line-18"></a><a name="Anchor"></a><u><font color=Green>type</font></u> Anchor <font color=Red>=</font> String-<a name="line-19"></a>-<a name="line-20"></a><a name="insertAnchors"></a><font color=Blue>-- | 'insertAnchors' places an anchor marker in the token stream before the</font>-<a name="line-21"></a><font color=Blue>--   first defining occurrence of any identifier.  Here, /before/ means</font>-<a name="line-22"></a><font color=Blue>--   immediately preceding its type signature, or preceding a (haddock)</font>-<a name="line-23"></a><font color=Blue>--   comment that comes immediately before the type signature, or failing</font>-<a name="line-24"></a><font color=Blue>--   either of those, before the first equation.</font>-<a name="line-25"></a>insertAnchors <font color=Red>::</font> <font color=Red>[</font><font color=Cyan>(</font>TokenType<font color=Cyan>,</font>String<font color=Cyan>)</font><font color=Red>]</font> <font color=Red>-&gt;</font> <font color=Red>[</font>Either Anchor <font color=Cyan>(</font>TokenType<font color=Cyan>,</font>String<font color=Cyan>)</font><font color=Red>]</font>-<a name="line-26"></a>insertAnchors <font color=Red>=</font> anchor emptyST-<a name="line-27"></a>-<a name="line-28"></a><a name="anchor"></a><font color=Blue>-- looks at first token in the left-most position of each line</font>-<a name="line-29"></a><font color=Blue>-- precondition: have just seen a newline token.</font>-<a name="line-30"></a>anchor st s <font color=Red>=</font> <u><font color=Green>case</font></u> identifier st s <u><font color=Green>of</font></u>-<a name="line-31"></a>                Nothing <font color=Red>-&gt;</font> emit st s-<a name="line-32"></a>                Just v  <font color=Red>-&gt;</font> Left v<b><font color=Red>:</font></b> emit <font color=Cyan>(</font>insertST v st<font color=Cyan>)</font> s-<a name="line-33"></a>-<a name="line-34"></a><a name="emit"></a><font color=Blue>-- emit passes stuff through until the next newline has been encountered,</font>-<a name="line-35"></a><font color=Blue>-- then jumps back into the anchor function</font>-<a name="line-36"></a><font color=Blue>-- pre-condition: newlines are explicitly single tokens</font>-<a name="line-37"></a>emit st <font color=Cyan>(</font>t<font color=Red>@</font><font color=Cyan>(</font>Space<font color=Cyan>,</font><font color=Magenta>"\n"</font><font color=Cyan>)</font><b><font color=Red>:</font></b>stream<font color=Cyan>)</font> <font color=Red>=</font> Right t<b><font color=Red>:</font></b> anchor st stream-<a name="line-38"></a>emit st <font color=Cyan>(</font>t<b><font color=Red>:</font></b>stream<font color=Cyan>)</font>              <font color=Red>=</font> Right t<b><font color=Red>:</font></b> emit st stream-<a name="line-39"></a>emit <u><font color=Green>_</font></u>  []                      <font color=Red>=</font> []-<a name="line-40"></a>-<a name="line-41"></a><a name="identifier"></a><font color=Blue>-- Given that we are at the beginning of a line, determine whether there</font>-<a name="line-42"></a><font color=Blue>-- is an identifier defined here, and if so, return it.</font>-<a name="line-43"></a><font color=Blue>-- precondition: have just seen a newline token.</font>-<a name="line-44"></a>identifier st t<font color=Red>@</font><font color=Cyan>(</font><font color=Cyan>(</font>kind<font color=Cyan>,</font>v<font color=Cyan>)</font><b><font color=Red>:</font></b>stream<font color=Cyan>)</font> <font color=Red>|</font> kind<font color=Cyan>`elem`</font><font color=Red>[</font>Varid<font color=Cyan>,</font>Definition<font color=Red>]</font> <font color=Red>=</font>-<a name="line-45"></a>    <u><font color=Green>case</font></u> skip stream <u><font color=Green>of</font></u>-<a name="line-46"></a>        <font color=Cyan>(</font><font color=Cyan>(</font>Varop<font color=Cyan>,</font>v<font color=Cyan>)</font><b><font color=Red>:</font></b><u><font color=Green>_</font></u><font color=Cyan>)</font> <font color=Red>|</font> not <font color=Cyan>(</font>v<font color=Cyan>`inST`</font>st<font color=Cyan>)</font> <font color=Red>-&gt;</font> Just <font color=Cyan>(</font>fix v<font color=Cyan>)</font>-<a name="line-47"></a>        notVarop  <font color=Blue>--  | typesig stream  -&gt; Nothing    -- not a defn</font>-<a name="line-48"></a>                      <font color=Red>|</font> v <font color=Cyan>`inST`</font> st     <font color=Red>-&gt;</font> Nothing    <font color=Blue>-- already defined</font>-<a name="line-49"></a>                      <font color=Red>|</font> otherwise       <font color=Red>-&gt;</font> Just v-<a name="line-50"></a>identifier st t<font color=Red>@</font><font color=Cyan>(</font><font color=Cyan>(</font>Layout<font color=Cyan>,</font><font color=Magenta>"("</font><font color=Cyan>)</font><b><font color=Red>:</font></b>stream<font color=Cyan>)</font> <font color=Red>=</font>-<a name="line-51"></a>    <u><font color=Green>case</font></u> stream <u><font color=Green>of</font></u>-<a name="line-52"></a>      <font color=Cyan>(</font><font color=Cyan>(</font>Varop<font color=Cyan>,</font>v<font color=Cyan>)</font><b><font color=Red>:</font></b><font color=Cyan>(</font>Layout<font color=Cyan>,</font><font color=Magenta>")"</font><font color=Cyan>)</font><b><font color=Red>:</font></b><u><font color=Green>_</font></u><font color=Cyan>)</font>-<a name="line-53"></a>                  <font color=Blue>--  | typesig stream  -&gt; Nothing</font>-<a name="line-54"></a>	              <font color=Red>|</font> v <font color=Cyan>`inST`</font> st     <font color=Red>-&gt;</font> Nothing-<a name="line-55"></a>	              <font color=Red>|</font> otherwise	<font color=Red>-&gt;</font> Just <font color=Cyan>(</font>fix v<font color=Cyan>)</font>-<a name="line-56"></a>      notVarop <font color=Red>-&gt;</font> <u><font color=Green>case</font></u> skip <font color=Cyan>(</font>munchParens stream<font color=Cyan>)</font> <u><font color=Green>of</font></u>-<a name="line-57"></a>          <font color=Cyan>(</font><font color=Cyan>(</font>Varop<font color=Cyan>,</font>v<font color=Cyan>)</font><b><font color=Red>:</font></b><u><font color=Green>_</font></u><font color=Cyan>)</font> <font color=Red>|</font> not <font color=Cyan>(</font>v<font color=Cyan>`inST`</font>st<font color=Cyan>)</font> <font color=Red>-&gt;</font> Just <font color=Cyan>(</font>fix v<font color=Cyan>)</font>-<a name="line-58"></a>          <u><font color=Green>_</font></u>             <font color=Red>-&gt;</font> Nothing-<a name="line-59"></a>identifier st t<font color=Red>@</font><font color=Cyan>(</font><font color=Cyan>(</font>Keyword<font color=Cyan>,</font><font color=Magenta>"foreign"</font><font color=Cyan>)</font><b><font color=Red>:</font></b>stream<font color=Cyan>)</font> <font color=Red>=</font> Nothing <font color=Blue>-- not yet implemented</font>-<a name="line-60"></a>identifier st t<font color=Red>@</font><font color=Cyan>(</font><font color=Cyan>(</font>Keyword<font color=Cyan>,</font><font color=Magenta>"data"</font><font color=Cyan>)</font><b><font color=Red>:</font></b>stream<font color=Cyan>)</font>    <font color=Red>=</font> getConid stream-<a name="line-61"></a>identifier st t<font color=Red>@</font><font color=Cyan>(</font><font color=Cyan>(</font>Keyword<font color=Cyan>,</font><font color=Magenta>"newtype"</font><font color=Cyan>)</font><b><font color=Red>:</font></b>stream<font color=Cyan>)</font> <font color=Red>=</font> getConid stream-<a name="line-62"></a>identifier st t<font color=Red>@</font><font color=Cyan>(</font><font color=Cyan>(</font>Keyword<font color=Cyan>,</font><font color=Magenta>"type"</font><font color=Cyan>)</font><b><font color=Red>:</font></b>stream<font color=Cyan>)</font>    <font color=Red>=</font> getConid stream-<a name="line-63"></a>identifier st t<font color=Red>@</font><font color=Cyan>(</font><font color=Cyan>(</font>Keyword<font color=Cyan>,</font><font color=Magenta>"class"</font><font color=Cyan>)</font><b><font color=Red>:</font></b>stream<font color=Cyan>)</font>   <font color=Red>=</font> getConid stream-<a name="line-64"></a>identifier st t<font color=Red>@</font><font color=Cyan>(</font><font color=Cyan>(</font>Comment<font color=Cyan>,</font><u><font color=Green>_</font></u><font color=Cyan>)</font><b><font color=Red>:</font></b><font color=Cyan>(</font>Space<font color=Cyan>,</font><font color=Magenta>"\n"</font><font color=Cyan>)</font><b><font color=Red>:</font></b>stream<font color=Cyan>)</font> <font color=Red>=</font> identifier st stream-<a name="line-65"></a>identifier st stream <font color=Red>=</font> Nothing-<a name="line-66"></a>-<a name="line-67"></a><a name="typesig"></a><font color=Blue>-- Is this really a type signature?  (no longer used)</font>-<a name="line-68"></a>typesig <font color=Red>::</font> <font color=Red>[</font><font color=Cyan>(</font>TokenType<font color=Cyan>,</font>String<font color=Cyan>)</font><font color=Red>]</font> <font color=Red>-&gt;</font> Bool-<a name="line-69"></a>typesig <font color=Cyan>(</font><font color=Cyan>(</font>Keyglyph<font color=Cyan>,</font><font color=Magenta>"::"</font><font color=Cyan>)</font><b><font color=Red>:</font></b><u><font color=Green>_</font></u><font color=Cyan>)</font>   <font color=Red>=</font> True-<a name="line-70"></a>typesig <font color=Cyan>(</font><font color=Cyan>(</font>Varid<font color=Cyan>,</font><u><font color=Green>_</font></u><font color=Cyan>)</font><b><font color=Red>:</font></b>stream<font color=Cyan>)</font>    <font color=Red>=</font> typesig stream-<a name="line-71"></a>typesig <font color=Cyan>(</font><font color=Cyan>(</font>Layout<font color=Cyan>,</font><font color=Magenta>"("</font><font color=Cyan>)</font><b><font color=Red>:</font></b><font color=Cyan>(</font>Varop<font color=Cyan>,</font><u><font color=Green>_</font></u><font color=Cyan>)</font><b><font color=Red>:</font></b><font color=Cyan>(</font>Layout<font color=Cyan>,</font><font color=Magenta>")"</font><font color=Cyan>)</font><b><font color=Red>:</font></b>stream<font color=Cyan>)</font>    <font color=Red>=</font> typesig stream-<a name="line-72"></a>typesig <font color=Cyan>(</font><font color=Cyan>(</font>Layout<font color=Cyan>,</font><font color=Magenta>","</font><font color=Cyan>)</font><b><font color=Red>:</font></b>stream<font color=Cyan>)</font> <font color=Red>=</font> typesig stream-<a name="line-73"></a>typesig <font color=Cyan>(</font><font color=Cyan>(</font>Space<font color=Cyan>,</font><u><font color=Green>_</font></u><font color=Cyan>)</font><b><font color=Red>:</font></b>stream<font color=Cyan>)</font>    <font color=Red>=</font> typesig stream-<a name="line-74"></a>typesig <font color=Cyan>(</font><font color=Cyan>(</font>Comment<font color=Cyan>,</font><u><font color=Green>_</font></u><font color=Cyan>)</font><b><font color=Red>:</font></b>stream<font color=Cyan>)</font>  <font color=Red>=</font> typesig stream-<a name="line-75"></a>typesig <u><font color=Green>_</font></u>                     <font color=Red>=</font> False-<a name="line-76"></a>-<a name="line-77"></a><a name="munchParens"></a><font color=Blue>-- throw away everything from opening paren to matching close</font>-<a name="line-78"></a>munchParens <font color=Red>=</font>  munch <font color=Cyan>(</font><font color=Magenta>0</font><font color=Red>::</font>Int<font color=Cyan>)</font>	<font color=Blue>-- already seen open paren</font>-<a name="line-79"></a>  <u><font color=Green>where</font></u> munch <font color=Magenta>0</font> <font color=Cyan>(</font><font color=Cyan>(</font>Layout<font color=Cyan>,</font><font color=Magenta>")"</font><font color=Cyan>)</font><b><font color=Red>:</font></b>rest<font color=Cyan>)</font> <font color=Red>=</font> rest-<a name="line-80"></a>        munch n <font color=Cyan>(</font><font color=Cyan>(</font>Layout<font color=Cyan>,</font><font color=Magenta>")"</font><font color=Cyan>)</font><b><font color=Red>:</font></b>rest<font color=Cyan>)</font> <font color=Red>=</font> munch <font color=Cyan>(</font>n<font color=Blue>-</font><font color=Magenta>1</font><font color=Cyan>)</font> rest-<a name="line-81"></a>        munch n <font color=Cyan>(</font><font color=Cyan>(</font>Layout<font color=Cyan>,</font><font color=Magenta>"("</font><font color=Cyan>)</font><b><font color=Red>:</font></b>rest<font color=Cyan>)</font> <font color=Red>=</font> munch <font color=Cyan>(</font>n<font color=Cyan>+</font><font color=Magenta>1</font><font color=Cyan>)</font> rest-<a name="line-82"></a>        munch n <font color=Cyan>(</font><u><font color=Green>_</font></u><b><font color=Red>:</font></b>rest<font color=Cyan>)</font>            <font color=Red>=</font> munch n rest-<a name="line-83"></a>        munch <u><font color=Green>_</font></u> []                  <font color=Red>=</font> []	<font color=Blue>-- source is ill-formed</font>-<a name="line-84"></a>-<a name="line-85"></a><a name="fix"></a><font color=Blue>-- ensure anchor name is correct for a Varop</font>-<a name="line-86"></a>fix <font color=Cyan>(</font><font color=Magenta>'`'</font><b><font color=Red>:</font></b>v<font color=Cyan>)</font> <font color=Red>=</font> dropLast <font color=Magenta>'`'</font> v-<a name="line-87"></a>fix v       <font color=Red>=</font> v-<a name="line-88"></a>-<a name="line-89"></a><a name="skip"></a><font color=Blue>-- look past whitespace and comments to next "real" token</font>-<a name="line-90"></a>skip <font color=Cyan>(</font><font color=Cyan>(</font>Space<font color=Cyan>,</font><u><font color=Green>_</font></u><font color=Cyan>)</font><b><font color=Red>:</font></b>stream<font color=Cyan>)</font>   <font color=Red>=</font> skip stream-<a name="line-91"></a>skip <font color=Cyan>(</font><font color=Cyan>(</font>Comment<font color=Cyan>,</font><u><font color=Green>_</font></u><font color=Cyan>)</font><b><font color=Red>:</font></b>stream<font color=Cyan>)</font> <font color=Red>=</font> skip stream-<a name="line-92"></a>skip stream               <font color=Red>=</font> stream-<a name="line-93"></a>-<a name="line-94"></a><a name="getConid"></a><font color=Blue>-- skip possible context up to and including "=&gt;", returning next Conid token</font>-<a name="line-95"></a><font color=Blue>-- (this function is highly partial - relies on source being parse-correct)</font>-<a name="line-96"></a>getConid stream <font color=Red>=</font>-<a name="line-97"></a>    <u><font color=Green>case</font></u> skip stream <u><font color=Green>of</font></u>-<a name="line-98"></a>        <font color=Cyan>(</font><font color=Cyan>(</font>Conid<font color=Cyan>,</font>c<font color=Cyan>)</font><b><font color=Red>:</font></b>rest<font color=Cyan>)</font> <font color=Red>-&gt;</font> <u><font color=Green>case</font></u> context rest <u><font color=Green>of</font></u>-<a name="line-99"></a>                              <font color=Cyan>(</font><font color=Cyan>(</font>Keyglyph<font color=Cyan>,</font><font color=Magenta>"="</font><font color=Cyan>)</font><b><font color=Red>:</font></b><u><font color=Green>_</font></u><font color=Cyan>)</font>     <font color=Red>-&gt;</font> Just c-<a name="line-100"></a>                              <font color=Cyan>(</font><font color=Cyan>(</font>Keyglyph<font color=Cyan>,</font><font color=Magenta>"=&gt;"</font><font color=Cyan>)</font><b><font color=Red>:</font></b>more<font color=Cyan>)</font> <font color=Red>-&gt;</font>-<a name="line-101"></a>                                  <u><font color=Green>case</font></u> skip more <u><font color=Green>of</font></u>-<a name="line-102"></a>                                      <font color=Cyan>(</font><font color=Cyan>(</font>Conid<font color=Cyan>,</font>c'<font color=Cyan>)</font><b><font color=Red>:</font></b><u><font color=Green>_</font></u><font color=Cyan>)</font> <font color=Red>-&gt;</font> Just c'-<a name="line-103"></a>                                      v <font color=Red>-&gt;</font> debug v <font color=Cyan>(</font><font color=Magenta>"Conid "</font><font color=Cyan>++</font>c<font color=Cyan>++</font><font color=Magenta>" =&gt;"</font><font color=Cyan>)</font>-<a name="line-104"></a>                              v <font color=Red>-&gt;</font> debug v <font color=Cyan>(</font><font color=Magenta>"Conid "</font><font color=Cyan>++</font>c<font color=Cyan>++</font><font color=Magenta>" no = or =&gt;"</font><font color=Cyan>)</font>-<a name="line-105"></a>        <font color=Cyan>(</font><font color=Cyan>(</font>Layout<font color=Cyan>,</font><font color=Magenta>"("</font><font color=Cyan>)</font><b><font color=Red>:</font></b>rest<font color=Cyan>)</font> <font color=Red>-&gt;</font> <u><font color=Green>case</font></u> context rest <u><font color=Green>of</font></u>-<a name="line-106"></a>                                   <font color=Cyan>(</font><font color=Cyan>(</font>Keyglyph<font color=Cyan>,</font><font color=Magenta>"=&gt;"</font><font color=Cyan>)</font><b><font color=Red>:</font></b>more<font color=Cyan>)</font> <font color=Red>-&gt;</font>-<a name="line-107"></a>                                       <u><font color=Green>case</font></u> skip more <u><font color=Green>of</font></u>-<a name="line-108"></a>                                           <font color=Cyan>(</font><font color=Cyan>(</font>Conid<font color=Cyan>,</font>c'<font color=Cyan>)</font><b><font color=Red>:</font></b><u><font color=Green>_</font></u><font color=Cyan>)</font> <font color=Red>-&gt;</font> Just c'-<a name="line-109"></a>                                           v <font color=Red>-&gt;</font> debug v <font color=Cyan>(</font><font color=Magenta>"(...) =&gt;"</font><font color=Cyan>)</font>-<a name="line-110"></a>                                   v <font color=Red>-&gt;</font> debug v <font color=Cyan>(</font><font color=Magenta>"(...) no =&gt;"</font><font color=Cyan>)</font>-<a name="line-111"></a>        v <font color=Red>-&gt;</font> debug v <font color=Cyan>(</font><font color=Magenta>"no Conid or (...)"</font><font color=Cyan>)</font>-<a name="line-112"></a>    <u><font color=Green>where</font></u> debug   <u><font color=Green>_</font></u>   <u><font color=Green>_</font></u> <font color=Red>=</font> Nothing-<a name="line-113"></a>       <font color=Blue>-- debug (s:t) c = error ("HsColour: getConid failed: "++show s</font>-<a name="line-114"></a>       <font color=Blue>--                       ++"\n  in the context of: "++c)</font>-<a name="line-115"></a>-<a name="line-116"></a><a name="context"></a><font color=Blue>-- jump past possible class context</font>-<a name="line-117"></a>context stream<font color=Red>@</font><font color=Cyan>(</font><font color=Cyan>(</font>Keyglyph<font color=Cyan>,</font><font color=Magenta>"="</font><font color=Cyan>)</font><b><font color=Red>:</font></b><u><font color=Green>_</font></u><font color=Cyan>)</font> <font color=Red>=</font> stream-<a name="line-118"></a>context stream<font color=Red>@</font><font color=Cyan>(</font><font color=Cyan>(</font>Keyglyph<font color=Cyan>,</font><font color=Magenta>"=&gt;"</font><font color=Cyan>)</font><b><font color=Red>:</font></b><u><font color=Green>_</font></u><font color=Cyan>)</font> <font color=Red>=</font> stream-<a name="line-119"></a>context <font color=Cyan>(</font><u><font color=Green>_</font></u><b><font color=Red>:</font></b>stream<font color=Cyan>)</font> <font color=Red>=</font> context stream-<a name="line-120"></a>context [] <font color=Red>=</font> []-<a name="line-121"></a>-<a name="line-122"></a><a name="ST"></a><font color=Blue>-- simple implementation of a string lookup table.</font>-<a name="line-123"></a><a name="ST"></a><font color=Blue>-- replace this with something more sophisticated if needed.</font>-<a name="line-124"></a><a name="ST"></a><u><font color=Green>type</font></u> ST <font color=Red>=</font> <font color=Red>[</font>String<font color=Red>]</font>-<a name="line-125"></a>-<a name="line-126"></a><a name="emptyST"></a>emptyST <font color=Red>::</font> ST-<a name="line-127"></a>emptyST <font color=Red>=</font> []-<a name="line-128"></a>-<a name="line-129"></a><a name="insertST"></a>insertST <font color=Red>::</font> String <font color=Red>-&gt;</font> ST <font color=Red>-&gt;</font> ST-<a name="line-130"></a>insertST k st <font color=Red>=</font> insert k st-<a name="line-131"></a>-<a name="line-132"></a><a name="inST"></a>inST <font color=Red>::</font> String <font color=Red>-&gt;</font> ST <font color=Red>-&gt;</font> Bool-<a name="line-133"></a>inST k st <font color=Red>=</font> k <font color=Cyan>`elem`</font> st-</pre>-</body>-</html>
− docs/hscolour/Language/Haskell/HsColour/CSS.html
@@ -1,79 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">-<html>-<head>-<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->-<title>Language/Haskell/HsColour/CSS.hs</title>-</head>-<body>-<pre><a name="line-1"></a><font color=Blue>-- | Formats Haskell source code as HTML with CSS.</font>-<a name="line-2"></a><u><font color=Green>module</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>CSS <font color=Cyan>(</font>hscolour<font color=Cyan>,</font>top'n'tail<font color=Cyan>)</font> <u><font color=Green>where</font></u>-<a name="line-3"></a>-<a name="line-4"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Anchors-<a name="line-5"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Classify <u><font color=Green>as</font></u> Classify-<a name="line-6"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>HTML <font color=Cyan>(</font>renderAnchors<font color=Cyan>,</font> renderComment<font color=Cyan>,</font>-<a name="line-7"></a>                                       renderNewLinesAnchors<font color=Cyan>,</font> escape<font color=Cyan>)</font>-<a name="line-8"></a>-<a name="line-9"></a><a name="hscolour"></a><font color=Blue>-- | Formats Haskell source code as a complete HTML document with CSS.</font>-<a name="line-10"></a>hscolour <font color=Red>::</font> Bool   <font color=Blue>-- ^ Whether to include anchors.</font>-<a name="line-11"></a>         <font color=Red>-&gt;</font> String <font color=Blue>-- ^ Haskell source code.</font>-<a name="line-12"></a>         <font color=Red>-&gt;</font> String <font color=Blue>-- ^ An HTML document containing the coloured </font>-<a name="line-13"></a>                   <font color=Blue>--   Haskell source code.</font>-<a name="line-14"></a>hscolour anchor <font color=Red>=</font>-<a name="line-15"></a>  pre-<a name="line-16"></a>  <font color=Cyan>.</font> <font color=Cyan>(</font><u><font color=Green>if</font></u> anchor -<a name="line-17"></a>        <u><font color=Green>then</font></u> renderNewLinesAnchors-<a name="line-18"></a>             <font color=Cyan>.</font> concatMap <font color=Cyan>(</font>renderAnchors renderToken<font color=Cyan>)</font>-<a name="line-19"></a>             <font color=Cyan>.</font> insertAnchors-<a name="line-20"></a>        <u><font color=Green>else</font></u> concatMap renderToken<font color=Cyan>)</font>-<a name="line-21"></a>  <font color=Cyan>.</font> tokenise-<a name="line-22"></a>-<a name="line-23"></a><a name="top'n'tail"></a>top'n'tail <font color=Red>::</font> String <font color=Red>-&gt;</font> String <font color=Red>-&gt;</font> String-<a name="line-24"></a>top'n'tail title  <font color=Red>=</font> <font color=Cyan>(</font>cssPrefix title <font color=Cyan>++</font><font color=Cyan>)</font> <font color=Cyan>.</font> <font color=Cyan>(</font><font color=Cyan>++</font>cssSuffix<font color=Cyan>)</font>-<a name="line-25"></a>-<a name="line-26"></a><a name="pre"></a>pre <font color=Red>::</font> String <font color=Red>-&gt;</font> String-<a name="line-27"></a>pre <font color=Red>=</font> <font color=Cyan>(</font><font color=Magenta>"&lt;pre&gt;"</font><font color=Cyan>++</font><font color=Cyan>)</font> <font color=Cyan>.</font> <font color=Cyan>(</font><font color=Cyan>++</font><font color=Magenta>"&lt;/pre&gt;"</font><font color=Cyan>)</font>-<a name="line-28"></a>-<a name="line-29"></a><a name="renderToken"></a>renderToken <font color=Red>::</font> <font color=Cyan>(</font>TokenType<font color=Cyan>,</font>String<font color=Cyan>)</font> <font color=Red>-&gt;</font> String-<a name="line-30"></a>renderToken <font color=Cyan>(</font>cls<font color=Cyan>,</font>text<font color=Cyan>)</font> <font color=Red>=</font>-<a name="line-31"></a>        before <font color=Cyan>++</font> <font color=Cyan>(</font><u><font color=Green>if</font></u> cls <font color=Cyan>==</font> Comment <u><font color=Green>then</font></u> renderComment text <u><font color=Green>else</font></u> escape text<font color=Cyan>)</font> <font color=Cyan>++</font> after-<a name="line-32"></a>    <u><font color=Green>where</font></u>-<a name="line-33"></a>        before <font color=Red>=</font> <u><font color=Green>if</font></u> null cls2 <u><font color=Green>then</font></u> <font color=Magenta>""</font> <u><font color=Green>else</font></u> <font color=Magenta>"&lt;span class='"</font> <font color=Cyan>++</font> cls2 <font color=Cyan>++</font> <font color=Magenta>"'&gt;"</font>-<a name="line-34"></a>        after  <font color=Red>=</font> <u><font color=Green>if</font></u> null cls2 <u><font color=Green>then</font></u> <font color=Magenta>""</font> <u><font color=Green>else</font></u> <font color=Magenta>"&lt;/span&gt;"</font>-<a name="line-35"></a>        cls2 <font color=Red>=</font> cssClass cls-<a name="line-36"></a>-<a name="line-37"></a>-<a name="line-38"></a><a name="cssClass"></a>cssClass Keyword  <font color=Red>=</font> <font color=Magenta>"hs-keyword"</font>-<a name="line-39"></a>cssClass Keyglyph <font color=Red>=</font> <font color=Magenta>"hs-keyglyph"</font>-<a name="line-40"></a>cssClass Layout   <font color=Red>=</font> <font color=Magenta>"hs-layout"</font>-<a name="line-41"></a>cssClass Comment  <font color=Red>=</font> <font color=Magenta>"hs-comment"</font>-<a name="line-42"></a>cssClass Conid    <font color=Red>=</font> <font color=Magenta>"hs-conid"</font>-<a name="line-43"></a>cssClass Varid    <font color=Red>=</font> <font color=Magenta>"hs-varid"</font>-<a name="line-44"></a>cssClass Conop    <font color=Red>=</font> <font color=Magenta>"hs-conop"</font>-<a name="line-45"></a>cssClass Varop    <font color=Red>=</font> <font color=Magenta>"hs-varop"</font>-<a name="line-46"></a>cssClass String   <font color=Red>=</font> <font color=Magenta>"hs-str"</font>-<a name="line-47"></a>cssClass Char     <font color=Red>=</font> <font color=Magenta>"hs-chr"</font>-<a name="line-48"></a>cssClass Number   <font color=Red>=</font> <font color=Magenta>"hs-num"</font>-<a name="line-49"></a>cssClass Cpp      <font color=Red>=</font> <font color=Magenta>"hs-cpp"</font>-<a name="line-50"></a>cssClass Error    <font color=Red>=</font> <font color=Magenta>"hs-sel"</font>-<a name="line-51"></a>cssClass Definition <font color=Red>=</font> <font color=Magenta>"hs-definition"</font>-<a name="line-52"></a>cssClass <u><font color=Green>_</font></u>        <font color=Red>=</font> <font color=Magenta>""</font>-<a name="line-53"></a>-<a name="line-54"></a>-<a name="line-55"></a><a name="cssPrefix"></a>cssPrefix title <font color=Red>=</font> unlines-<a name="line-56"></a>    <font color=Red>[</font><font color=Magenta>"&lt;!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"&gt;"</font>-<a name="line-57"></a>    <font color=Cyan>,</font><font color=Magenta>"&lt;html&gt;"</font>-<a name="line-58"></a>    <font color=Cyan>,</font><font color=Magenta>"&lt;head&gt;"</font>-<a name="line-59"></a>    <font color=Cyan>,</font><font color=Magenta>"&lt;!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ --&gt;"</font>-<a name="line-60"></a>    <font color=Cyan>,</font><font color=Magenta>"&lt;title&gt;"</font><font color=Cyan>++</font>title<font color=Cyan>++</font><font color=Magenta>"&lt;/title&gt;"</font>-<a name="line-61"></a>    <font color=Cyan>,</font><font color=Magenta>"&lt;link type='text/css' rel='stylesheet' href='hscolour.css' /&gt;"</font>-<a name="line-62"></a>    <font color=Cyan>,</font><font color=Magenta>"&lt;/head&gt;"</font>-<a name="line-63"></a>    <font color=Cyan>,</font><font color=Magenta>"&lt;body&gt;"</font>-<a name="line-64"></a>    <font color=Red>]</font>-<a name="line-65"></a>    -<a name="line-66"></a><a name="cssSuffix"></a>cssSuffix <font color=Red>=</font> unlines-<a name="line-67"></a>    <font color=Red>[</font><font color=Magenta>"&lt;/body&gt;"</font>-<a name="line-68"></a>    <font color=Cyan>,</font><font color=Magenta>"&lt;/html&gt;"</font>-<a name="line-69"></a>    <font color=Red>]</font>-</pre>-</body>-</html>
− docs/hscolour/Language/Haskell/HsColour/Classify.html
@@ -1,131 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">-<html>-<head>-<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->-<title>Language/Haskell/HsColour/Classify.hs</title>-</head>-<body>-<pre><a name="line-1"></a><u><font color=Green>module</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Classify-<a name="line-2"></a>  <font color=Cyan>(</font> TokenType<font color=Cyan>(</font><font color=Red>..</font><font color=Cyan>)</font>-<a name="line-3"></a>  <font color=Cyan>,</font> tokenise-<a name="line-4"></a>  <font color=Cyan>)</font> <u><font color=Green>where</font></u>-<a name="line-5"></a>-<a name="line-6"></a><u><font color=Green>import</font></u> Char-<a name="line-7"></a><u><font color=Green>import</font></u> List-<a name="line-8"></a>-<a name="line-9"></a><a name="tokenise"></a><font color=Blue>-- | Lex Haskell source code into an annotated token stream, without</font>-<a name="line-10"></a><font color=Blue>--   discarding any characters or layout.</font>-<a name="line-11"></a>tokenise <font color=Red>::</font> String <font color=Red>-&gt;</font> <font color=Red>[</font><font color=Cyan>(</font>TokenType<font color=Cyan>,</font>String<font color=Cyan>)</font><font color=Red>]</font>-<a name="line-12"></a>tokenise str <font color=Red>=</font> -<a name="line-13"></a>    <u><font color=Green>let</font></u> chunks <font color=Red>=</font> glue <font color=Cyan>.</font> chunk <font color=Cyan>$</font> str -<a name="line-14"></a>        newline <font color=Red>=</font> True <b><font color=Red>:</font></b> <font color=Cyan>(</font>map <font color=Cyan>(</font><font color=Magenta>"\n"</font> <font color=Cyan>`isPrefixOf`</font><font color=Cyan>)</font> chunks<font color=Cyan>)</font>-<a name="line-15"></a>    <u><font color=Green>in</font></u> map <font color=Cyan>(</font><font color=Red>\</font><font color=Cyan>(</font>s<font color=Cyan>,</font>n<font color=Cyan>)</font><font color=Red>-&gt;</font> <font color=Cyan>(</font>classify s n<font color=Cyan>,</font>s<font color=Cyan>)</font><font color=Cyan>)</font> <font color=Cyan>(</font>zip chunks newline<font color=Cyan>)</font>-<a name="line-16"></a>-<a name="line-17"></a><a name="chunk"></a><font color=Blue>-- Basic Haskell lexing, except we keep whitespace.</font>-<a name="line-18"></a>chunk <font color=Red>::</font> String <font color=Red>-&gt;</font> <font color=Red>[</font>String<font color=Red>]</font>-<a name="line-19"></a>chunk []    <font color=Red>=</font> []-<a name="line-20"></a>chunk <font color=Cyan>(</font><font color=Magenta>'\r'</font><b><font color=Red>:</font></b>s<font color=Cyan>)</font> <font color=Red>=</font> chunk s <font color=Blue>-- get rid of DOS newline stuff</font>-<a name="line-21"></a>chunk <font color=Cyan>(</font><font color=Magenta>'\n'</font><b><font color=Red>:</font></b>s<font color=Cyan>)</font> <font color=Red>=</font> <font color=Magenta>"\n"</font><b><font color=Red>:</font></b> chunk s-<a name="line-22"></a>chunk <font color=Cyan>(</font>c<b><font color=Red>:</font></b>s<font color=Cyan>)</font> <font color=Red>|</font> isLinearSpace c-<a name="line-23"></a>            <font color=Red>=</font> <font color=Cyan>(</font>c<b><font color=Red>:</font></b>ss<font color=Cyan>)</font><b><font color=Red>:</font></b> chunk rest <u><font color=Green>where</font></u> <font color=Cyan>(</font>ss<font color=Cyan>,</font>rest<font color=Cyan>)</font> <font color=Red>=</font> span isLinearSpace s-<a name="line-24"></a>chunk <font color=Cyan>(</font><font color=Magenta>'{'</font><b><font color=Red>:</font></b><font color=Magenta>'-'</font><b><font color=Red>:</font></b>s<font color=Cyan>)</font> <font color=Red>=</font> <u><font color=Green>let</font></u> <font color=Cyan>(</font>com<font color=Cyan>,</font>s'<font color=Cyan>)</font> <font color=Red>=</font> nestcomment <font color=Magenta>0</font> s-<a name="line-25"></a>                    <u><font color=Green>in</font></u> <font color=Cyan>(</font><font color=Magenta>'{'</font><b><font color=Red>:</font></b><font color=Magenta>'-'</font><b><font color=Red>:</font></b>com<font color=Cyan>)</font> <b><font color=Red>:</font></b> chunk s'-<a name="line-26"></a>chunk s <font color=Red>=</font> <u><font color=Green>case</font></u> Prelude<font color=Cyan>.</font>lex s <u><font color=Green>of</font></u>-<a name="line-27"></a>              []             <font color=Red>-&gt;</font> <font color=Red>[</font>head s<font color=Red>]</font><b><font color=Red>:</font></b> chunk <font color=Cyan>(</font>tail s<font color=Cyan>)</font> <font color=Blue>-- e.g. inside comment</font>-<a name="line-28"></a>              <font color=Cyan>(</font><font color=Cyan>(</font>tok<font color=Red>@</font><font color=Cyan>(</font><font color=Magenta>'-'</font><b><font color=Red>:</font></b><font color=Magenta>'-'</font><b><font color=Red>:</font></b><u><font color=Green>_</font></u><font color=Cyan>)</font><font color=Cyan>,</font>rest<font color=Cyan>)</font><b><font color=Red>:</font></b><u><font color=Green>_</font></u><font color=Cyan>)</font>-<a name="line-29"></a>                  <font color=Red>|</font> all <font color=Cyan>(</font><font color=Cyan>==</font><font color=Magenta>'-'</font><font color=Cyan>)</font> tok <font color=Red>-&gt;</font> <font color=Cyan>(</font>tok<font color=Cyan>++</font>com<font color=Cyan>)</font><b><font color=Red>:</font></b> chunk s'-<a name="line-30"></a>                                       <u><font color=Green>where</font></u> <font color=Cyan>(</font>com<font color=Cyan>,</font>s'<font color=Cyan>)</font> <font color=Red>=</font> eolcomment rest-<a name="line-31"></a>              <font color=Cyan>(</font><font color=Cyan>(</font>tok<font color=Cyan>,</font>rest<font color=Cyan>)</font><b><font color=Red>:</font></b><u><font color=Green>_</font></u><font color=Cyan>)</font> <font color=Red>-&gt;</font> tok<b><font color=Red>:</font></b> chunk rest-<a name="line-32"></a>-<a name="line-33"></a><a name="isLinearSpace"></a>isLinearSpace c <font color=Red>=</font> c <font color=Cyan>`elem`</font> <font color=Magenta>" \t\f"</font> <font color=Blue>-- " \t\xa0"</font>-<a name="line-34"></a>-<a name="line-35"></a><a name="glue"></a><font color=Blue>-- Glue sequences of tokens into more useful blobs</font>-<a name="line-36"></a><font color=Blue>--glue (q:".":n:rest) | Char.isUpper (head q)	-- qualified names</font>-<a name="line-37"></a><font color=Blue>--                    = glue ((q++"."++n): rest)</font>-<a name="line-38"></a>glue <font color=Cyan>(</font><font color=Magenta>"`"</font><b><font color=Red>:</font></b>rest<font color=Cyan>)</font> <font color=Red>=</font>				<font color=Blue>-- `varid` -&gt; varop</font>-<a name="line-39"></a>  <u><font color=Green>case</font></u> glue rest <u><font color=Green>of</font></u>-<a name="line-40"></a>    <font color=Cyan>(</font>qn<b><font color=Red>:</font></b><font color=Magenta>"`"</font><b><font color=Red>:</font></b>rest<font color=Cyan>)</font> <font color=Red>-&gt;</font> <font color=Cyan>(</font><font color=Magenta>"`"</font><font color=Cyan>++</font>qn<font color=Cyan>++</font><font color=Magenta>"`"</font><font color=Cyan>)</font><b><font color=Red>:</font></b> glue rest-<a name="line-41"></a>    <u><font color=Green>_</font></u>             <font color=Red>-&gt;</font> <font color=Magenta>"`"</font><b><font color=Red>:</font></b> glue rest-<a name="line-42"></a>glue <font color=Cyan>(</font>s<b><font color=Red>:</font></b>ss<font color=Cyan>)</font>       <font color=Red>|</font> all <font color=Cyan>(</font><font color=Cyan>==</font><font color=Magenta>'-'</font><font color=Cyan>)</font> s <font color=Cyan>&amp;&amp;</font> length s <font color=Cyan>&gt;=</font><font color=Magenta>2</font>	<font color=Blue>-- eol comment</font>-<a name="line-43"></a>                  <font color=Red>=</font> <font color=Cyan>(</font>s<font color=Cyan>++</font>concat c<font color=Cyan>)</font><b><font color=Red>:</font></b> glue rest-<a name="line-44"></a>                  <u><font color=Green>where</font></u> <font color=Cyan>(</font>c<font color=Cyan>,</font>rest<font color=Cyan>)</font> <font color=Red>=</font> break <font color=Cyan>(</font><font color=Magenta>'\n'</font><font color=Cyan>`elem`</font><font color=Cyan>)</font> ss-<a name="line-45"></a><font color=Blue>--glue ("{":"-":ss)  = ("{-"++c): glue rest	-- nested comment</font>-<a name="line-46"></a><font color=Blue>--                  where (c,rest) = nestcomment 0 ss</font>-<a name="line-47"></a>glue <font color=Cyan>(</font><font color=Magenta>"("</font><b><font color=Red>:</font></b>ss<font color=Cyan>)</font> <font color=Red>=</font> <u><font color=Green>case</font></u> rest <u><font color=Green>of</font></u>-<a name="line-48"></a>                <font color=Magenta>")"</font><b><font color=Red>:</font></b>rest <font color=Red>-&gt;</font> <font color=Cyan>(</font><font color=Magenta>"("</font> <font color=Cyan>++</font> concat tuple <font color=Cyan>++</font> <font color=Magenta>")"</font><font color=Cyan>)</font> <b><font color=Red>:</font></b> glue rest-<a name="line-49"></a>                <u><font color=Green>_</font></u>         <font color=Red>-&gt;</font> <font color=Magenta>"("</font> <b><font color=Red>:</font></b> glue ss-<a name="line-50"></a>              <u><font color=Green>where</font></u> <font color=Cyan>(</font>tuple<font color=Cyan>,</font>rest<font color=Cyan>)</font> <font color=Red>=</font> span <font color=Cyan>(</font><font color=Cyan>==</font><font color=Magenta>","</font><font color=Cyan>)</font> ss-<a name="line-51"></a>glue <font color=Cyan>(</font><font color=Magenta>"["</font><b><font color=Red>:</font></b><font color=Magenta>"]"</font><b><font color=Red>:</font></b>ss<font color=Cyan>)</font> <font color=Red>=</font> <font color=Magenta>"[]"</font> <b><font color=Red>:</font></b> glue ss-<a name="line-52"></a>glue <font color=Cyan>(</font><font color=Magenta>"\n"</font><b><font color=Red>:</font></b><font color=Magenta>"#"</font><b><font color=Red>:</font></b>ss<font color=Cyan>)</font><font color=Red>=</font> <font color=Magenta>"\n"</font> <b><font color=Red>:</font></b> <font color=Cyan>(</font><font color=Magenta>'#'</font><b><font color=Red>:</font></b>concat line<font color=Cyan>)</font> <b><font color=Red>:</font></b> glue rest-<a name="line-53"></a>                  <u><font color=Green>where</font></u> <font color=Cyan>(</font>line<font color=Cyan>,</font>rest<font color=Cyan>)</font> <font color=Red>=</font> break <font color=Cyan>(</font><font color=Magenta>'\n'</font><font color=Cyan>`elem`</font><font color=Cyan>)</font> ss-<a name="line-54"></a>glue <font color=Cyan>(</font>s<b><font color=Red>:</font></b>ss<font color=Cyan>)</font>       <font color=Red>=</font> s<b><font color=Red>:</font></b> glue ss-<a name="line-55"></a>glue []           <font color=Red>=</font> []-<a name="line-56"></a>-<a name="line-57"></a><a name="nestcomment"></a><font color=Blue>-- Deal with comments.</font>-<a name="line-58"></a>nestcomment <font color=Red>::</font> Int <font color=Red>-&gt;</font> String <font color=Red>-&gt;</font> <font color=Cyan>(</font>String<font color=Cyan>,</font>String<font color=Cyan>)</font>-<a name="line-59"></a>nestcomment n <font color=Cyan>(</font><font color=Magenta>'{'</font><b><font color=Red>:</font></b><font color=Magenta>'-'</font><b><font color=Red>:</font></b>ss<font color=Cyan>)</font> <font color=Red>|</font> n<font color=Cyan>&gt;=</font><font color=Magenta>0</font> <font color=Red>=</font> <font color=Cyan>(</font><font color=Cyan>(</font><font color=Magenta>"{-"</font><font color=Cyan>++</font>cs<font color=Cyan>)</font><font color=Cyan>,</font>rm<font color=Cyan>)</font>-<a name="line-60"></a>                                  <u><font color=Green>where</font></u> <font color=Cyan>(</font>cs<font color=Cyan>,</font>rm<font color=Cyan>)</font> <font color=Red>=</font> nestcomment <font color=Cyan>(</font>n<font color=Cyan>+</font><font color=Magenta>1</font><font color=Cyan>)</font> ss-<a name="line-61"></a>nestcomment n <font color=Cyan>(</font><font color=Magenta>'-'</font><b><font color=Red>:</font></b><font color=Magenta>'}'</font><b><font color=Red>:</font></b>ss<font color=Cyan>)</font> <font color=Red>|</font> n<font color=Cyan>&gt;</font><font color=Magenta>0</font>  <font color=Red>=</font> <font color=Cyan>(</font><font color=Cyan>(</font><font color=Magenta>"-}"</font><font color=Cyan>++</font>cs<font color=Cyan>)</font><font color=Cyan>,</font>rm<font color=Cyan>)</font>-<a name="line-62"></a>                                  <u><font color=Green>where</font></u> <font color=Cyan>(</font>cs<font color=Cyan>,</font>rm<font color=Cyan>)</font> <font color=Red>=</font> nestcomment <font color=Cyan>(</font>n<font color=Blue>-</font><font color=Magenta>1</font><font color=Cyan>)</font> ss-<a name="line-63"></a>nestcomment n <font color=Cyan>(</font><font color=Magenta>'-'</font><b><font color=Red>:</font></b><font color=Magenta>'}'</font><b><font color=Red>:</font></b>ss<font color=Cyan>)</font> <font color=Red>|</font> n<font color=Cyan>==</font><font color=Magenta>0</font> <font color=Red>=</font> <font color=Cyan>(</font><font color=Magenta>"-}"</font><font color=Cyan>,</font>ss<font color=Cyan>)</font>-<a name="line-64"></a>nestcomment n <font color=Cyan>(</font>s<b><font color=Red>:</font></b>ss<font color=Cyan>)</font>       <font color=Red>|</font> n<font color=Cyan>&gt;=</font><font color=Magenta>0</font> <font color=Red>=</font> <font color=Cyan>(</font><font color=Cyan>(</font>s<b><font color=Red>:</font></b>cs<font color=Cyan>)</font><font color=Cyan>,</font>rm<font color=Cyan>)</font>-<a name="line-65"></a>                                  <u><font color=Green>where</font></u> <font color=Cyan>(</font>cs<font color=Cyan>,</font>rm<font color=Cyan>)</font> <font color=Red>=</font> nestcomment n ss-<a name="line-66"></a>nestcomment n [] <font color=Red>=</font> <font color=Cyan>(</font>[]<font color=Cyan>,</font>[]<font color=Cyan>)</font>-<a name="line-67"></a>-<a name="line-68"></a><a name="eolcomment"></a>eolcomment <font color=Red>::</font> String <font color=Red>-&gt;</font> <font color=Cyan>(</font>String<font color=Cyan>,</font>String<font color=Cyan>)</font>-<a name="line-69"></a>eolcomment s<font color=Red>@</font><font color=Cyan>(</font><font color=Magenta>'\n'</font><b><font color=Red>:</font></b><u><font color=Green>_</font></u><font color=Cyan>)</font> <font color=Red>=</font> <font color=Cyan>(</font>[]<font color=Cyan>,</font> s<font color=Cyan>)</font>-<a name="line-70"></a>eolcomment <font color=Cyan>(</font><font color=Magenta>'\r'</font><b><font color=Red>:</font></b>s<font color=Cyan>)</font>   <font color=Red>=</font> eolcomment s-<a name="line-71"></a>eolcomment <font color=Cyan>(</font>c<b><font color=Red>:</font></b>s<font color=Cyan>)</font>      <font color=Red>=</font> <font color=Cyan>(</font>c<b><font color=Red>:</font></b>cs<font color=Cyan>,</font> s'<font color=Cyan>)</font> <u><font color=Green>where</font></u> <font color=Cyan>(</font>cs<font color=Cyan>,</font>s'<font color=Cyan>)</font> <font color=Red>=</font> eolcomment s-<a name="line-72"></a>eolcomment []         <font color=Red>=</font> <font color=Cyan>(</font>[]<font color=Cyan>,</font>[]<font color=Cyan>)</font>-<a name="line-73"></a>-<a name="line-74"></a><a name="TokenType"></a><font color=Blue>-- | Classification of tokens as lexical entities</font>-<a name="line-75"></a><a name="TokenType"></a><u><font color=Green>data</font></u> TokenType <font color=Red>=</font>-<a name="line-76"></a>  Space <font color=Red>|</font> Keyword <font color=Red>|</font> Keyglyph <font color=Red>|</font> Layout <font color=Red>|</font> Comment <font color=Red>|</font> Conid <font color=Red>|</font> Varid <font color=Red>|</font>-<a name="line-77"></a>  Conop <font color=Red>|</font> Varop   <font color=Red>|</font> String   <font color=Red>|</font> Char   <font color=Red>|</font> Number  <font color=Red>|</font> Cpp   <font color=Red>|</font> Error <font color=Red>|</font>-<a name="line-78"></a>  Definition-<a name="line-79"></a>  <u><font color=Green>deriving</font></u> <font color=Cyan>(</font>Eq<font color=Cyan>,</font>Show<font color=Cyan>)</font>-<a name="line-80"></a>-<a name="line-81"></a><a name="classify"></a>classify <font color=Red>::</font> String <font color=Red>-&gt;</font> Bool <font color=Red>-&gt;</font> TokenType-<a name="line-82"></a>classify s<font color=Red>@</font><font color=Cyan>(</font>h<b><font color=Red>:</font></b>t<font color=Cyan>)</font> newline-<a name="line-83"></a>    <font color=Red>|</font> isSpace h              <font color=Red>=</font> Space-<a name="line-84"></a>    <font color=Red>|</font> all <font color=Cyan>(</font><font color=Cyan>==</font><font color=Magenta>'-'</font><font color=Cyan>)</font> s          <font color=Red>=</font> Comment-<a name="line-85"></a>    <font color=Red>|</font> <font color=Magenta>"--"</font> <font color=Cyan>`isPrefixOf`</font> s-<a name="line-86"></a>      <font color=Cyan>&amp;&amp;</font> any isSpace s       <font color=Red>=</font> Comment		<font color=Blue>-- not fully correct</font>-<a name="line-87"></a>    <font color=Red>|</font> <font color=Magenta>"{-"</font> <font color=Cyan>`isPrefixOf`</font> s    <font color=Red>=</font> Comment-<a name="line-88"></a>    <font color=Red>|</font> s <font color=Cyan>`elem`</font> keywords      <font color=Red>=</font> Keyword-<a name="line-89"></a>    <font color=Red>|</font> s <font color=Cyan>`elem`</font> keyglyphs     <font color=Red>=</font> Keyglyph-<a name="line-90"></a>    <font color=Red>|</font> s <font color=Cyan>`elem`</font> layoutchars   <font color=Red>=</font> Layout-<a name="line-91"></a>    <font color=Red>|</font> isUpper h              <font color=Red>=</font> Conid-<a name="line-92"></a>    <font color=Red>|</font> s <font color=Cyan>==</font> <font color=Magenta>"[]"</font>              <font color=Red>=</font> Conid-<a name="line-93"></a>    <font color=Red>|</font> h <font color=Cyan>==</font> <font color=Magenta>'('</font> <font color=Cyan>&amp;&amp;</font> isTupleTail t <font color=Red>=</font> Conid-<a name="line-94"></a>    <font color=Red>|</font> h <font color=Cyan>==</font> <font color=Magenta>'#'</font>               <font color=Red>=</font> Cpp-<a name="line-95"></a>    <font color=Red>|</font> isLower h              <font color=Red>=</font> <u><font color=Green>if</font></u> newline <u><font color=Green>then</font></u> Definition <u><font color=Green>else</font></u> Varid-<a name="line-96"></a>    <font color=Red>|</font> h <font color=Cyan>`elem`</font> symbols       <font color=Red>=</font> Varop-<a name="line-97"></a>    <font color=Red>|</font> h<font color=Cyan>==</font><font color=Magenta>':'</font>                 <font color=Red>=</font> Conop-<a name="line-98"></a>    <font color=Red>|</font> h<font color=Cyan>==</font><font color=Magenta>'`'</font>                 <font color=Red>=</font> Varop-<a name="line-99"></a>    <font color=Red>|</font> h<font color=Cyan>==</font><font color=Magenta>'"'</font>                 <font color=Red>=</font> String-<a name="line-100"></a>    <font color=Red>|</font> h<font color=Cyan>==</font><font color=Magenta>'\''</font>                <font color=Red>=</font> Char-<a name="line-101"></a>    <font color=Red>|</font> isDigit h              <font color=Red>=</font> Number-<a name="line-102"></a>    <font color=Red>|</font> otherwise              <font color=Red>=</font> Error-<a name="line-103"></a>classify <u><font color=Green>_</font></u> <u><font color=Green>_</font></u> <font color=Red>=</font> Space-<a name="line-104"></a>-<a name="line-105"></a><a name="isTupleTail"></a>isTupleTail <font color=Red>[</font><font color=Magenta>')'</font><font color=Red>]</font> <font color=Red>=</font> True-<a name="line-106"></a>isTupleTail <font color=Cyan>(</font><font color=Magenta>','</font><b><font color=Red>:</font></b>xs<font color=Cyan>)</font> <font color=Red>=</font> isTupleTail xs-<a name="line-107"></a>isTupleTail <u><font color=Green>_</font></u> <font color=Red>=</font> False-<a name="line-108"></a>-<a name="line-109"></a>-<a name="line-110"></a><a name="keywords"></a><font color=Blue>-- Haskell keywords</font>-<a name="line-111"></a>keywords <font color=Red>=</font>-<a name="line-112"></a>  <font color=Red>[</font><font color=Magenta>"case"</font><font color=Cyan>,</font><font color=Magenta>"class"</font><font color=Cyan>,</font><font color=Magenta>"data"</font><font color=Cyan>,</font><font color=Magenta>"default"</font><font color=Cyan>,</font><font color=Magenta>"deriving"</font><font color=Cyan>,</font><font color=Magenta>"do"</font><font color=Cyan>,</font><font color=Magenta>"else"</font><font color=Cyan>,</font><font color=Magenta>"forall"</font>-<a name="line-113"></a>  <font color=Cyan>,</font><font color=Magenta>"if"</font><font color=Cyan>,</font><font color=Magenta>"import"</font><font color=Cyan>,</font><font color=Magenta>"in"</font><font color=Cyan>,</font><font color=Magenta>"infix"</font><font color=Cyan>,</font><font color=Magenta>"infixl"</font><font color=Cyan>,</font><font color=Magenta>"infixr"</font><font color=Cyan>,</font><font color=Magenta>"instance"</font><font color=Cyan>,</font><font color=Magenta>"let"</font><font color=Cyan>,</font><font color=Magenta>"module"</font>-<a name="line-114"></a>  <font color=Cyan>,</font><font color=Magenta>"newtype"</font><font color=Cyan>,</font><font color=Magenta>"of"</font><font color=Cyan>,</font><font color=Magenta>"qualified"</font><font color=Cyan>,</font><font color=Magenta>"then"</font><font color=Cyan>,</font><font color=Magenta>"type"</font><font color=Cyan>,</font><font color=Magenta>"where"</font><font color=Cyan>,</font><font color=Magenta>"_"</font>-<a name="line-115"></a>  <font color=Cyan>,</font><font color=Magenta>"foreign"</font><font color=Cyan>,</font><font color=Magenta>"ccall"</font><font color=Cyan>,</font><font color=Magenta>"as"</font><font color=Cyan>,</font><font color=Magenta>"safe"</font><font color=Cyan>,</font><font color=Magenta>"unsafe"</font><font color=Red>]</font>-<a name="line-116"></a><a name="keyglyphs"></a>keyglyphs <font color=Red>=</font>-<a name="line-117"></a>  <font color=Red>[</font><font color=Magenta>".."</font><font color=Cyan>,</font><font color=Magenta>"::"</font><font color=Cyan>,</font><font color=Magenta>"="</font><font color=Cyan>,</font><font color=Magenta>"\\"</font><font color=Cyan>,</font><font color=Magenta>"|"</font><font color=Cyan>,</font><font color=Magenta>"&lt;-"</font><font color=Cyan>,</font><font color=Magenta>"-&gt;"</font><font color=Cyan>,</font><font color=Magenta>"@"</font><font color=Cyan>,</font><font color=Magenta>"~"</font><font color=Cyan>,</font><font color=Magenta>"=&gt;"</font><font color=Cyan>,</font><font color=Magenta>"["</font><font color=Cyan>,</font><font color=Magenta>"]"</font><font color=Red>]</font>-<a name="line-118"></a><a name="layoutchars"></a>layoutchars <font color=Red>=</font>-<a name="line-119"></a>  map <font color=Cyan>(</font><b><font color=Red>:</font></b>[]<font color=Cyan>)</font> <font color=Magenta>";{}(),"</font>-<a name="line-120"></a><a name="symbols"></a>symbols <font color=Red>=</font>-<a name="line-121"></a>  <font color=Magenta>"!#$%&amp;*+./&lt;=&gt;?@\\^|-~"</font>-</pre>-</body>-</html>
− docs/hscolour/Language/Haskell/HsColour/ColourHighlight.html
@@ -1,34 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">-<html>-<head>-<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->-<title>Language/Haskell/HsColour/ColourHighlight.hs</title>-</head>-<body>-<pre><a name="line-1"></a><u><font color=Green>module</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>ColourHighlight-<a name="line-2"></a>  <font color=Cyan>(</font> Colour<font color=Cyan>(</font><font color=Red>..</font><font color=Cyan>)</font>-<a name="line-3"></a>  <font color=Cyan>,</font> Highlight<font color=Cyan>(</font><font color=Red>..</font><font color=Cyan>)</font>-<a name="line-4"></a>  <font color=Cyan>)</font> <u><font color=Green>where</font></u>-<a name="line-5"></a>-<a name="line-6"></a><a name="Colour"></a><font color=Blue>-- | Colours supported by ANSI codes.</font>-<a name="line-7"></a><a name="Colour"></a><u><font color=Green>data</font></u> Colour <font color=Red>=</font> Black <font color=Red>|</font> Red <font color=Red>|</font> Green <font color=Red>|</font> Yellow <font color=Red>|</font> Blue <font color=Red>|</font> Magenta <font color=Red>|</font> Cyan <font color=Red>|</font> White-<a name="line-8"></a>  <u><font color=Green>deriving</font></u> <font color=Cyan>(</font>Eq<font color=Cyan>,</font>Show<font color=Cyan>,</font>Read<font color=Cyan>,</font>Enum<font color=Cyan>)</font>-<a name="line-9"></a>-<a name="line-10"></a><a name="Highlight"></a><font color=Blue>-- | Types of highlighting supported by ANSI codes (and some extra styles).</font>-<a name="line-11"></a><a name="Highlight"></a><u><font color=Green>data</font></u> Highlight <font color=Red>=</font>-<a name="line-12"></a>    Normal-<a name="line-13"></a>  <font color=Red>|</font> Bold-<a name="line-14"></a>  <font color=Red>|</font> Dim-<a name="line-15"></a>  <font color=Red>|</font> Underscore-<a name="line-16"></a>  <font color=Red>|</font> Blink-<a name="line-17"></a>  <font color=Red>|</font> ReverseVideo-<a name="line-18"></a>  <font color=Red>|</font> Concealed-<a name="line-19"></a>  <font color=Red>|</font> Foreground Colour-<a name="line-20"></a>  <font color=Red>|</font> Background Colour-<a name="line-21"></a>  <font color=Blue>-- Above are ANSI-only.  Below are extra styles.</font>-<a name="line-22"></a>  <font color=Red>|</font> Italic-<a name="line-23"></a>  <u><font color=Green>deriving</font></u> <font color=Cyan>(</font>Eq<font color=Cyan>,</font>Show<font color=Cyan>,</font>Read<font color=Cyan>)</font>-<a name="line-24"></a>-</pre>-</body>-</html>
− docs/hscolour/Language/Haskell/HsColour/Colourise.html
@@ -1,90 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">-<html>-<head>-<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->-<title>Language/Haskell/HsColour/Colourise.hs</title>-</head>-<body>-<pre><a name="line-1"></a><u><font color=Green>module</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Colourise-<a name="line-2"></a>  <font color=Cyan>(</font> <u><font color=Green>module</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>ColourHighlight-<a name="line-3"></a>  <font color=Cyan>,</font> ColourPrefs<font color=Cyan>(</font><font color=Red>..</font><font color=Cyan>)</font>-<a name="line-4"></a>  <font color=Cyan>,</font> readColourPrefs-<a name="line-5"></a>  <font color=Cyan>,</font> defaultColourPrefs-<a name="line-6"></a>  <font color=Cyan>,</font> colourise-<a name="line-7"></a>  <font color=Cyan>)</font> <u><font color=Green>where</font></u>-<a name="line-8"></a>-<a name="line-9"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>ColourHighlight-<a name="line-10"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Classify <font color=Cyan>(</font>TokenType<font color=Cyan>(</font><font color=Red>..</font><font color=Cyan>)</font><font color=Cyan>)</font>-<a name="line-11"></a>-<a name="line-12"></a><u><font color=Green>import</font></u> IO <font color=Cyan>(</font>hPutStrLn<font color=Cyan>,</font>stderr<font color=Cyan>)</font>-<a name="line-13"></a><u><font color=Green>import</font></u> System <font color=Cyan>(</font>getEnv<font color=Cyan>)</font>-<a name="line-14"></a><u><font color=Green>import</font></u> List-<a name="line-15"></a>-<a name="line-16"></a><a name="ColourPrefs"></a><font color=Blue>-- | Colour preferences.</font>-<a name="line-17"></a><a name="ColourPrefs"></a><u><font color=Green>data</font></u> ColourPrefs <font color=Red>=</font> ColourPrefs-<a name="line-18"></a>  <font color=Cyan>{</font> keyword<font color=Cyan>,</font> keyglyph<font color=Cyan>,</font> layout<font color=Cyan>,</font> comment-<a name="line-19"></a>  <font color=Cyan>,</font> conid<font color=Cyan>,</font> varid<font color=Cyan>,</font> conop<font color=Cyan>,</font> varop-<a name="line-20"></a>  <font color=Cyan>,</font> string<font color=Cyan>,</font> char<font color=Cyan>,</font> number<font color=Cyan>,</font> cpp-<a name="line-21"></a>  <font color=Cyan>,</font> selection<font color=Cyan>,</font> variantselection<font color=Cyan>,</font> definition <font color=Red>::</font> <font color=Red>[</font>Highlight<font color=Red>]</font>-<a name="line-22"></a>  <font color=Cyan>}</font> <u><font color=Green>deriving</font></u> <font color=Cyan>(</font>Eq<font color=Cyan>,</font>Show<font color=Cyan>,</font>Read<font color=Cyan>)</font>-<a name="line-23"></a>-<a name="line-24"></a><a name="defaultColourPrefs"></a>defaultColourPrefs <font color=Red>=</font> ColourPrefs-<a name="line-25"></a>  <font color=Cyan>{</font> keyword  <font color=Red>=</font> <font color=Red>[</font>Foreground Green<font color=Cyan>,</font>Underscore<font color=Red>]</font>-<a name="line-26"></a>  <font color=Cyan>,</font> keyglyph <font color=Red>=</font> <font color=Red>[</font>Foreground Red<font color=Red>]</font>-<a name="line-27"></a>  <font color=Cyan>,</font> layout   <font color=Red>=</font> <font color=Red>[</font>Foreground Cyan<font color=Red>]</font>-<a name="line-28"></a>  <font color=Cyan>,</font> comment  <font color=Red>=</font> <font color=Red>[</font>Foreground Blue<font color=Cyan>,</font> Italic<font color=Red>]</font>-<a name="line-29"></a>  <font color=Cyan>,</font> conid    <font color=Red>=</font> <font color=Red>[</font>Normal<font color=Red>]</font>-<a name="line-30"></a>  <font color=Cyan>,</font> varid    <font color=Red>=</font> <font color=Red>[</font>Normal<font color=Red>]</font>-<a name="line-31"></a>  <font color=Cyan>,</font> conop    <font color=Red>=</font> <font color=Red>[</font>Foreground Red<font color=Cyan>,</font>Bold<font color=Red>]</font>-<a name="line-32"></a>  <font color=Cyan>,</font> varop    <font color=Red>=</font> <font color=Red>[</font>Foreground Cyan<font color=Red>]</font>-<a name="line-33"></a>  <font color=Cyan>,</font> string   <font color=Red>=</font> <font color=Red>[</font>Foreground Magenta<font color=Red>]</font>-<a name="line-34"></a>  <font color=Cyan>,</font> char     <font color=Red>=</font> <font color=Red>[</font>Foreground Magenta<font color=Red>]</font>-<a name="line-35"></a>  <font color=Cyan>,</font> number   <font color=Red>=</font> <font color=Red>[</font>Foreground Magenta<font color=Red>]</font>-<a name="line-36"></a>  <font color=Cyan>,</font> cpp      <font color=Red>=</font> <font color=Red>[</font>Foreground Magenta<font color=Cyan>,</font>Dim<font color=Red>]</font>-<a name="line-37"></a>  <font color=Cyan>,</font> selection <font color=Red>=</font> <font color=Red>[</font>Bold<font color=Cyan>,</font> Foreground Magenta<font color=Red>]</font>-<a name="line-38"></a>  <font color=Cyan>,</font> variantselection <font color=Red>=</font> <font color=Red>[</font>Dim<font color=Cyan>,</font> Foreground Red<font color=Cyan>,</font> Underscore<font color=Red>]</font>-<a name="line-39"></a>  <font color=Cyan>,</font> definition <font color=Red>=</font> <font color=Red>[</font>Foreground Blue<font color=Red>]</font>-<a name="line-40"></a>  <font color=Cyan>}</font>-<a name="line-41"></a>-<a name="line-42"></a><a name="parseColourPrefs"></a><font color=Blue>-- NOTE, should we give a warning message on a failed reading?</font>-<a name="line-43"></a>parseColourPrefs <font color=Red>::</font> String <font color=Red>-&gt;</font> String <font color=Red>-&gt;</font> IO ColourPrefs-<a name="line-44"></a>parseColourPrefs file x <font color=Red>=</font>-<a name="line-45"></a>    <u><font color=Green>case</font></u> reads x <u><font color=Green>of</font></u>-<a name="line-46"></a>        <font color=Cyan>(</font>res<font color=Cyan>,</font><u><font color=Green>_</font></u><font color=Cyan>)</font><b><font color=Red>:</font></b><u><font color=Green>_</font></u> <font color=Red>-&gt;</font> return res-<a name="line-47"></a>        <u><font color=Green>_</font></u> <font color=Red>-&gt;</font> <u><font color=Green>do</font></u> hPutStrLn stderr <font color=Cyan>(</font><font color=Magenta>"Could not parse colour prefs from "</font><font color=Cyan>++</font>file-<a name="line-48"></a>                                  <font color=Cyan>++</font><font color=Magenta>": reverting to defaults"</font><font color=Cyan>)</font>-<a name="line-49"></a>                return defaultColourPrefs-<a name="line-50"></a>-<a name="line-51"></a><a name="readColourPrefs"></a><font color=Blue>-- | Read colour preferences from .hscolour file in the current directory, or failing that,</font>-<a name="line-52"></a><font color=Blue>--   from \$HOME\/.hscolour, and failing that, returns a default set of prefs.</font>-<a name="line-53"></a>readColourPrefs <font color=Red>::</font> IO ColourPrefs-<a name="line-54"></a>readColourPrefs <font color=Red>=</font> catch-<a name="line-55"></a>  <font color=Cyan>(</font><u><font color=Green>do</font></u> val <font color=Red>&lt;-</font> readFile <font color=Magenta>".hscolour"</font>-<a name="line-56"></a>      parseColourPrefs <font color=Magenta>".hscolour"</font> val<font color=Cyan>)</font>-<a name="line-57"></a>  <font color=Cyan>(</font><font color=Red>\</font><u><font color=Green>_</font></u><font color=Red>-&gt;</font> catch-<a name="line-58"></a>    <font color=Cyan>(</font><u><font color=Green>do</font></u> home <font color=Red>&lt;-</font> getEnv <font color=Magenta>"HOME"</font>-<a name="line-59"></a>        val <font color=Red>&lt;-</font> readFile <font color=Cyan>(</font>home<font color=Cyan>++</font><font color=Magenta>"/.hscolour"</font><font color=Cyan>)</font>-<a name="line-60"></a>        parseColourPrefs <font color=Cyan>(</font>home<font color=Cyan>++</font><font color=Magenta>"/.hscolour"</font><font color=Cyan>)</font> val<font color=Cyan>)</font>-<a name="line-61"></a>    <font color=Cyan>(</font><font color=Red>\</font><u><font color=Green>_</font></u><font color=Red>-&gt;</font> return defaultColourPrefs<font color=Cyan>)</font><font color=Cyan>)</font>-<a name="line-62"></a>-<a name="line-63"></a><a name="colourise"></a><font color=Blue>-- | Convert token classification to colour highlights.</font>-<a name="line-64"></a>colourise <font color=Red>::</font> ColourPrefs <font color=Red>-&gt;</font> TokenType <font color=Red>-&gt;</font> <font color=Red>[</font>Highlight<font color=Red>]</font>-<a name="line-65"></a>colourise pref Space    <font color=Red>=</font> <font color=Red>[</font>Normal<font color=Red>]</font>-<a name="line-66"></a>colourise pref Comment  <font color=Red>=</font> comment pref-<a name="line-67"></a>colourise pref Keyword  <font color=Red>=</font> keyword pref-<a name="line-68"></a>colourise pref Keyglyph <font color=Red>=</font> keyglyph pref-<a name="line-69"></a>colourise pref Layout   <font color=Red>=</font> layout pref-<a name="line-70"></a>colourise pref Conid    <font color=Red>=</font> conid pref-<a name="line-71"></a>colourise pref Varid    <font color=Red>=</font> varid pref-<a name="line-72"></a>colourise pref Conop    <font color=Red>=</font> conop pref-<a name="line-73"></a>colourise pref Varop    <font color=Red>=</font> varop pref-<a name="line-74"></a>colourise pref String   <font color=Red>=</font> string pref-<a name="line-75"></a>colourise pref Char     <font color=Red>=</font> char pref-<a name="line-76"></a>colourise pref Number   <font color=Red>=</font> number pref-<a name="line-77"></a>colourise pref Cpp      <font color=Red>=</font> cpp pref-<a name="line-78"></a>colourise pref Error    <font color=Red>=</font> selection pref-<a name="line-79"></a>colourise pref Definition <font color=Red>=</font> definition pref-<a name="line-80"></a>-</pre>-</body>-</html>
− docs/hscolour/Language/Haskell/HsColour/General.html
@@ -1,25 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">-<html>-<head>-<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->-<title>Language/Haskell/HsColour/General.hs</title>-</head>-<body>-<pre><a name="line-1"></a>-<a name="line-2"></a><u><font color=Green>module</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>General<font color=Cyan>(</font>-<a name="line-3"></a>    dropLast<font color=Cyan>,</font> dropFirst-<a name="line-4"></a>    <font color=Cyan>)</font> <u><font color=Green>where</font></u>-<a name="line-5"></a>-<a name="line-6"></a>-<a name="line-7"></a><a name="dropLast"></a>dropLast <font color=Red>::</font> Eq a <font color=Red>=&gt;</font> a <font color=Red>-&gt;</font> <font color=Red>[</font>a<font color=Red>]</font> <font color=Red>-&gt;</font> <font color=Red>[</font>a<font color=Red>]</font>-<a name="line-8"></a>dropLast x <font color=Red>[</font>y<font color=Red>]</font> <font color=Red>|</font> x <font color=Cyan>==</font> y <font color=Red>=</font> []-<a name="line-9"></a>dropLast x <font color=Cyan>(</font>y<b><font color=Red>:</font></b>ys<font color=Cyan>)</font> <font color=Red>=</font> y <b><font color=Red>:</font></b> dropLast x ys-<a name="line-10"></a>dropLast x [] <font color=Red>=</font> []-<a name="line-11"></a>-<a name="line-12"></a>-<a name="line-13"></a><a name="dropFirst"></a>dropFirst <font color=Red>::</font> Eq a <font color=Red>=&gt;</font> a <font color=Red>-&gt;</font> <font color=Red>[</font>a<font color=Red>]</font> <font color=Red>-&gt;</font> <font color=Red>[</font>a<font color=Red>]</font>-<a name="line-14"></a>dropFirst x <font color=Cyan>(</font>y<b><font color=Red>:</font></b>ys<font color=Cyan>)</font> <font color=Red>|</font> x <font color=Cyan>==</font> y <font color=Red>=</font> ys-<a name="line-15"></a>dropFirst x ys <font color=Red>=</font> ys-</pre>-</body>-</html>
− docs/hscolour/Language/Haskell/HsColour/HTML.html
@@ -1,102 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">-<html>-<head>-<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->-<title>Language/Haskell/HsColour/HTML.hs</title>-</head>-<body>-<pre><a name="line-1"></a><font color=Blue>-- | Formats Haskell source code using HTML with font tags.</font>-<a name="line-2"></a><u><font color=Green>module</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>HTML -<a name="line-3"></a>    <font color=Cyan>(</font> hscolour-<a name="line-4"></a>    <font color=Cyan>,</font> top'n'tail-<a name="line-5"></a>     <font color=Blue>-- * Internals</font>-<a name="line-6"></a>    <font color=Cyan>,</font> renderAnchors<font color=Cyan>,</font> renderComment<font color=Cyan>,</font> renderNewLinesAnchors<font color=Cyan>,</font> escape-<a name="line-7"></a>    <font color=Cyan>)</font> <u><font color=Green>where</font></u>-<a name="line-8"></a>-<a name="line-9"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Anchors-<a name="line-10"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Classify <u><font color=Green>as</font></u> Classify-<a name="line-11"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Colourise-<a name="line-12"></a>-<a name="line-13"></a><u><font color=Green>import</font></u> Data<font color=Cyan>.</font>Char<font color=Cyan>(</font>isAlphaNum<font color=Cyan>)</font>-<a name="line-14"></a>-<a name="line-15"></a>-<a name="line-16"></a><a name="hscolour"></a><font color=Blue>-- | Formats Haskell source code using HTML with font tags.</font>-<a name="line-17"></a>hscolour <font color=Red>::</font> ColourPrefs <font color=Blue>-- ^ Colour preferences.</font>-<a name="line-18"></a>         <font color=Red>-&gt;</font> Bool        <font color=Blue>-- ^ Whether to include anchors.</font>-<a name="line-19"></a>         <font color=Red>-&gt;</font> String      <font color=Blue>-- ^ Haskell source code.</font>-<a name="line-20"></a>         <font color=Red>-&gt;</font> String      <font color=Blue>-- ^ Coloured Haskell source code.</font>-<a name="line-21"></a>hscolour pref anchor <font color=Red>=</font> -<a name="line-22"></a>    pre-<a name="line-23"></a>    <font color=Cyan>.</font> <font color=Cyan>(</font><u><font color=Green>if</font></u> anchor <u><font color=Green>then</font></u> renderNewLinesAnchors-<a name="line-24"></a>                      <font color=Cyan>.</font> concatMap <font color=Cyan>(</font>renderAnchors <font color=Cyan>(</font>renderToken pref<font color=Cyan>)</font><font color=Cyan>)</font>-<a name="line-25"></a>                      <font color=Cyan>.</font> insertAnchors-<a name="line-26"></a>                 <u><font color=Green>else</font></u> concatMap <font color=Cyan>(</font>renderToken pref<font color=Cyan>)</font><font color=Cyan>)</font>-<a name="line-27"></a>    <font color=Cyan>.</font> tokenise-<a name="line-28"></a>-<a name="line-29"></a><a name="top'n'tail"></a>top'n'tail <font color=Red>::</font> String <font color=Red>-&gt;</font> String <font color=Red>-&gt;</font> String-<a name="line-30"></a>top'n'tail title <font color=Red>=</font> <font color=Cyan>(</font>htmlHeader title <font color=Cyan>++</font><font color=Cyan>)</font> <font color=Cyan>.</font> <font color=Cyan>(</font><font color=Cyan>++</font>htmlClose<font color=Cyan>)</font>-<a name="line-31"></a>-<a name="line-32"></a><a name="pre"></a>pre <font color=Red>::</font> String <font color=Red>-&gt;</font> String-<a name="line-33"></a>pre <font color=Red>=</font> <font color=Cyan>(</font><font color=Magenta>"&lt;pre&gt;"</font><font color=Cyan>++</font><font color=Cyan>)</font> <font color=Cyan>.</font> <font color=Cyan>(</font><font color=Cyan>++</font><font color=Magenta>"&lt;/pre&gt;"</font><font color=Cyan>)</font>-<a name="line-34"></a>-<a name="line-35"></a><a name="renderToken"></a>renderToken <font color=Red>::</font> ColourPrefs <font color=Red>-&gt;</font> <font color=Cyan>(</font>TokenType<font color=Cyan>,</font>String<font color=Cyan>)</font> <font color=Red>-&gt;</font> String-<a name="line-36"></a>renderToken pref <font color=Cyan>(</font>t<font color=Cyan>,</font>s<font color=Cyan>)</font> <font color=Red>=</font> fontify <font color=Cyan>(</font>colourise pref t<font color=Cyan>)</font>-<a name="line-37"></a>                         <font color=Cyan>(</font><u><font color=Green>if</font></u> t <font color=Cyan>==</font> Comment <u><font color=Green>then</font></u> renderComment s <u><font color=Green>else</font></u> escape s<font color=Cyan>)</font>-<a name="line-38"></a>-<a name="line-39"></a><a name="renderAnchors"></a>renderAnchors <font color=Red>::</font> <font color=Cyan>(</font><font color=Cyan>(</font>TokenType<font color=Cyan>,</font>String<font color=Cyan>)</font><font color=Red>-&gt;</font>String<font color=Cyan>)</font>-<a name="line-40"></a>                 <font color=Red>-&gt;</font> Either String <font color=Cyan>(</font>TokenType<font color=Cyan>,</font>String<font color=Cyan>)</font> <font color=Red>-&gt;</font> String-<a name="line-41"></a>renderAnchors <u><font color=Green>_</font></u>      <font color=Cyan>(</font>Left v<font color=Cyan>)</font> <font color=Red>=</font> <font color=Magenta>"&lt;a name=\""</font><font color=Cyan>++</font>v<font color=Cyan>++</font><font color=Magenta>"\"&gt;&lt;/a&gt;"</font>-<a name="line-42"></a>renderAnchors render <font color=Cyan>(</font>Right r<font color=Cyan>)</font> <font color=Red>=</font> render r-<a name="line-43"></a>-<a name="line-44"></a><a name="renderComment"></a><font color=Blue>-- if there are <a href="http://links/">http://links/</a> in a comment, turn them into</font>-<a name="line-45"></a><font color=Blue>-- hyperlinks</font>-<a name="line-46"></a>renderComment <font color=Red>::</font> String <font color=Red>-&gt;</font> String-<a name="line-47"></a>renderComment xs<font color=Red>@</font><font color=Cyan>(</font><font color=Magenta>'h'</font><b><font color=Red>:</font></b><font color=Magenta>'t'</font><b><font color=Red>:</font></b><font color=Magenta>'t'</font><b><font color=Red>:</font></b><font color=Magenta>'p'</font><b><font color=Red>:</font></b><font color=Magenta>':'</font><b><font color=Red>:</font></b><font color=Magenta>'/'</font><b><font color=Red>:</font></b><font color=Magenta>'/'</font><b><font color=Red>:</font></b><u><font color=Green>_</font></u><font color=Cyan>)</font> <font color=Red>=</font>-<a name="line-48"></a>        renderLink a <font color=Cyan>++</font> renderComment b-<a name="line-49"></a>    <u><font color=Green>where</font></u>-<a name="line-50"></a>        <font color=Blue>-- see <a href="http://www.gbiv.com/protocols/uri/rfc/rfc3986.html#characters">http://www.gbiv.com/protocols/uri/rfc/rfc3986.html#characters</a></font>-<a name="line-51"></a>        isUrlChar x <font color=Red>=</font> isAlphaNum x <font color=Cyan>||</font> x <font color=Cyan>`elem`</font> <font color=Magenta>":/?#[]@!$&amp;'()*+,;=-._~%"</font>-<a name="line-52"></a>        <font color=Cyan>(</font>a<font color=Cyan>,</font>b<font color=Cyan>)</font> <font color=Red>=</font> span isUrlChar xs-<a name="line-53"></a>        renderLink link <font color=Red>=</font> <font color=Magenta>"&lt;a href=\""</font> <font color=Cyan>++</font> link <font color=Cyan>++</font> <font color=Magenta>"\"&gt;"</font> <font color=Cyan>++</font> escape link <font color=Cyan>++</font> <font color=Magenta>"&lt;/a&gt;"</font>-<a name="line-54"></a>        -<a name="line-55"></a>renderComment <font color=Cyan>(</font>x<b><font color=Red>:</font></b>xs<font color=Cyan>)</font> <font color=Red>=</font> escape <font color=Red>[</font>x<font color=Red>]</font> <font color=Cyan>++</font> renderComment xs-<a name="line-56"></a>renderComment [] <font color=Red>=</font> []-<a name="line-57"></a>-<a name="line-58"></a><a name="renderNewLinesAnchors"></a>renderNewLinesAnchors <font color=Red>::</font> String <font color=Red>-&gt;</font> String-<a name="line-59"></a>renderNewLinesAnchors <font color=Red>=</font> unlines <font color=Cyan>.</font> map render <font color=Cyan>.</font> zip <font color=Red>[</font><font color=Magenta>1</font><font color=Red>..</font><font color=Red>]</font> <font color=Cyan>.</font> lines-<a name="line-60"></a>    <u><font color=Green>where</font></u> render <font color=Cyan>(</font>line<font color=Cyan>,</font> s<font color=Cyan>)</font> <font color=Red>=</font> <font color=Magenta>"&lt;a name=\"line-"</font> <font color=Cyan>++</font> show line <font color=Cyan>++</font> <font color=Magenta>"\"&gt;&lt;/a&gt;"</font> <font color=Cyan>++</font> s-<a name="line-61"></a>-<a name="line-62"></a><a name="fontify"></a><font color=Blue>-- Html stuff</font>-<a name="line-63"></a>fontify [] s     <font color=Red>=</font> s-<a name="line-64"></a>fontify <font color=Cyan>(</font>h<b><font color=Red>:</font></b>hs<font color=Cyan>)</font> s <font color=Red>=</font> font h <font color=Cyan>(</font>fontify hs s<font color=Cyan>)</font>-<a name="line-65"></a>-<a name="line-66"></a><a name="font"></a>font Normal         s <font color=Red>=</font> s-<a name="line-67"></a>font Bold           s <font color=Red>=</font> <font color=Magenta>"&lt;b&gt;"</font><font color=Cyan>++</font>s<font color=Cyan>++</font><font color=Magenta>"&lt;/b&gt;"</font>-<a name="line-68"></a>font Dim            s <font color=Red>=</font> <font color=Magenta>"&lt;em&gt;"</font><font color=Cyan>++</font>s<font color=Cyan>++</font><font color=Magenta>"&lt;/em&gt;"</font>-<a name="line-69"></a>font Underscore     s <font color=Red>=</font> <font color=Magenta>"&lt;u&gt;"</font><font color=Cyan>++</font>s<font color=Cyan>++</font><font color=Magenta>"&lt;/u&gt;"</font>-<a name="line-70"></a>font Blink          s <font color=Red>=</font> <font color=Magenta>"&lt;blink&gt;"</font><font color=Cyan>++</font>s<font color=Cyan>++</font><font color=Magenta>"&lt;/blink&gt;"</font>-<a name="line-71"></a>font ReverseVideo   s <font color=Red>=</font> s-<a name="line-72"></a>font Concealed      s <font color=Red>=</font> s-<a name="line-73"></a>font <font color=Cyan>(</font>Foreground c<font color=Cyan>)</font> s <font color=Red>=</font> <font color=Magenta>"&lt;font color="</font><font color=Cyan>++</font>show c<font color=Cyan>++</font><font color=Magenta>"&gt;"</font><font color=Cyan>++</font>s<font color=Cyan>++</font><font color=Magenta>"&lt;/font&gt;"</font>-<a name="line-74"></a>font <font color=Cyan>(</font>Background c<font color=Cyan>)</font> s <font color=Red>=</font> <font color=Magenta>"&lt;font bgcolor="</font><font color=Cyan>++</font>show c<font color=Cyan>++</font><font color=Magenta>"&gt;"</font><font color=Cyan>++</font>s<font color=Cyan>++</font><font color=Magenta>"&lt;/font&gt;"</font>-<a name="line-75"></a>font Italic         s <font color=Red>=</font> <font color=Magenta>"&lt;i&gt;"</font><font color=Cyan>++</font>s<font color=Cyan>++</font><font color=Magenta>"&lt;/i&gt;"</font>-<a name="line-76"></a>-<a name="line-77"></a><a name="escape"></a>escape <font color=Cyan>(</font><font color=Magenta>'&lt;'</font><b><font color=Red>:</font></b>cs<font color=Cyan>)</font> <font color=Red>=</font> <font color=Magenta>"&amp;lt;"</font><font color=Cyan>++</font>escape cs-<a name="line-78"></a>escape <font color=Cyan>(</font><font color=Magenta>'&gt;'</font><b><font color=Red>:</font></b>cs<font color=Cyan>)</font> <font color=Red>=</font> <font color=Magenta>"&amp;gt;"</font><font color=Cyan>++</font>escape cs-<a name="line-79"></a>escape <font color=Cyan>(</font><font color=Magenta>'&amp;'</font><b><font color=Red>:</font></b>cs<font color=Cyan>)</font> <font color=Red>=</font> <font color=Magenta>"&amp;amp;"</font><font color=Cyan>++</font>escape cs-<a name="line-80"></a>escape <font color=Cyan>(</font>c<b><font color=Red>:</font></b>cs<font color=Cyan>)</font>   <font color=Red>=</font> c<b><font color=Red>:</font></b> escape cs-<a name="line-81"></a>escape []       <font color=Red>=</font> []-<a name="line-82"></a>-<a name="line-83"></a><a name="htmlHeader"></a>htmlHeader title <font color=Red>=</font> unlines-<a name="line-84"></a>  <font color=Red>[</font> <font color=Magenta>"&lt;!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\"&gt;"</font>-<a name="line-85"></a>  <font color=Cyan>,</font> <font color=Magenta>"&lt;html&gt;"</font>-<a name="line-86"></a>  <font color=Cyan>,</font> <font color=Magenta>"&lt;head&gt;"</font>-<a name="line-87"></a>  <font color=Cyan>,</font><font color=Magenta>"&lt;!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ --&gt;"</font>-<a name="line-88"></a>  <font color=Cyan>,</font> <font color=Magenta>"&lt;title&gt;"</font><font color=Cyan>++</font>title<font color=Cyan>++</font><font color=Magenta>"&lt;/title&gt;"</font>-<a name="line-89"></a>  <font color=Cyan>,</font> <font color=Magenta>"&lt;/head&gt;"</font>-<a name="line-90"></a>  <font color=Cyan>,</font> <font color=Magenta>"&lt;body&gt;"</font>-<a name="line-91"></a>  <font color=Red>]</font>-<a name="line-92"></a><a name="htmlClose"></a>htmlClose  <font color=Red>=</font> <font color=Magenta>"\n&lt;/body&gt;\n&lt;/html&gt;"</font>-</pre>-</body>-</html>
− docs/hscolour/Language/Haskell/HsColour/InlineCSS.html
@@ -1,86 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">-<html>-<head>-<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->-<title>Language/Haskell/HsColour/InlineCSS.hs</title>-</head>-<body>-<pre><a name="line-1"></a><font color=Blue>-- | Formats Haskell source code as HTML with inline CSS.</font>-<a name="line-2"></a><u><font color=Green>module</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>InlineCSS <font color=Cyan>(</font>hscolour<font color=Cyan>,</font>top'n'tail<font color=Cyan>)</font> <u><font color=Green>where</font></u>-<a name="line-3"></a>-<a name="line-4"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Anchors-<a name="line-5"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Classify <u><font color=Green>as</font></u> Classify-<a name="line-6"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Colourise-<a name="line-7"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>HTML <font color=Cyan>(</font>renderAnchors<font color=Cyan>,</font> renderComment<font color=Cyan>,</font>-<a name="line-8"></a>                                       renderNewLinesAnchors<font color=Cyan>,</font> escape<font color=Cyan>)</font>-<a name="line-9"></a>-<a name="line-10"></a><a name="hscolour"></a><font color=Blue>-- | Formats Haskell source code as a complete HTML document with inline styling</font>-<a name="line-11"></a>hscolour <font color=Red>::</font> ColourPrefs	<font color=Blue>-- ^ Preferences for styling.</font>-<a name="line-12"></a>         <font color=Red>-&gt;</font> Bool   <font color=Blue>-- ^ Whether to include anchors.</font>-<a name="line-13"></a>         <font color=Red>-&gt;</font> String <font color=Blue>-- ^ Haskell source code.</font>-<a name="line-14"></a>         <font color=Red>-&gt;</font> String <font color=Blue>-- ^ An HTML document containing the coloured </font>-<a name="line-15"></a>                   <font color=Blue>--   Haskell source code.</font>-<a name="line-16"></a>hscolour prefs anchor <font color=Red>=</font>-<a name="line-17"></a>  pre-<a name="line-18"></a>  <font color=Cyan>.</font> <font color=Cyan>(</font><u><font color=Green>if</font></u> anchor -<a name="line-19"></a>        <u><font color=Green>then</font></u> renderNewLinesAnchors-<a name="line-20"></a>             <font color=Cyan>.</font> concatMap <font color=Cyan>(</font>renderAnchors <font color=Cyan>(</font>renderToken prefs<font color=Cyan>)</font><font color=Cyan>)</font>-<a name="line-21"></a>             <font color=Cyan>.</font> insertAnchors-<a name="line-22"></a>        <u><font color=Green>else</font></u> concatMap <font color=Cyan>(</font>renderToken prefs<font color=Cyan>)</font><font color=Cyan>)</font>-<a name="line-23"></a>  <font color=Cyan>.</font> tokenise-<a name="line-24"></a>-<a name="line-25"></a><a name="top'n'tail"></a>top'n'tail <font color=Red>::</font> String <font color=Red>-&gt;</font> String <font color=Red>-&gt;</font> String-<a name="line-26"></a>top'n'tail title  <font color=Red>=</font> <font color=Cyan>(</font>cssPrefix title <font color=Cyan>++</font><font color=Cyan>)</font> <font color=Cyan>.</font> <font color=Cyan>(</font><font color=Cyan>++</font>cssSuffix<font color=Cyan>)</font>-<a name="line-27"></a>-<a name="line-28"></a><a name="pre"></a>pre <font color=Red>::</font> String <font color=Red>-&gt;</font> String-<a name="line-29"></a>pre <font color=Red>=</font>   <font color=Cyan>(</font><font color=Magenta>"&lt;pre style=\"font-family:Consolas, Monaco, Monospace;\"&gt;"</font><font color=Cyan>++</font><font color=Cyan>)</font>-<a name="line-30"></a>      <font color=Cyan>.</font> <font color=Cyan>(</font><font color=Cyan>++</font><font color=Magenta>"&lt;/pre&gt;"</font><font color=Cyan>)</font>-<a name="line-31"></a>-<a name="line-32"></a><a name="renderToken"></a>renderToken <font color=Red>::</font> ColourPrefs <font color=Red>-&gt;</font> <font color=Cyan>(</font>TokenType<font color=Cyan>,</font>String<font color=Cyan>)</font> <font color=Red>-&gt;</font> String-<a name="line-33"></a>renderToken prefs <font color=Cyan>(</font>cls<font color=Cyan>,</font>text<font color=Cyan>)</font> <font color=Red>=</font>-<a name="line-34"></a>  stylise <font color=Cyan>(</font>colourise prefs cls<font color=Cyan>)</font> <font color=Cyan>$</font>-<a name="line-35"></a>  <u><font color=Green>if</font></u> cls <font color=Cyan>==</font> Comment <u><font color=Green>then</font></u> renderComment text <u><font color=Green>else</font></u> escape text-<a name="line-36"></a>-<a name="line-37"></a><a name="stylise"></a>stylise <font color=Red>::</font> <font color=Red>[</font>Highlight<font color=Red>]</font> <font color=Red>-&gt;</font> String <font color=Red>-&gt;</font> String-<a name="line-38"></a>stylise hs s <font color=Red>=</font> <font color=Magenta>"&lt;span style=\""</font> <font color=Cyan>++</font> concatMap style hs <font color=Cyan>++</font> <font color=Magenta>"\"&gt;"</font> <font color=Cyan>++</font>s<font color=Cyan>++</font> <font color=Magenta>"&lt;/span&gt;"</font>-<a name="line-39"></a>-<a name="line-40"></a><a name="cssPrefix"></a>cssPrefix title <font color=Red>=</font> unlines-<a name="line-41"></a>    <font color=Red>[</font><font color=Magenta>"&lt;!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"&gt;"</font>-<a name="line-42"></a>    <font color=Cyan>,</font><font color=Magenta>"&lt;html&gt;"</font>-<a name="line-43"></a>    <font color=Cyan>,</font><font color=Magenta>"&lt;head&gt;"</font>-<a name="line-44"></a>    <font color=Cyan>,</font><font color=Magenta>"&lt;!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ --&gt;"</font>-<a name="line-45"></a>    <font color=Cyan>,</font><font color=Magenta>"&lt;title&gt;"</font><font color=Cyan>++</font>title<font color=Cyan>++</font><font color=Magenta>"&lt;/title&gt;"</font>-<a name="line-46"></a>    <font color=Cyan>,</font><font color=Magenta>"&lt;/head&gt;"</font>-<a name="line-47"></a>    <font color=Cyan>,</font><font color=Magenta>"&lt;body style=\"background-color: #131313; color: #ffffff;\"&gt;"</font>-<a name="line-48"></a>    <font color=Red>]</font>-<a name="line-49"></a>    -<a name="line-50"></a><a name="cssSuffix"></a>cssSuffix <font color=Red>=</font> unlines-<a name="line-51"></a>    <font color=Red>[</font><font color=Magenta>"&lt;/body&gt;"</font>-<a name="line-52"></a>    <font color=Cyan>,</font><font color=Magenta>"&lt;/html&gt;"</font>-<a name="line-53"></a>    <font color=Red>]</font>-<a name="line-54"></a>-<a name="line-55"></a><a name="style"></a>style <font color=Red>::</font> Highlight <font color=Red>-&gt;</font> String-<a name="line-56"></a>style Normal         <font color=Red>=</font> <font color=Magenta>""</font>-<a name="line-57"></a>style Bold           <font color=Red>=</font> <font color=Magenta>"font-weight: bold;"</font>-<a name="line-58"></a>style Dim            <font color=Red>=</font> <font color=Magenta>"font-weight: lighter;"</font>-<a name="line-59"></a>style Underscore     <font color=Red>=</font> <font color=Magenta>"text-decoration: underline;"</font>-<a name="line-60"></a>style Blink          <font color=Red>=</font> <font color=Magenta>"text-decoration:  blink;"</font>-<a name="line-61"></a>style ReverseVideo   <font color=Red>=</font> <font color=Magenta>""</font>-<a name="line-62"></a>style Concealed      <font color=Red>=</font> <font color=Magenta>"text-decoration:  line-through;"</font>-<a name="line-63"></a>style <font color=Cyan>(</font>Foreground c<font color=Cyan>)</font> <font color=Red>=</font> <font color=Magenta>"color: "</font><font color=Cyan>++</font>csscolour c<font color=Cyan>++</font><font color=Magenta>";"</font>-<a name="line-64"></a>style <font color=Cyan>(</font>Background c<font color=Cyan>)</font> <font color=Red>=</font> <font color=Magenta>"background-colour: "</font><font color=Cyan>++</font>csscolour c<font color=Cyan>++</font><font color=Magenta>";"</font>-<a name="line-65"></a>style Italic         <font color=Red>=</font> <font color=Magenta>"font-style: italic;"</font>-<a name="line-66"></a>-<a name="line-67"></a><a name="csscolour"></a>csscolour <font color=Red>::</font> Colour <font color=Red>-&gt;</font> String-<a name="line-68"></a>csscolour Black   <font color=Red>=</font> <font color=Magenta>"#000000"</font>-<a name="line-69"></a>csscolour Red     <font color=Red>=</font> <font color=Magenta>"#ff0000"</font>-<a name="line-70"></a>csscolour Green   <font color=Red>=</font> <font color=Magenta>"#00ff00"</font>-<a name="line-71"></a>csscolour Yellow  <font color=Red>=</font> <font color=Magenta>"#ffff00"</font>-<a name="line-72"></a>csscolour Blue    <font color=Red>=</font> <font color=Magenta>"#0000ff"</font>-<a name="line-73"></a>csscolour Magenta <font color=Red>=</font> <font color=Magenta>"#ff00ff"</font>-<a name="line-74"></a>csscolour Cyan    <font color=Red>=</font> <font color=Magenta>"#00ffff"</font>-<a name="line-75"></a>csscolour White   <font color=Red>=</font> <font color=Magenta>"#ffffff"</font>-<a name="line-76"></a>-</pre>-</body>-</html>
− docs/hscolour/Language/Haskell/HsColour/LaTeX.html
@@ -1,119 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">-<html>-<head>-<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->-<title>Language/Haskell/HsColour/LaTeX.hs</title>-</head>-<body>-<pre><a name="line-1"></a><font color=Blue>-- | Formats Haskell source code using LaTeX macros.</font>-<a name="line-2"></a><u><font color=Green>module</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>LaTeX <font color=Cyan>(</font>hscolour<font color=Cyan>,</font> top'n'tail<font color=Cyan>)</font> <u><font color=Green>where</font></u>-<a name="line-3"></a>-<a name="line-4"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Classify <u><font color=Green>as</font></u> Classify-<a name="line-5"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Colourise-<a name="line-6"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>General-<a name="line-7"></a>-<a name="line-8"></a><a name="hscolour"></a><font color=Blue>-- | Formats Haskell source code as a complete LaTeX document.</font>-<a name="line-9"></a>hscolour <font color=Red>::</font> ColourPrefs <font color=Blue>-- ^ Colour preferences.</font>-<a name="line-10"></a>         <font color=Red>-&gt;</font> String      <font color=Blue>-- ^ Haskell source code.</font>-<a name="line-11"></a>         <font color=Red>-&gt;</font> String      <font color=Blue>-- ^ A LaTeX document\/fragment containing the coloured </font>-<a name="line-12"></a>                        <font color=Blue>--   Haskell source code.</font>-<a name="line-13"></a>hscolour pref <font color=Red>=</font> concatMap <font color=Cyan>(</font>renderToken pref<font color=Cyan>)</font> <font color=Cyan>.</font> tokenise-<a name="line-14"></a>-<a name="line-15"></a><a name="top'n'tail"></a>top'n'tail <font color=Red>::</font> String <font color=Red>-&gt;</font> String <font color=Red>-&gt;</font> String-<a name="line-16"></a>top'n'tail title <font color=Red>=</font> <font color=Cyan>(</font>latexPrefix title<font color=Cyan>++</font><font color=Cyan>)</font> <font color=Cyan>.</font> <font color=Cyan>(</font><font color=Cyan>++</font>latexSuffix<font color=Cyan>)</font>-<a name="line-17"></a>-<a name="line-18"></a><a name="renderToken"></a><font color=Blue>-- | Wrap each lexeme in the appropriate LaTeX macro.</font>-<a name="line-19"></a><font color=Blue>--   TODO: filter dangerous characters like "{}_$"</font>-<a name="line-20"></a>renderToken <font color=Red>::</font> ColourPrefs <font color=Red>-&gt;</font> <font color=Cyan>(</font>TokenType<font color=Cyan>,</font>String<font color=Cyan>)</font> <font color=Red>-&gt;</font> String-<a name="line-21"></a>renderToken pref <font color=Cyan>(</font>Space<font color=Cyan>,</font>text<font color=Cyan>)</font> <font color=Red>=</font> filterSpace text-<a name="line-22"></a>renderToken pref <font color=Cyan>(</font>cls<font color=Cyan>,</font>text<font color=Cyan>)</font>   <font color=Red>=</font>-<a name="line-23"></a>  <u><font color=Green>let</font></u> symb <font color=Red>=</font> <u><font color=Green>case</font></u> cls <u><font color=Green>of</font></u>-<a name="line-24"></a>              String <font color=Red>-&gt;</font> <font color=Magenta>"``"</font> <font color=Cyan>++</font> <font color=Cyan>(</font>dropFirst <font color=Magenta>'\"'</font> <font color=Cyan>$</font> dropLast <font color=Magenta>'\"'</font> <font color=Cyan>$</font> text<font color=Cyan>)</font> <font color=Cyan>++</font> <font color=Magenta>"''"</font>-<a name="line-25"></a>              <u><font color=Green>_</font></u>      <font color=Red>-&gt;</font> text-<a name="line-26"></a>      style <font color=Red>=</font> colourise pref cls-<a name="line-27"></a>      <font color=Cyan>(</font>pre<font color=Cyan>,</font> post<font color=Cyan>)</font> <font color=Red>=</font> unzip <font color=Cyan>$</font> map latexHighlight style-<a name="line-28"></a>  <u><font color=Green>in</font></u> concat pre <font color=Cyan>++</font> filterSpecial symb <font color=Cyan>++</font> concat post-<a name="line-29"></a>-<a name="line-30"></a><a name="filterSpace"></a><font color=Blue>-- | Filter white space characters.</font>-<a name="line-31"></a>filterSpace <font color=Red>::</font> String-<a name="line-32"></a>            <font color=Red>-&gt;</font> String-<a name="line-33"></a>filterSpace <font color=Cyan>(</font><font color=Magenta>'\n'</font><b><font color=Red>:</font></b>ss<font color=Cyan>)</font> <font color=Red>=</font> <font color=Magenta>'\\'</font><b><font color=Red>:</font></b><font color=Magenta>'\\'</font><b><font color=Red>:</font></b><font color=Cyan>(</font>filterSpace ss<font color=Cyan>)</font>-<a name="line-34"></a>filterSpace <font color=Cyan>(</font><font color=Magenta>' '</font><b><font color=Red>:</font></b>ss<font color=Cyan>)</font>  <font color=Red>=</font> <font color=Magenta>"\\hsspace "</font><font color=Cyan>++</font><font color=Cyan>(</font>filterSpace ss<font color=Cyan>)</font>-<a name="line-35"></a>filterSpace <font color=Cyan>(</font><font color=Magenta>'\t'</font><b><font color=Red>:</font></b>ss<font color=Cyan>)</font> <font color=Red>=</font> <font color=Magenta>"\\hstab "</font><font color=Cyan>++</font><font color=Cyan>(</font>filterSpace ss<font color=Cyan>)</font>-<a name="line-36"></a>filterSpace <font color=Cyan>(</font>c<b><font color=Red>:</font></b>ss<font color=Cyan>)</font>    <font color=Red>=</font> c<b><font color=Red>:</font></b><font color=Cyan>(</font>filterSpace ss<font color=Cyan>)</font>-<a name="line-37"></a>filterSpace []        <font color=Red>=</font> []-<a name="line-38"></a>-<a name="line-39"></a><a name="filterSpecial"></a><font color=Blue>-- | Filters the characters "#$%&amp;~_^\{}" which are special</font>-<a name="line-40"></a><font color=Blue>--   in LaTeX.</font>-<a name="line-41"></a>filterSpecial <font color=Red>::</font> String  <font color=Blue>-- ^ The string to filter. </font>-<a name="line-42"></a>              <font color=Red>-&gt;</font> String  <font color=Blue>-- ^ The LaTeX-safe string.</font>-<a name="line-43"></a>filterSpecial <font color=Cyan>(</font><font color=Magenta>'#'</font><b><font color=Red>:</font></b>cs<font color=Cyan>)</font>  <font color=Red>=</font> <font color=Magenta>'\\'</font><b><font color=Red>:</font></b><font color=Magenta>'#'</font><b><font color=Red>:</font></b><font color=Cyan>(</font>filterSpecial cs<font color=Cyan>)</font>-<a name="line-44"></a>filterSpecial <font color=Cyan>(</font><font color=Magenta>'$'</font><b><font color=Red>:</font></b>cs<font color=Cyan>)</font>  <font color=Red>=</font> <font color=Magenta>'\\'</font><b><font color=Red>:</font></b><font color=Magenta>'$'</font><b><font color=Red>:</font></b><font color=Cyan>(</font>filterSpecial cs<font color=Cyan>)</font>-<a name="line-45"></a>filterSpecial <font color=Cyan>(</font><font color=Magenta>'%'</font><b><font color=Red>:</font></b>cs<font color=Cyan>)</font>  <font color=Red>=</font> <font color=Magenta>'\\'</font><b><font color=Red>:</font></b><font color=Magenta>'%'</font><b><font color=Red>:</font></b><font color=Cyan>(</font>filterSpecial cs<font color=Cyan>)</font>-<a name="line-46"></a>filterSpecial <font color=Cyan>(</font><font color=Magenta>'&amp;'</font><b><font color=Red>:</font></b>cs<font color=Cyan>)</font>  <font color=Red>=</font> <font color=Magenta>'\\'</font><b><font color=Red>:</font></b><font color=Magenta>'&amp;'</font><b><font color=Red>:</font></b><font color=Cyan>(</font>filterSpecial cs<font color=Cyan>)</font>-<a name="line-47"></a>filterSpecial <font color=Cyan>(</font><font color=Magenta>'~'</font><b><font color=Red>:</font></b>cs<font color=Cyan>)</font>  <font color=Red>=</font> <font color=Magenta>"\\tilde{ }"</font><font color=Cyan>++</font><font color=Cyan>(</font>filterSpecial cs<font color=Cyan>)</font>-<a name="line-48"></a>filterSpecial <font color=Cyan>(</font><font color=Magenta>'_'</font><b><font color=Red>:</font></b>cs<font color=Cyan>)</font>  <font color=Red>=</font> <font color=Magenta>'\\'</font><b><font color=Red>:</font></b><font color=Magenta>'_'</font><b><font color=Red>:</font></b><font color=Cyan>(</font>filterSpecial cs<font color=Cyan>)</font>-<a name="line-49"></a>filterSpecial <font color=Cyan>(</font><font color=Magenta>'^'</font><b><font color=Red>:</font></b>cs<font color=Cyan>)</font>  <font color=Red>=</font> <font color=Magenta>"\\ensuremath{\\hat{ }}"</font><font color=Cyan>++</font><font color=Cyan>(</font>filterSpecial cs<font color=Cyan>)</font>-<a name="line-50"></a>filterSpecial <font color=Cyan>(</font><font color=Magenta>'\\'</font><b><font color=Red>:</font></b>cs<font color=Cyan>)</font> <font color=Red>=</font> <font color=Magenta>"$\\backslash$"</font><font color=Cyan>++</font><font color=Cyan>(</font>filterSpecial cs<font color=Cyan>)</font>-<a name="line-51"></a>filterSpecial <font color=Cyan>(</font><font color=Magenta>'{'</font><b><font color=Red>:</font></b>cs<font color=Cyan>)</font>  <font color=Red>=</font> <font color=Magenta>'\\'</font><b><font color=Red>:</font></b><font color=Magenta>'{'</font><b><font color=Red>:</font></b><font color=Cyan>(</font>filterSpecial cs<font color=Cyan>)</font>-<a name="line-52"></a>filterSpecial <font color=Cyan>(</font><font color=Magenta>'}'</font><b><font color=Red>:</font></b>cs<font color=Cyan>)</font>  <font color=Red>=</font> <font color=Magenta>'\\'</font><b><font color=Red>:</font></b><font color=Magenta>'}'</font><b><font color=Red>:</font></b><font color=Cyan>(</font>filterSpecial cs<font color=Cyan>)</font>-<a name="line-53"></a>filterSpecial <font color=Cyan>(</font><font color=Magenta>'|'</font><b><font color=Red>:</font></b>cs<font color=Cyan>)</font>  <font color=Red>=</font> <font color=Magenta>"\\ensuremath{|}"</font><font color=Cyan>++</font><font color=Cyan>(</font>filterSpecial cs<font color=Cyan>)</font>-<a name="line-54"></a>filterSpecial <font color=Cyan>(</font><font color=Magenta>'&lt;'</font><b><font color=Red>:</font></b><font color=Magenta>'-'</font><b><font color=Red>:</font></b>cs<font color=Cyan>)</font>  <font color=Red>=</font> <font color=Magenta>"\\ensuremath{\\leftarrow}"</font><font color=Cyan>++</font><font color=Cyan>(</font>filterSpecial cs<font color=Cyan>)</font>-<a name="line-55"></a>filterSpecial <font color=Cyan>(</font><font color=Magenta>'&lt;'</font><b><font color=Red>:</font></b>cs<font color=Cyan>)</font>  <font color=Red>=</font> <font color=Magenta>"\\ensuremath{\\langle}"</font><font color=Cyan>++</font><font color=Cyan>(</font>filterSpecial cs<font color=Cyan>)</font>-<a name="line-56"></a>filterSpecial <font color=Cyan>(</font><font color=Magenta>'-'</font><b><font color=Red>:</font></b><font color=Magenta>'&gt;'</font><b><font color=Red>:</font></b>cs<font color=Cyan>)</font>  <font color=Red>=</font> <font color=Magenta>"\\ensuremath{\\rightarrow}"</font><font color=Cyan>++</font><font color=Cyan>(</font>filterSpecial cs<font color=Cyan>)</font>-<a name="line-57"></a>filterSpecial <font color=Cyan>(</font><font color=Magenta>'&gt;'</font><b><font color=Red>:</font></b>cs<font color=Cyan>)</font>  <font color=Red>=</font> <font color=Magenta>"\\ensuremath{\\rangle}"</font><font color=Cyan>++</font><font color=Cyan>(</font>filterSpecial cs<font color=Cyan>)</font>-<a name="line-58"></a>filterSpecial <font color=Cyan>(</font>c<b><font color=Red>:</font></b>cs<font color=Cyan>)</font>    <font color=Red>=</font> c<b><font color=Red>:</font></b><font color=Cyan>(</font>filterSpecial cs<font color=Cyan>)</font>-<a name="line-59"></a>filterSpecial []        <font color=Red>=</font> []-<a name="line-60"></a>-<a name="line-61"></a>-<a name="line-62"></a><a name="latexHighlight"></a><font color=Blue>-- | Constructs the appropriate LaTeX macro for the given style.</font>-<a name="line-63"></a>latexHighlight <font color=Red>::</font> Highlight <font color=Red>-&gt;</font> <font color=Cyan>(</font>String<font color=Cyan>,</font> String<font color=Cyan>)</font>-<a name="line-64"></a>latexHighlight Normal         <font color=Red>=</font> <font color=Cyan>(</font><font color=Magenta>"{\\rm{}"</font><font color=Cyan>,</font> <font color=Magenta>"}"</font><font color=Cyan>)</font>-<a name="line-65"></a>latexHighlight Bold           <font color=Red>=</font> <font color=Cyan>(</font><font color=Magenta>"{\\bf{}"</font><font color=Cyan>,</font> <font color=Magenta>"}"</font><font color=Cyan>)</font>-<a name="line-66"></a>latexHighlight Dim            <font color=Red>=</font> <font color=Cyan>(</font><font color=Magenta>""</font><font color=Cyan>,</font> <font color=Magenta>""</font><font color=Cyan>)</font>-<a name="line-67"></a>latexHighlight Underscore     <font color=Red>=</font> <font color=Cyan>(</font><font color=Magenta>"\\underline{"</font><font color=Cyan>,</font> <font color=Magenta>"}"</font><font color=Cyan>)</font>-<a name="line-68"></a>latexHighlight Blink          <font color=Red>=</font> <font color=Cyan>(</font><font color=Magenta>""</font><font color=Cyan>,</font> <font color=Magenta>""</font><font color=Cyan>)</font>-<a name="line-69"></a>latexHighlight ReverseVideo   <font color=Red>=</font> <font color=Cyan>(</font><font color=Magenta>""</font><font color=Cyan>,</font> <font color=Magenta>""</font><font color=Cyan>)</font>-<a name="line-70"></a>latexHighlight Concealed      <font color=Red>=</font> <font color=Cyan>(</font><font color=Magenta>"\\conceal{"</font><font color=Cyan>,</font> <font color=Magenta>"}"</font><font color=Cyan>)</font>-<a name="line-71"></a>latexHighlight <font color=Cyan>(</font>Foreground c<font color=Cyan>)</font> <font color=Red>=</font> <font color=Cyan>(</font><font color=Magenta>"\\textcolor{"</font><font color=Cyan>++</font> latexColour c <font color=Cyan>++</font><font color=Magenta>"}{"</font><font color=Cyan>,</font> <font color=Magenta>"}"</font><font color=Cyan>)</font>-<a name="line-72"></a>latexHighlight <font color=Cyan>(</font>Background c<font color=Cyan>)</font> <font color=Red>=</font> <font color=Cyan>(</font><font color=Magenta>"\\colorbox{"</font><font color=Cyan>++</font> latexColour c <font color=Cyan>++</font><font color=Magenta>"}{"</font><font color=Cyan>,</font> <font color=Magenta>"}"</font><font color=Cyan>)</font>-<a name="line-73"></a>latexHighlight Italic         <font color=Red>=</font> <font color=Cyan>(</font><font color=Magenta>"{\\it{}"</font><font color=Cyan>,</font> <font color=Magenta>"}"</font><font color=Cyan>)</font>-<a name="line-74"></a>-<a name="line-75"></a><a name="latexColour"></a><font color=Blue>-- | Translate a 'Colour' into a LaTeX colour name.</font>-<a name="line-76"></a>latexColour <font color=Red>::</font> Colour <font color=Red>-&gt;</font> String-<a name="line-77"></a>latexColour Black   <font color=Red>=</font> <font color=Magenta>"black"</font>-<a name="line-78"></a>latexColour Red     <font color=Red>=</font> <font color=Magenta>"red"</font>-<a name="line-79"></a>latexColour Green   <font color=Red>=</font> <font color=Magenta>"green"</font>-<a name="line-80"></a>latexColour Yellow  <font color=Red>=</font> <font color=Magenta>"yellow"</font>-<a name="line-81"></a>latexColour Blue    <font color=Red>=</font> <font color=Magenta>"blue"</font>-<a name="line-82"></a>latexColour Magenta <font color=Red>=</font> <font color=Magenta>"magenta"</font>-<a name="line-83"></a>latexColour Cyan    <font color=Red>=</font> <font color=Magenta>"cyan"</font>-<a name="line-84"></a>latexColour White   <font color=Red>=</font> <font color=Magenta>"white"</font>-<a name="line-85"></a>-<a name="line-86"></a><a name="latexPrefix"></a><font color=Blue>-- | Generic LaTeX document preamble.</font>-<a name="line-87"></a>latexPrefix title <font color=Red>=</font> unlines-<a name="line-88"></a>    <font color=Red>[</font><font color=Magenta>"\\documentclass[a4paper, 12pt]{article}"</font>-<a name="line-89"></a>    <font color=Cyan>,</font><font color=Magenta>"\\usepackage[usenames]{color}"</font>-<a name="line-90"></a>    <font color=Cyan>,</font><font color=Magenta>"\\usepackage{hyperref}"</font>-<a name="line-91"></a>    <font color=Cyan>,</font><font color=Magenta>"\\newsavebox{\\spaceb}"</font>-<a name="line-92"></a>    <font color=Cyan>,</font><font color=Magenta>"\\newsavebox{\\tabb}"</font>-<a name="line-93"></a>    <font color=Cyan>,</font><font color=Magenta>"\\savebox{\\spaceb}[1ex]{~}"</font>-<a name="line-94"></a>    <font color=Cyan>,</font><font color=Magenta>"\\savebox{\\tabb}[4ex]{~}"</font>-<a name="line-95"></a>    <font color=Cyan>,</font><font color=Magenta>"\\newcommand{\\hsspace}{\\usebox{\\spaceb}}"</font>-<a name="line-96"></a>    <font color=Cyan>,</font><font color=Magenta>"\\newcommand{\\hstab}{\\usebox{\\tabb}}"</font>-<a name="line-97"></a>    <font color=Cyan>,</font><font color=Magenta>"\\newcommand{\\conceal}[1]{}"</font>-<a name="line-98"></a>    <font color=Cyan>,</font><font color=Magenta>"\\title{"</font><font color=Cyan>++</font>title<font color=Cyan>++</font><font color=Magenta>"}"</font>-<a name="line-99"></a>    <font color=Cyan>,</font><font color=Magenta>"%% Generated by HsColour"</font>-<a name="line-100"></a>    <font color=Cyan>,</font><font color=Magenta>"\\begin{document}"</font>-<a name="line-101"></a>    <font color=Cyan>,</font><font color=Magenta>"\\maketitle"</font>-<a name="line-102"></a>    <font color=Cyan>,</font><font color=Magenta>"\\noindent"</font>-<a name="line-103"></a>    <font color=Red>]</font>-<a name="line-104"></a>-<a name="line-105"></a><a name="latexSuffix"></a><font color=Blue>-- | Generic LaTeX document postamble.</font>-<a name="line-106"></a>latexSuffix <font color=Red>=</font> unlines-<a name="line-107"></a>    <font color=Red>[</font><font color=Magenta>""</font>-<a name="line-108"></a>    <font color=Cyan>,</font><font color=Magenta>"\\end{document}"</font>-<a name="line-109"></a>    <font color=Red>]</font>-</pre>-</body>-</html>
− docs/hscolour/Language/Haskell/HsColour/MIRC.html
@@ -1,78 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">-<html>-<head>-<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->-<title>Language/Haskell/HsColour/MIRC.hs</title>-</head>-<body>-<pre><a name="line-1"></a><font color=Blue>-- | Formats Haskell source code using mIRC codes.</font>-<a name="line-2"></a><font color=Blue>--   (see http:\/\/irssi.org\/documentation\/formats)</font>-<a name="line-3"></a><u><font color=Green>module</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>MIRC <font color=Cyan>(</font>hscolour<font color=Cyan>)</font> <u><font color=Green>where</font></u>-<a name="line-4"></a>-<a name="line-5"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Classify <u><font color=Green>as</font></u> Classify-<a name="line-6"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Colourise-<a name="line-7"></a>-<a name="line-8"></a><u><font color=Green>import</font></u> Data<font color=Cyan>.</font>Char<font color=Cyan>(</font>isAlphaNum<font color=Cyan>)</font>-<a name="line-9"></a>-<a name="line-10"></a>-<a name="line-11"></a><a name="hscolour"></a><font color=Blue>-- | Formats Haskell source code using mIRC codes.</font>-<a name="line-12"></a>hscolour <font color=Red>::</font> ColourPrefs <font color=Blue>-- ^ Colour preferences.</font>-<a name="line-13"></a>         <font color=Red>-&gt;</font> String      <font color=Blue>-- ^ Haskell source code.</font>-<a name="line-14"></a>         <font color=Red>-&gt;</font> String      <font color=Blue>-- ^ Coloured Haskell source code.</font>-<a name="line-15"></a>hscolour pref <font color=Red>=</font> concatMap <font color=Cyan>(</font>renderToken pref<font color=Cyan>)</font> <font color=Cyan>.</font> tokenise-<a name="line-16"></a>-<a name="line-17"></a><a name="renderToken"></a>renderToken <font color=Red>::</font> ColourPrefs <font color=Red>-&gt;</font> <font color=Cyan>(</font>TokenType<font color=Cyan>,</font>String<font color=Cyan>)</font> <font color=Red>-&gt;</font> String-<a name="line-18"></a>renderToken pref <font color=Cyan>(</font>t<font color=Cyan>,</font>s<font color=Cyan>)</font> <font color=Red>=</font> fontify <font color=Cyan>(</font>colourise pref t<font color=Cyan>)</font> s-<a name="line-19"></a>-<a name="line-20"></a>-<a name="line-21"></a><a name="fontify"></a><font color=Blue>-- mIRC stuff</font>-<a name="line-22"></a>fontify hs <font color=Red>=</font>-<a name="line-23"></a>    mircColours <font color=Cyan>(</font>joinColours hs<font color=Cyan>)</font>-<a name="line-24"></a>    <font color=Cyan>.</font> highlight <font color=Cyan>(</font>filter <font color=Cyan>(</font><font color=Cyan>`elem`</font><font color=Red>[</font>Normal<font color=Cyan>,</font>Bold<font color=Cyan>,</font>Underscore<font color=Cyan>,</font>ReverseVideo<font color=Red>]</font><font color=Cyan>)</font> hs<font color=Cyan>)</font>-<a name="line-25"></a>  <u><font color=Green>where</font></u>-<a name="line-26"></a>    highlight [] s     <font color=Red>=</font> s-<a name="line-27"></a>    highlight <font color=Cyan>(</font>h<b><font color=Red>:</font></b>hs<font color=Cyan>)</font> s <font color=Red>=</font> font h <font color=Cyan>(</font>highlight hs s<font color=Cyan>)</font>-<a name="line-28"></a>-<a name="line-29"></a>    font Normal         s <font color=Red>=</font> s-<a name="line-30"></a>    font Bold           s <font color=Red>=</font> <font color=Magenta>'\^B'</font><b><font color=Red>:</font></b>s<font color=Cyan>++</font><font color=Magenta>"\^B"</font>-<a name="line-31"></a>    font Underscore     s <font color=Red>=</font> <font color=Magenta>'\^_'</font><b><font color=Red>:</font></b>s<font color=Cyan>++</font><font color=Magenta>"\^_"</font>-<a name="line-32"></a>    font ReverseVideo   s <font color=Red>=</font> <font color=Magenta>'\^V'</font><b><font color=Red>:</font></b>s<font color=Cyan>++</font><font color=Magenta>"\^V"</font>-<a name="line-33"></a>-<a name="line-34"></a><a name="MircColour"></a><font color=Blue>-- mIRC combines colour codes in a non-modular way</font>-<a name="line-35"></a><a name="MircColour"></a><u><font color=Green>data</font></u> MircColour <font color=Red>=</font> Mirc <font color=Cyan>{</font> fg<font color=Red>::</font>Colour<font color=Cyan>,</font> dim<font color=Red>::</font>Bool<font color=Cyan>,</font> bg<font color=Red>::</font>Maybe Colour<font color=Cyan>,</font> blink<font color=Red>::</font>Bool<font color=Cyan>}</font>-<a name="line-36"></a>-<a name="line-37"></a><a name="joinColours"></a>joinColours <font color=Red>::</font> <font color=Red>[</font>Highlight<font color=Red>]</font> <font color=Red>-&gt;</font> MircColour-<a name="line-38"></a>joinColours <font color=Red>=</font> foldr join <font color=Cyan>(</font>Mirc <font color=Cyan>{</font>fg<font color=Red>=</font>Black<font color=Cyan>,</font> dim<font color=Red>=</font>False<font color=Cyan>,</font> bg<font color=Red>=</font>Nothing<font color=Cyan>,</font> blink<font color=Red>=</font>False<font color=Cyan>}</font><font color=Cyan>)</font>-<a name="line-39"></a>  <u><font color=Green>where</font></u>-<a name="line-40"></a>    join Blink           mirc <font color=Red>=</font> mirc <font color=Cyan>{</font>blink<font color=Red>=</font>True<font color=Cyan>}</font>-<a name="line-41"></a>    join Dim             mirc <font color=Red>=</font> mirc <font color=Cyan>{</font>dim<font color=Red>=</font>True<font color=Cyan>}</font>-<a name="line-42"></a>    join <font color=Cyan>(</font>Foreground fg<font color=Cyan>)</font> mirc <font color=Red>=</font> mirc <font color=Cyan>{</font>fg<font color=Red>=</font>fg<font color=Cyan>}</font>-<a name="line-43"></a>    join <font color=Cyan>(</font>Background bg<font color=Cyan>)</font> mirc <font color=Red>=</font> mirc <font color=Cyan>{</font>bg<font color=Red>=</font>Just bg<font color=Cyan>}</font>-<a name="line-44"></a>    join Concealed       mirc <font color=Red>=</font> mirc <font color=Cyan>{</font>fg<font color=Red>=</font>Black<font color=Cyan>,</font> bg<font color=Red>=</font>Just Black<font color=Cyan>}</font>-<a name="line-45"></a>    join <u><font color=Green>_</font></u>               mirc <font color=Red>=</font> mirc-<a name="line-46"></a>-<a name="line-47"></a><a name="mircColours"></a>mircColours <font color=Red>::</font> MircColour <font color=Red>-&gt;</font> String <font color=Red>-&gt;</font> String-<a name="line-48"></a>mircColours <font color=Cyan>(</font>Mirc fg dim Nothing   blink<font color=Cyan>)</font> s <font color=Red>=</font> <font color=Magenta>'\^C'</font><b><font color=Red>:</font></b> code fg dim<font color=Cyan>++</font>s<font color=Cyan>++</font><font color=Magenta>"\^O"</font>-<a name="line-49"></a>mircColours <font color=Cyan>(</font>Mirc fg dim <font color=Cyan>(</font>Just bg<font color=Cyan>)</font> blink<font color=Cyan>)</font> s <font color=Red>=</font> <font color=Magenta>'\^C'</font><b><font color=Red>:</font></b> code fg dim<font color=Cyan>++</font><font color=Magenta>','</font>-<a name="line-50"></a>                                                   <b><font color=Red>:</font></b> code bg blink<font color=Cyan>++</font>s<font color=Cyan>++</font><font color=Magenta>"\^O"</font>-<a name="line-51"></a>-<a name="line-52"></a><a name="code"></a>code <font color=Red>::</font> Colour <font color=Red>-&gt;</font> Bool <font color=Red>-&gt;</font> String-<a name="line-53"></a>code Black   False <font color=Red>=</font> <font color=Magenta>"1"</font>-<a name="line-54"></a>code Red     False <font color=Red>=</font> <font color=Magenta>"5"</font>-<a name="line-55"></a>code Green   False <font color=Red>=</font> <font color=Magenta>"3"</font>-<a name="line-56"></a>code Yellow  False <font color=Red>=</font> <font color=Magenta>"7"</font>-<a name="line-57"></a>code Blue    False <font color=Red>=</font> <font color=Magenta>"2"</font>-<a name="line-58"></a>code Magenta False <font color=Red>=</font> <font color=Magenta>"6"</font>-<a name="line-59"></a>code Cyan    False <font color=Red>=</font> <font color=Magenta>"10"</font>-<a name="line-60"></a>code White   False <font color=Red>=</font> <font color=Magenta>"0"</font>-<a name="line-61"></a>code Black   True  <font color=Red>=</font> <font color=Magenta>"14"</font>-<a name="line-62"></a>code Red     True  <font color=Red>=</font> <font color=Magenta>"4"</font>-<a name="line-63"></a>code Green   True  <font color=Red>=</font> <font color=Magenta>"9"</font>-<a name="line-64"></a>code Yellow  True  <font color=Red>=</font> <font color=Magenta>"8"</font>-<a name="line-65"></a>code Blue    True  <font color=Red>=</font> <font color=Magenta>"12"</font>-<a name="line-66"></a>code Magenta True  <font color=Red>=</font> <font color=Magenta>"13"</font>-<a name="line-67"></a>code Cyan    True  <font color=Red>=</font> <font color=Magenta>"11"</font>-<a name="line-68"></a>code White   True  <font color=Red>=</font> <font color=Magenta>"15"</font>-</pre>-</body>-</html>
− docs/hscolour/Language/Haskell/HsColour/Options.html
@@ -1,29 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">-<html>-<head>-<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->-<title>Language/Haskell/HsColour/Options.hs</title>-</head>-<body>-<pre><a name="line-1"></a><u><font color=Green>module</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Options-<a name="line-2"></a>  <font color=Cyan>(</font> Option<font color=Cyan>(</font><font color=Red>..</font><font color=Cyan>)</font>-<a name="line-3"></a>  <font color=Cyan>,</font> Output<font color=Cyan>(</font><font color=Red>..</font><font color=Cyan>)</font>-<a name="line-4"></a>  <font color=Cyan>)</font> <u><font color=Green>where</font></u> -<a name="line-5"></a>-<a name="line-6"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Output-<a name="line-7"></a>-<a name="line-8"></a><a name="Option"></a><font color=Blue>-- | Command-line options</font>-<a name="line-9"></a><a name="Option"></a><u><font color=Green>data</font></u> Option <font color=Red>=</font>-<a name="line-10"></a>    Help		<font color=Blue>-- ^ print usage message</font>-<a name="line-11"></a>  <font color=Red>|</font> Version		<font color=Blue>-- ^ report version</font>-<a name="line-12"></a>  <font color=Red>|</font> Information		<font color=Blue>-- ^ report auxiliary information, e.g. CSS defaults</font>-<a name="line-13"></a>  <font color=Red>|</font> Format Output	<font color=Blue>-- ^ what type of output to produce</font>-<a name="line-14"></a>  <font color=Red>|</font> LHS Bool		<font color=Blue>-- ^ literate input (i.e. multiple embedded fragments)</font>-<a name="line-15"></a>  <font color=Red>|</font> Anchors Bool	<font color=Blue>-- ^ whether to add anchors</font>-<a name="line-16"></a>  <font color=Red>|</font> Partial Bool	<font color=Blue>-- ^ whether to produce a full document or partial</font>-<a name="line-17"></a>  <font color=Red>|</font> Input FilePath	<font color=Blue>-- ^ input source file</font>-<a name="line-18"></a>  <font color=Red>|</font> Output FilePath	<font color=Blue>-- ^ output source file</font>-<a name="line-19"></a>  <u><font color=Green>deriving</font></u> Eq-</pre>-</body>-</html>
− docs/hscolour/Language/Haskell/HsColour/Output.html
@@ -1,20 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">-<html>-<head>-<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->-<title>Language/Haskell/HsColour/Output.hs</title>-</head>-<body>-<pre><a name="line-1"></a><u><font color=Green>module</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Output <u><font color=Green>where</font></u>-<a name="line-2"></a>-<a name="line-3"></a><a name="Output"></a><font color=Blue>-- | The supported output formats.</font>-<a name="line-4"></a><a name="Output"></a><u><font color=Green>data</font></u> Output <font color=Red>=</font> TTY   <font color=Blue>-- ^ ANSI terminal codes</font>-<a name="line-5"></a>            <font color=Red>|</font> LaTeX <font color=Blue>-- ^ TeX macros</font>-<a name="line-6"></a>            <font color=Red>|</font> HTML  <font color=Blue>-- ^ HTML with font tags</font>-<a name="line-7"></a>            <font color=Red>|</font> CSS   <font color=Blue>-- ^ HTML with CSS.</font>-<a name="line-8"></a>            <font color=Red>|</font> ICSS  <font color=Blue>-- ^ HTML with inline CSS.</font>-<a name="line-9"></a>            <font color=Red>|</font> MIRC  <font color=Blue>-- ^ mIRC chat clients</font>-<a name="line-10"></a>  <u><font color=Green>deriving</font></u> <font color=Cyan>(</font>Eq<font color=Cyan>,</font>Show<font color=Cyan>)</font>-</pre>-</body>-</html>
− docs/hscolour/Language/Haskell/HsColour/TTY.html
@@ -1,25 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">-<html>-<head>-<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->-<title>Language/Haskell/HsColour/TTY.hs</title>-</head>-<body>-<pre><a name="line-1"></a><font color=Blue>-- | Highlights Haskell code with ANSI terminal codes.</font>-<a name="line-2"></a><u><font color=Green>module</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>TTY <font color=Cyan>(</font>hscolour<font color=Cyan>)</font> <u><font color=Green>where</font></u>-<a name="line-3"></a>-<a name="line-4"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>ANSI <u><font color=Green>as</font></u> ANSI-<a name="line-5"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Classify-<a name="line-6"></a><u><font color=Green>import</font></u> Language<font color=Cyan>.</font>Haskell<font color=Cyan>.</font>HsColour<font color=Cyan>.</font>Colourise-<a name="line-7"></a>-<a name="line-8"></a><a name="hscolour"></a><font color=Blue>-- | Highlights Haskell code with ANSI terminal codes.</font>-<a name="line-9"></a>hscolour <font color=Red>::</font> ColourPrefs <font color=Blue>-- ^ Colour preferences.</font>-<a name="line-10"></a>         <font color=Red>-&gt;</font> String      <font color=Blue>-- ^ Haskell source code.</font>-<a name="line-11"></a>         <font color=Red>-&gt;</font> String      <font color=Blue>-- ^ Coloured Haskell source code.</font>-<a name="line-12"></a>hscolour pref <font color=Red>=</font> concatMap <font color=Cyan>(</font>renderToken pref<font color=Cyan>)</font> <font color=Cyan>.</font> tokenise-<a name="line-13"></a>-<a name="line-14"></a><a name="renderToken"></a>renderToken <font color=Red>::</font> ColourPrefs <font color=Red>-&gt;</font> <font color=Cyan>(</font>TokenType<font color=Cyan>,</font>String<font color=Cyan>)</font> <font color=Red>-&gt;</font> String-<a name="line-15"></a>renderToken pref <font color=Cyan>(</font>t<font color=Cyan>,</font>s<font color=Cyan>)</font> <font color=Red>=</font> ANSI<font color=Cyan>.</font>highlight <font color=Cyan>(</font>colourise pref t<font color=Cyan>)</font> s-</pre>-</body>-</html>
− docs/hscolour/doc-index-A.html
@@ -1,150 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (A)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->Anchors</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Options.html#v%3AAnchors"->Language.Haskell.HsColour.Options</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-B.html
@@ -1,192 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (B)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->Background</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#v%3ABackground"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#v%3ABackground"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Black</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#v%3ABlack"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#v%3ABlack"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Blink</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#v%3ABlink"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#v%3ABlink"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Blue</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#v%3ABlue"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#v%3ABlue"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Bold</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#v%3ABold"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#v%3ABold"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-C.html
@@ -1,394 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (C)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->CSS</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Output.html#v%3ACSS"->Language.Haskell.HsColour.Output</A->, <A HREF="Language-Haskell-HsColour-Options.html#v%3ACSS"->Language.Haskell.HsColour.Options</A->, <A HREF="Language-Haskell-HsColour.html#v%3ACSS"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Char</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Classify.html#v%3AChar"->Language.Haskell.HsColour.Classify</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Colour</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AColour"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#t%3AColour"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry" COLSPAN="2"->ColourPrefs</TD-></TR-><TR-><TD CLASS="indexannot"->1 (Type/Class)</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#t%3AColourPrefs"->Language.Haskell.HsColour.Colourise</A->, <A HREF="Language-Haskell-HsColour.html#t%3AColourPrefs"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexannot"->2 (Data Constructor)</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#v%3AColourPrefs"->Language.Haskell.HsColour.Colourise</A->, <A HREF="Language-Haskell-HsColour.html#v%3AColourPrefs"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Comment</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Classify.html#v%3AComment"->Language.Haskell.HsColour.Classify</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Concealed</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#v%3AConcealed"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#v%3AConcealed"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Conid</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Classify.html#v%3AConid"->Language.Haskell.HsColour.Classify</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Conop</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Classify.html#v%3AConop"->Language.Haskell.HsColour.Classify</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Cpp</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Classify.html#v%3ACpp"->Language.Haskell.HsColour.Classify</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Cyan</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#v%3ACyan"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#v%3ACyan"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->char</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#v%3Achar"->Language.Haskell.HsColour.Colourise</A->, <A HREF="Language-Haskell-HsColour.html#v%3Achar"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexentry"->clearDown</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3AclearDown"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->clearUp</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3AclearUp"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->clearbol</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3Aclearbol"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->cleareol</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3Acleareol"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->clearline</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3Aclearline"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->cls</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3Acls"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->colourCycle</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3AcolourCycle"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->colourise</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#v%3Acolourise"->Language.Haskell.HsColour.Colourise</A-></TD-></TR-><TR-><TD CLASS="indexentry"->comment</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#v%3Acomment"->Language.Haskell.HsColour.Colourise</A->, <A HREF="Language-Haskell-HsColour.html#v%3Acomment"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexentry"->conid</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#v%3Aconid"->Language.Haskell.HsColour.Colourise</A->, <A HREF="Language-Haskell-HsColour.html#v%3Aconid"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexentry"->conop</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#v%3Aconop"->Language.Haskell.HsColour.Colourise</A->, <A HREF="Language-Haskell-HsColour.html#v%3Aconop"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexentry"->cpp</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#v%3Acpp"->Language.Haskell.HsColour.Colourise</A->, <A HREF="Language-Haskell-HsColour.html#v%3Acpp"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexentry"->cursorDown</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3AcursorDown"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->cursorLeft</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3AcursorLeft"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->cursorRight</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3AcursorRight"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->cursorUp</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3AcursorUp"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-D.html
@@ -1,194 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (D)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->Definition</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Classify.html#v%3ADefinition"->Language.Haskell.HsColour.Classify</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Dim</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#v%3ADim"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#v%3ADim"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->defaultColourPrefs</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#v%3AdefaultColourPrefs"->Language.Haskell.HsColour.Colourise</A-></TD-></TR-><TR-><TD CLASS="indexentry"->definition</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#v%3Adefinition"->Language.Haskell.HsColour.Colourise</A->, <A HREF="Language-Haskell-HsColour.html#v%3Adefinition"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexentry"->dropFirst</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-General.html#v%3AdropFirst"->Language.Haskell.HsColour.General</A-></TD-></TR-><TR-><TD CLASS="indexentry"->dropLast</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-General.html#v%3AdropLast"->Language.Haskell.HsColour.General</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-E.html
@@ -1,166 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (E)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->Error</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Classify.html#v%3AError"->Language.Haskell.HsColour.Classify</A-></TD-></TR-><TR-><TD CLASS="indexentry"->enableScrollRegion</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3AenableScrollRegion"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->escape</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-HTML.html#v%3Aescape"->Language.Haskell.HsColour.HTML</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-F.html
@@ -1,160 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (F)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->Foreground</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#v%3AForeground"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#v%3AForeground"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Format</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Options.html#v%3AFormat"->Language.Haskell.HsColour.Options</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-G.html
@@ -1,160 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (G)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->Green</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#v%3AGreen"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#v%3AGreen"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->goto</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3Agoto"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-H.html
@@ -1,256 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (H)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->HTML</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Output.html#v%3AHTML"->Language.Haskell.HsColour.Output</A->, <A HREF="Language-Haskell-HsColour-Options.html#v%3AHTML"->Language.Haskell.HsColour.Options</A->, <A HREF="Language-Haskell-HsColour.html#v%3AHTML"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Help</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Options.html#v%3AHelp"->Language.Haskell.HsColour.Options</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Highlight</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#t%3AHighlight"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#t%3AHighlight"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->highlight</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3Ahighlight"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->highlightOff</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3AhighlightOff"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->highlightOn</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3AhighlightOn"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry" COLSPAN="2"->hscolour</TD-></TR-><TR-><TD CLASS="indexannot"->1 (Function)</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour.html#v%3Ahscolour"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexannot"->2 (Function)</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-CSS.html#v%3Ahscolour"->Language.Haskell.HsColour.CSS</A-></TD-></TR-><TR-><TD CLASS="indexannot"->3 (Function)</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-HTML.html#v%3Ahscolour"->Language.Haskell.HsColour.HTML</A-></TD-></TR-><TR-><TD CLASS="indexannot"->4 (Function)</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-InlineCSS.html#v%3Ahscolour"->Language.Haskell.HsColour.InlineCSS</A-></TD-></TR-><TR-><TD CLASS="indexannot"->5 (Function)</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-LaTeX.html#v%3Ahscolour"->Language.Haskell.HsColour.LaTeX</A-></TD-></TR-><TR-><TD CLASS="indexannot"->6 (Function)</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-MIRC.html#v%3Ahscolour"->Language.Haskell.HsColour.MIRC</A-></TD-></TR-><TR-><TD CLASS="indexannot"->7 (Function)</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-TTY.html#v%3Ahscolour"->Language.Haskell.HsColour.TTY</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-I.html
@@ -1,188 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (I)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->ICSS</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Output.html#v%3AICSS"->Language.Haskell.HsColour.Output</A->, <A HREF="Language-Haskell-HsColour-Options.html#v%3AICSS"->Language.Haskell.HsColour.Options</A->, <A HREF="Language-Haskell-HsColour.html#v%3AICSS"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Information</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Options.html#v%3AInformation"->Language.Haskell.HsColour.Options</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Input</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Options.html#v%3AInput"->Language.Haskell.HsColour.Options</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Italic</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#v%3AItalic"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#v%3AItalic"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->insertAnchors</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Anchors.html#v%3AinsertAnchors"->Language.Haskell.HsColour.Anchors</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-K.html
@@ -1,178 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (K)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->Keyglyph</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Classify.html#v%3AKeyglyph"->Language.Haskell.HsColour.Classify</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Keyword</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Classify.html#v%3AKeyword"->Language.Haskell.HsColour.Classify</A-></TD-></TR-><TR-><TD CLASS="indexentry"->keyglyph</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#v%3Akeyglyph"->Language.Haskell.HsColour.Colourise</A->, <A HREF="Language-Haskell-HsColour.html#v%3Akeyglyph"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexentry"->keyword</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#v%3Akeyword"->Language.Haskell.HsColour.Colourise</A->, <A HREF="Language-Haskell-HsColour.html#v%3Akeyword"->Language.Haskell.HsColour</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-L.html
@@ -1,188 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (L)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->LHS</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Options.html#v%3ALHS"->Language.Haskell.HsColour.Options</A-></TD-></TR-><TR-><TD CLASS="indexentry"->LaTeX</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Output.html#v%3ALaTeX"->Language.Haskell.HsColour.Output</A->, <A HREF="Language-Haskell-HsColour-Options.html#v%3ALaTeX"->Language.Haskell.HsColour.Options</A->, <A HREF="Language-Haskell-HsColour.html#v%3ALaTeX"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Layout</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Classify.html#v%3ALayout"->Language.Haskell.HsColour.Classify</A-></TD-></TR-><TR-><TD CLASS="indexentry"->layout</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#v%3Alayout"->Language.Haskell.HsColour.Colourise</A->, <A HREF="Language-Haskell-HsColour.html#v%3Alayout"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexentry"->lineWrap</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3AlineWrap"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-M.html
@@ -1,164 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (M)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->MIRC</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Output.html#v%3AMIRC"->Language.Haskell.HsColour.Output</A->, <A HREF="Language-Haskell-HsColour-Options.html#v%3AMIRC"->Language.Haskell.HsColour.Options</A->, <A HREF="Language-Haskell-HsColour.html#v%3AMIRC"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Magenta</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#v%3AMagenta"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#v%3AMagenta"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-N.html
@@ -1,170 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (N)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->Normal</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#v%3ANormal"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#v%3ANormal"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Number</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Classify.html#v%3ANumber"->Language.Haskell.HsColour.Classify</A-></TD-></TR-><TR-><TD CLASS="indexentry"->number</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#v%3Anumber"->Language.Haskell.HsColour.Colourise</A->, <A HREF="Language-Haskell-HsColour.html#v%3Anumber"->Language.Haskell.HsColour</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-O.html
@@ -1,174 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (O)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->Option</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Options.html#t%3AOption"->Language.Haskell.HsColour.Options</A-></TD-></TR-><TR-><TD CLASS="indexentry" COLSPAN="2"->Output</TD-></TR-><TR-><TD CLASS="indexannot"->1 (Data Constructor)</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Options.html#v%3AOutput"->Language.Haskell.HsColour.Options</A-></TD-></TR-><TR-><TD CLASS="indexannot"->2 (Type/Class)</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Output.html#t%3AOutput"->Language.Haskell.HsColour.Output</A->, <A HREF="Language-Haskell-HsColour-Options.html#t%3AOutput"->Language.Haskell.HsColour.Options</A->, <A HREF="Language-Haskell-HsColour.html#t%3AOutput"->Language.Haskell.HsColour</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-P.html
@@ -1,150 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (P)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->Partial</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Options.html#v%3APartial"->Language.Haskell.HsColour.Options</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-R.html
@@ -1,202 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (R)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->Red</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#v%3ARed"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#v%3ARed"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->ReverseVideo</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#v%3AReverseVideo"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#v%3AReverseVideo"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->readColourPrefs</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#v%3AreadColourPrefs"->Language.Haskell.HsColour.Colourise</A-></TD-></TR-><TR-><TD CLASS="indexentry"->renderAnchors</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-HTML.html#v%3ArenderAnchors"->Language.Haskell.HsColour.HTML</A-></TD-></TR-><TR-><TD CLASS="indexentry"->renderComment</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-HTML.html#v%3ArenderComment"->Language.Haskell.HsColour.HTML</A-></TD-></TR-><TR-><TD CLASS="indexentry"->renderNewLinesAnchors</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-HTML.html#v%3ArenderNewLinesAnchors"->Language.Haskell.HsColour.HTML</A-></TD-></TR-><TR-><TD CLASS="indexentry"->restorePosition</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3ArestorePosition"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-S.html
@@ -1,202 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (S)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->Space</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Classify.html#v%3ASpace"->Language.Haskell.HsColour.Classify</A-></TD-></TR-><TR-><TD CLASS="indexentry"->String</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Classify.html#v%3AString"->Language.Haskell.HsColour.Classify</A-></TD-></TR-><TR-><TD CLASS="indexentry"->savePosition</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3AsavePosition"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->scrollDown</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3AscrollDown"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->scrollUp</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ANSI.html#v%3AscrollUp"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-><TR-><TD CLASS="indexentry"->selection</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#v%3Aselection"->Language.Haskell.HsColour.Colourise</A->, <A HREF="Language-Haskell-HsColour.html#v%3Aselection"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexentry"->string</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#v%3Astring"->Language.Haskell.HsColour.Colourise</A->, <A HREF="Language-Haskell-HsColour.html#v%3Astring"->Language.Haskell.HsColour</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-T.html
@@ -1,206 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (T)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->TTY</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Output.html#v%3ATTY"->Language.Haskell.HsColour.Output</A->, <A HREF="Language-Haskell-HsColour-Options.html#v%3ATTY"->Language.Haskell.HsColour.Options</A->, <A HREF="Language-Haskell-HsColour.html#v%3ATTY"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexentry"->TokenType</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Classify.html#t%3ATokenType"->Language.Haskell.HsColour.Classify</A-></TD-></TR-><TR-><TD CLASS="indexentry"->tokenise</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Classify.html#v%3Atokenise"->Language.Haskell.HsColour.Classify</A-></TD-></TR-><TR-><TD CLASS="indexentry" COLSPAN="2"->top'n'tail</TD-></TR-><TR-><TD CLASS="indexannot"->1 (Function)</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-CSS.html#v%3Atop%27n%27tail"->Language.Haskell.HsColour.CSS</A-></TD-></TR-><TR-><TD CLASS="indexannot"->2 (Function)</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-HTML.html#v%3Atop%27n%27tail"->Language.Haskell.HsColour.HTML</A-></TD-></TR-><TR-><TD CLASS="indexannot"->3 (Function)</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-InlineCSS.html#v%3Atop%27n%27tail"->Language.Haskell.HsColour.InlineCSS</A-></TD-></TR-><TR-><TD CLASS="indexannot"->4 (Function)</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-LaTeX.html#v%3Atop%27n%27tail"->Language.Haskell.HsColour.LaTeX</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-U.html
@@ -1,152 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (U)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->Underscore</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#v%3AUnderscore"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#v%3AUnderscore"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-V.html
@@ -1,196 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (V)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->Varid</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Classify.html#v%3AVarid"->Language.Haskell.HsColour.Classify</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Varop</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Classify.html#v%3AVarop"->Language.Haskell.HsColour.Classify</A-></TD-></TR-><TR-><TD CLASS="indexentry"->Version</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Options.html#v%3AVersion"->Language.Haskell.HsColour.Options</A-></TD-></TR-><TR-><TD CLASS="indexentry"->variantselection</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#v%3Avariantselection"->Language.Haskell.HsColour.Colourise</A->, <A HREF="Language-Haskell-HsColour.html#v%3Avariantselection"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexentry"->varid</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#v%3Avarid"->Language.Haskell.HsColour.Colourise</A->, <A HREF="Language-Haskell-HsColour.html#v%3Avarid"->Language.Haskell.HsColour</A-></TD-></TR-><TR-><TD CLASS="indexentry"->varop</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-Colourise.html#v%3Avarop"->Language.Haskell.HsColour.Colourise</A->, <A HREF="Language-Haskell-HsColour.html#v%3Avarop"->Language.Haskell.HsColour</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-W.html
@@ -1,152 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (W)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->White</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#v%3AWhite"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#v%3AWhite"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index-Y.html
@@ -1,152 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index (Y)</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD CLASS="indexentry"->Yellow</TD-><TD CLASS="indexlinks"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html#v%3AYellow"->Language.Haskell.HsColour.ColourHighlight</A->, Language.Haskell.HsColour.Colourise, <A HREF="Language-Haskell-HsColour-ANSI.html#v%3AYellow"->Language.Haskell.HsColour.ANSI</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/doc-index.html
@@ -1,136 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour (Index)</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Index</TD-></TR-><TR-><TD-><TABLE CELLPADDING="0" CELLSPACING="5"-><TR-><TD-><A HREF="doc-index-A.html"->A</A-></TD-><TD-><A HREF="doc-index-B.html"->B</A-></TD-><TD-><A HREF="doc-index-C.html"->C</A-></TD-><TD-><A HREF="doc-index-D.html"->D</A-></TD-><TD-><A HREF="doc-index-E.html"->E</A-></TD-><TD-><A HREF="doc-index-F.html"->F</A-></TD-><TD-><A HREF="doc-index-G.html"->G</A-></TD-><TD-><A HREF="doc-index-H.html"->H</A-></TD-><TD-><A HREF="doc-index-I.html"->I</A-></TD-><TD-><A HREF="doc-index-K.html"->K</A-></TD-><TD-><A HREF="doc-index-L.html"->L</A-></TD-><TD-><A HREF="doc-index-M.html"->M</A-></TD-><TD-><A HREF="doc-index-N.html"->N</A-></TD-><TD-><A HREF="doc-index-O.html"->O</A-></TD-><TD-><A HREF="doc-index-P.html"->P</A-></TD-><TD-><A HREF="doc-index-R.html"->R</A-></TD-><TD-><A HREF="doc-index-S.html"->S</A-></TD-><TD-><A HREF="doc-index-T.html"->T</A-></TD-><TD-><A HREF="doc-index-U.html"->U</A-></TD-><TD-><A HREF="doc-index-V.html"->V</A-></TD-><TD-><A HREF="doc-index-W.html"->W</A-></TD-><TD-><A HREF="doc-index-Y.html"->Y</A-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/haddock.css
@@ -1,260 +0,0 @@-/* -------- Global things --------- */--BODY { -  background-color: #ffffff;-  color: #000000;-  font-family: sans-serif;-  } --A:link    { color: #0000e0; text-decoration: none }-A:visited { color: #0000a0; text-decoration: none }-A:hover   { background-color: #e0e0ff; text-decoration: none }--TABLE.vanilla {-  width: 100%;-  border-width: 0px;-  /* I can't seem to specify cellspacing or cellpadding properly using CSS... */-}--TABLE.vanilla2 {-  border-width: 0px;-}--/* <TT> font is a little too small in MSIE */-TT  { font-size: 100%; }-PRE { font-size: 100%; }--LI P { margin: 0pt } --TD {-  border-width: 0px;-}--TABLE.narrow {-  border-width: 0px;-}--TD.s8  {  height: 8px;  }-TD.s15 {  height: 15px; }--SPAN.keyword { text-decoration: underline; }--/* Resize the buttom image to match the text size */-IMG.coll { width : 0.75em; height: 0.75em; margin-bottom: 0; margin-right: 0.5em }--/* --------- Contents page ---------- */--DIV.node {-  padding-left: 3em;-}--DIV.cnode {-  padding-left: 1.75em;-}--SPAN.pkg {-  position: absolute;-  left: 50em;-}--/* --------- Documentation elements ---------- */--TD.children {-  padding-left: 25px;-  }--TD.synopsis {-  padding: 2px;-  background-color: #f0f0f0;-  font-family: monospace- }--TD.decl { -  padding: 2px;-  background-color: #f0f0f0; -  font-family: monospace;-  vertical-align: top;-  }--TD.topdecl {-  padding: 2px;-  background-color: #f0f0f0;-  font-family: monospace;-  vertical-align: top;-}--TABLE.declbar {-  border-spacing: 0px;- }--TD.declname {-  width: 100%;- }--TD.declbut {-  padding-left: 5px;-  padding-right: 5px;-  border-left-width: 1px;-  border-left-color: #000099;-  border-left-style: solid;-  white-space: nowrap;-  font-size: small;- }--/* -  arg is just like decl, except that wrapping is not allowed.  It is-  used for function and constructor arguments which have a text box-  to the right, where if wrapping is allowed the text box squashes up-  the declaration by wrapping it.-*/-TD.arg { -  padding: 2px;-  background-color: #f0f0f0; -  font-family: monospace;-  vertical-align: top;-  white-space: nowrap;-  }--TD.recfield { padding-left: 20px }--TD.doc  { -  padding-top: 2px;-  padding-left: 10px;-  }--TD.ndoc  { -  padding: 2px;-  }--TD.rdoc  { -  padding: 2px;-  padding-left: 10px;-  width: 100%;-  }--TD.body  { -  padding-left: 10px-  }--TD.pkg {-  width: 100%;-  padding-left: 10px-}--TD.indexentry {-  vertical-align: top;-  padding-right: 10px-  }--TD.indexannot {-  vertical-align: top;-  padding-left: 20px;-  white-space: nowrap-  }--TD.indexlinks {-  width: 100%-  }--/* ------- Section Headings ------- */--TD.section1 {-  padding-top: 15px;-  font-weight: bold;-  font-size: 150%-  }--TD.section2 {-  padding-top: 10px;-  font-weight: bold;-  font-size: 130%-  }--TD.section3 {-  padding-top: 5px;-  font-weight: bold;-  font-size: 110%-  }--TD.section4 {-  font-weight: bold;-  font-size: 100%-  }--/* -------------- The title bar at the top of the page */--TD.infohead {-  color: #ffffff;-  font-weight: bold;-  padding-right: 10px;-  text-align: left;-}--TD.infoval {-  color: #ffffff;-  padding-right: 10px;-  text-align: left;-}--TD.topbar {-  background-color: #000099;-  padding: 5px;-}--TD.title {-  color: #ffffff;-  padding-left: 10px;-  width: 100%-  }--TD.topbut {-  padding-left: 5px;-  padding-right: 5px;-  border-left-width: 1px;-  border-left-color: #ffffff;-  border-left-style: solid;-  white-space: nowrap;-  }--TD.topbut A:link {-  color: #ffffff-  }--TD.topbut A:visited {-  color: #ffff00-  }--TD.topbut A:hover {-  background-color: #6060ff;-  }--TD.topbut:hover {-  background-color: #6060ff-  }--TD.modulebar { -  background-color: #0077dd;-  padding: 5px;-  border-top-width: 1px;-  border-top-color: #ffffff;-  border-top-style: solid;-  }--/* --------- The page footer --------- */--TD.botbar {-  background-color: #000099;-  color: #ffffff;-  padding: 5px-  }-TD.botbar A:link {-  color: #ffffff;-  text-decoration: underline-  }-TD.botbar A:visited {-  color: #ffff00-  }-TD.botbar A:hover {-  background-color: #6060ff-  }-
− docs/hscolour/haddock.js
@@ -1,15 +0,0 @@-// Haddock JavaScript utilities-function toggle(button,id)-{-   var n = document.getElementById(id).style;-   if (n.display == "none")-   {-	button.src = "minus.gif";-	n.display = "block";-   }-   else-   {-	button.src = "plus.gif";-	n.display = "none";-   }-}
− docs/hscolour/haskell_icon.gif

binary file changed (911 → absent bytes)

− docs/hscolour/index.html
@@ -1,245 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<!--Rendered using the Haskell Html Library v0.2-->-<HTML-><HEAD-><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"-><TITLE->hscolour</TITLE-><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"-><SCRIPT SRC="haddock.js" TYPE="text/javascript"-></SCRIPT-></HEAD-><BODY-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD CLASS="topbar"-><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"-><TR-><TD-><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "-></TD-><TD CLASS="title"->hscolour</TD-><TD CLASS="topbut"-><A HREF="index.html"->Contents</A-></TD-><TD CLASS="topbut"-><A HREF="doc-index.html"->Index</A-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="section1"->Modules</TD-></TR-><TR-><TD-><TABLE CLASS="vanilla2" CELLSPACING="0" CELLPADDING="0"-><TR-><TD STYLE="width: 50em"-><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'n:0')" ALT="show/hide"->Language</TD-><TD-></TD-><TD-></TD-></TR-><TR-><TD STYLE="padding: 0; padding-left: 2em" COLSPAN="3"-><TABLE CLASS="vanilla2" CELLSPACING="0" CELLPADDING="0" ID="n:0" STYLE="display:block;"-><TR-><TD STYLE="width: 48em"-><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'n:1')" ALT="show/hide"->Haskell</TD-><TD-></TD-><TD-></TD-></TR-><TR-><TD STYLE="padding: 0; padding-left: 2em" COLSPAN="3"-><TABLE CLASS="vanilla2" CELLSPACING="0" CELLPADDING="0" ID="n:1" STYLE="display:block;"-><TR-><TD STYLE="width: 46em"-><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'n:2')" ALT="show/hide"-><A HREF="Language-Haskell-HsColour.html"->Language.Haskell.HsColour</A-></TD-><TD-></TD-><TD-></TD-></TR-><TR-><TD STYLE="padding: 0; padding-left: 2em" COLSPAN="3"-><TABLE CLASS="vanilla2" CELLSPACING="0" CELLPADDING="0" ID="n:2" STYLE="display:block;"-><TR-><TD STYLE="padding-left: 1.25em;width: 44em"-><A HREF="Language-Haskell-HsColour-ANSI.html"->Language.Haskell.HsColour.ANSI</A-></TD-><TD-></TD-><TD-></TD-></TR-><TR-><TD STYLE="padding-left: 1.25em;width: 44em"-><A HREF="Language-Haskell-HsColour-Anchors.html"->Language.Haskell.HsColour.Anchors</A-></TD-><TD-></TD-><TD-></TD-></TR-><TR-><TD STYLE="padding-left: 1.25em;width: 44em"-><A HREF="Language-Haskell-HsColour-CSS.html"->Language.Haskell.HsColour.CSS</A-></TD-><TD-></TD-><TD-></TD-></TR-><TR-><TD STYLE="padding-left: 1.25em;width: 44em"-><A HREF="Language-Haskell-HsColour-Classify.html"->Language.Haskell.HsColour.Classify</A-></TD-><TD-></TD-><TD-></TD-></TR-><TR-><TD STYLE="padding-left: 1.25em;width: 44em"-><A HREF="Language-Haskell-HsColour-ColourHighlight.html"->Language.Haskell.HsColour.ColourHighlight</A-></TD-><TD-></TD-><TD-></TD-></TR-><TR-><TD STYLE="padding-left: 1.25em;width: 44em"-><A HREF="Language-Haskell-HsColour-Colourise.html"->Language.Haskell.HsColour.Colourise</A-></TD-><TD-></TD-><TD-></TD-></TR-><TR-><TD STYLE="padding-left: 1.25em;width: 44em"-><A HREF="Language-Haskell-HsColour-General.html"->Language.Haskell.HsColour.General</A-></TD-><TD-></TD-><TD-></TD-></TR-><TR-><TD STYLE="padding-left: 1.25em;width: 44em"-><A HREF="Language-Haskell-HsColour-HTML.html"->Language.Haskell.HsColour.HTML</A-></TD-><TD-></TD-><TD-></TD-></TR-><TR-><TD STYLE="padding-left: 1.25em;width: 44em"-><A HREF="Language-Haskell-HsColour-InlineCSS.html"->Language.Haskell.HsColour.InlineCSS</A-></TD-><TD-></TD-><TD-></TD-></TR-><TR-><TD STYLE="padding-left: 1.25em;width: 44em"-><A HREF="Language-Haskell-HsColour-LaTeX.html"->Language.Haskell.HsColour.LaTeX</A-></TD-><TD-></TD-><TD-></TD-></TR-><TR-><TD STYLE="padding-left: 1.25em;width: 44em"-><A HREF="Language-Haskell-HsColour-MIRC.html"->Language.Haskell.HsColour.MIRC</A-></TD-><TD-></TD-><TD-></TD-></TR-><TR-><TD STYLE="padding-left: 1.25em;width: 44em"-><A HREF="Language-Haskell-HsColour-Options.html"->Language.Haskell.HsColour.Options</A-></TD-><TD-></TD-><TD-></TD-></TR-><TR-><TD STYLE="padding-left: 1.25em;width: 44em"-><A HREF="Language-Haskell-HsColour-Output.html"->Language.Haskell.HsColour.Output</A-></TD-><TD-></TD-><TD-></TD-></TR-><TR-><TD STYLE="padding-left: 1.25em;width: 44em"-><A HREF="Language-Haskell-HsColour-TTY.html"->Language.Haskell.HsColour.TTY</A-></TD-><TD-></TD-><TD-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></TD-></TR-></TABLE-></TD-></TR-><TR-><TD CLASS="s15"-></TD-></TR-><TR-><TD CLASS="botbar"->Produced by <A HREF="http://www.haskell.org/haddock/"->Haddock</A-> version 0.8</TD-></TR-></TABLE-></BODY-></HTML->
− docs/hscolour/minus.gif

binary file changed (56 → absent bytes)

− docs/hscolour/plus.gif

binary file changed (59 → absent bytes)

hscolour.cabal view
@@ -1,43 +1,62 @@ Name: hscolour-Version: 1.15-Copyright: 2003-2009 Malcolm Wallace, University of York; 2006 Bjorn Bringert+Version: 1.25+Copyright: 2003-2023 Malcolm Wallace; 2006 Bjorn Bringert Maintainer: Malcolm Wallace Author: Malcolm Wallace-Homepage: http://www.cs.york.ac.uk/fp/darcs/hscolour/-License: GPL-License-file: LICENCE-GPL-Build-depends: haskell98, base < 10-Extensions: +Homepage: http://code.haskell.org/~malcolm/hscolour/+License: LGPL+License-file: LICENCE-LGPL Synopsis: Colourise Haskell code. Description:   hscolour is a small Haskell script to colourise Haskell code. It currently   has six output formats: -  ANSI terminal codes,+  ANSI terminal codes (optionally XTerm-256colour codes),   HTML 3.2 with <font> tags,   HTML 4.01 with CSS,+  HTML 4.01 with CSS and mouseover annotations,   XHTML 1.0 with inline CSS styling,   LaTeX,   and mIRC chat codes. Category: Language-Exposed-Modules: -  Language.Haskell.HsColour-  Language.Haskell.HsColour.ANSI-  Language.Haskell.HsColour.Anchors-  Language.Haskell.HsColour.CSS-  Language.Haskell.HsColour.Classify-  Language.Haskell.HsColour.ColourHighlight-  Language.Haskell.HsColour.Colourise-  Language.Haskell.HsColour.General-  Language.Haskell.HsColour.HTML-  Language.Haskell.HsColour.InlineCSS-  Language.Haskell.HsColour.LaTeX-  Language.Haskell.HsColour.MIRC-  Language.Haskell.HsColour.Options-  Language.Haskell.HsColour.Output-  Language.Haskell.HsColour.TTY-data-files: hscolour.css---ghc-options: -O -W Build-Type: Simple+Data-files: hscolour.css, data/rgb24-example-.hscolour+Cabal-version: >=1.10 -Executable: HsColour-Main-is: HsColour.hs++Library+  Build-depends: base < 10, containers+  Default-Language: Haskell98+  Exposed-Modules: +    Language.Haskell.HsColour+    Language.Haskell.HsColour.ANSI+    Language.Haskell.HsColour.Anchors+    Language.Haskell.HsColour.ACSS+    Language.Haskell.HsColour.CSS+    Language.Haskell.HsColour.Classify+    Language.Haskell.HsColour.ColourHighlight+    Language.Haskell.HsColour.Colourise+    Language.Haskell.HsColour.General+    Language.Haskell.HsColour.HTML+    Language.Haskell.HsColour.InlineCSS+    Language.Haskell.HsColour.LaTeX+    Language.Haskell.HsColour.MIRC+    Language.Haskell.HsColour.Options+    Language.Haskell.HsColour.Output+    Language.Haskell.HsColour.TTY+  --ghc-options: -O -W+  Default-Extensions: +++Executable HsColour+  Build-depends: base < 10, containers+  Default-Language: Haskell98+  Main-is: HsColour.hs+  --ghc-options: -O -W+  Default-Extensions: CPP+  cpp-options: -DMAJOR=1 -DMINOR=25++++Source-repository head+  Type    : darcs+  Location: http://code.haskell.org/~malcolm/hscolour
hscolour.css view
@@ -1,6 +1,38 @@- .hs-keyglyph, .hs-layout {color: red;} .hs-keyword {color: blue;} .hs-comment, .hs-comment a {color: green;} .hs-str, .hs-chr {color: teal;} .hs-keyword,.hs-conid, .hs-varid, .hs-conop, .hs-varop, .hs-num, .hs-cpp, .hs-sel, .hs-definition {}+++/* For Mouseover Annotations */++a.annot{+    position:relative; +    color:#000;+    text-decoration:none+  }++a.annot:hover{z-index:25; background-color:#ff0}++a.annot span.annottext{display: none}++a.annot:hover span.annottext{ +  border-radius: 5px 5px;+  +  -moz-border-radius: 5px; +  -webkit-border-radius: 5px; +  +  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); +  -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);+  -moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); ++  display:block;+  position: absolute; +  left: 1em; top: 2em; +  z-index: 99;+  margin-left: 5; +  background: #FFFFAA; +  border: 2px solid #FFAD33;+  padding: 0.8em 1em;+}
− index.html
@@ -1,233 +0,0 @@-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">-<html><head><title>hscolour</title></head>-<body bgcolor="#ffffff">-<table><tr><td width=700>--<center>-  <h1>hscolour</h1>-</center>-<hr>--<p>-<b>hscolour</b> is a small Haskell script to colourise Haskell code.-It currently has six output formats: ANSI terminal codes, HTML 3.2 with-&lt;font&gt; tags, HTML 4.01 with CSS, XHTML 1.0 with inline CSS styling,-LaTeX, and mIRC chat client codes.--<h2>Example</h2>-<p>-Here's a little example of the HTML output:<br>-<pre>    <u><font color=Green>module</font></u> Main <font color=Cyan>(</font>main<font color=Cyan>)</font> <u><font color=Green>where</font></u>-    <u><font color=Green>import</font></u> Prelude -    -    <font color=Blue>-- The notorious nfib "benchmark", but using Doubles.</font>-    main <font color=Red>=</font> print <font color=Cyan>(</font>nfib <font color=Magenta>30</font><font color=Cyan>)</font>-    -    nfib <font color=Red>::</font> Double <font color=Red>-&gt;</font> Double-    nfib n <font color=Red>=</font> <u><font color=Green>if</font></u> n <font color=Cyan>&lt;=</font> <font color=Magenta>1</font>-             <u><font color=Green>then</font></u> <font color=Magenta>1</font>-             <u><font color=Green>else</font></u> nfib <font color=Cyan>(</font>n<font color=Cyan>`subtract`</font><font color=Magenta>1</font><font color=Cyan>)</font> <font color=Cyan>+</font> nfib <font color=Cyan>(</font>n<font color=Cyan>`subtract`</font><font color=Magenta>2</font><font color=Cyan>)</font> <font color=Cyan>+</font> <font color=Magenta>1</font>-</pre>--<h2>Download</h2>-<p>-<ul>-<li> Find it on <a href="http://hackage.haskell.org">Hackage</a>.-<li> Download a tarfile package from:-     <a href="ftp://ftp.cs.york.ac.uk/pub/haskell/contrib/">-     ftp://ftp.cs.york.ac.uk/pub/haskell/contrib/</a>-     <a href="http://www.cs.york.ac.uk/fp/darcs/hscolour/hscolour-1.15.tar.gz">-     http://www.cs.york.ac.uk/fp/darcs/hscolour/hscolour-1.15.tar.gz</a>-     <a href="http://www.cs.york.ac.uk/fp/darcs/hscolour/hscolour-1.15.zip">-     http://www.cs.york.ac.uk/fp/darcs/hscolour/hscolour-1.15.zip</a>-<li> Or use the <a href="http://darcs.net/">darcs</a> repository at<br>-       <tt>darcs get http://www.cs.york.ac.uk/fp/darcs/hscolour</tt>-<li> Sources and history are browsable on-line through-     <a href="http://www.cs.york.ac.uk/fp/darcs/">darcsweb</a>.-<li> An older Windows binary is available at-     <a href="ftp://ftp.cs.york.ac.uk/pub/haskell/contrib/hscolour-1.3-win.zip">-     ftp://ftp.cs.york.ac.uk/pub/haskell/contrib/hscolour-1.3-win.zip</a>-</ul>--<h2>Build</h2>-<p>-Just use one of the standard ways of building a Haskell program:-<ul>-<li><tt>cabal install hscolour</tt>-<li><tt>hmake HsColour</tt>-<li><tt>ghc --make HsColour</tt>-<li><tt>runhugs HsColour</tt>-<li><tt>runhaskell Setup.hs configure/build/install</tt>-</ul>--<h2>Use</h2>-<p>-<ul>-<li><pre>-HsColour [ -help | -version | -print-css ]-         [ -oOUTPUT ]-         [ -tty | -html | -css | -icss | -latex | -mirc ]-         [ -lit | -lit-tex | -nolit ]-         [ -anchor | -noanchor | -partial | -nopartial ]-         [file.hs]*</pre>-</li></ul>-<p>-You can colourise a Haskell source file for either ANSI terminal codes-(option <tt>-tty</tt>), or HTML 3.2 with font tags (option-<tt>-html</tt>), or HTML 4.01 output with CSS (option <tt>-css</tt>), or-for XHTML 1.0 with inline CSS styling (option <tt>-icss</tt>), or for-LaTeX (option <tt>-latex</tt>), or for IRC (option <tt>-mirc</tt>).  The-default is for terminal output.-<p>-If no file argument is given, it reads standard input.  Output is-written to file OUTPUT (option -o), defaulting to stdout.  Multiple input-files will be concatenated to the same output.-<p>-HsColour can add named anchors in HTML (option <tt>-anchor</tt>) to-top-level definitions in the source file (functions, datatypes,-classes).  This enables you to make links to a specific location in the-generated file with the standard <tt>file.html#anchor</tt> notation-(e.g. from <a href="http://haskell.org/haddock">haddock</a>-generated-library documentation).  <a href="#haddock">See below for details.</a>-<p>-If an input file is literate, that is, it has a suffix ".lhs" or ".ly"-or ".lx", then only the code fragments will be colourised, leaving the-commentary untouched.  You can explicitly override this-filename-guessing of literate status: use the <tt>-lit</tt> option to-force literate colouring, or <tt>-nolit</tt> to force all text to be-colourised.  (<tt>-lit-tex</tt> is an obsolete synonym for <tt>-lit</tt>)-<p>-For more advanced usage, if you are building documents in parts, and-you want to embed several individual colourised fragments into a-larger document, use the <tt>-partial</tt> option with each-fragment, to omit the HTML DOCTYPE header, CSS stylesheet link, or LaTeX-prologue.---<h2>Configuration of colours</h2>-<p>-If you use any output-format choice except <tt>-css</tt>, you can configure the-colours for different lexical entities by editing a configuration file-called <tt>.hscolour</tt> in the current directory.-(An <a href=".hscolour">example</a> is included in the distribution.)-For (non-inline) CSS output, it is sufficient to edit the-<a href="hscolour.css"><tt>hscolour.css</tt></a> file, also in the-distribution.  (An alternative choice is supplied as-<a href="emacs.css"><tt>emacs.css</tt></a>.) The <tt>-print-css</tt> option-prints out the default CSS definitions, in case you lose the .css file.--<p>-The <tt>.hscolour</tt> file format is a simple Haskell value of type-ColourPrefs, constructed using named fields, as follows:--<pre>  <u><font color=Green>data</font></u> ColourPrefs <font color=Red>=</font> ColourPrefs-    <font color=Cyan>{</font> keyword<font color=Cyan>,</font> keyglyph<font color=Cyan>,</font> layout<font color=Cyan>,</font> comment-    <font color=Cyan>,</font> conid<font color=Cyan>,</font> varid<font color=Cyan>,</font> conop<font color=Cyan>,</font> varop-    <font color=Cyan>,</font> string<font color=Cyan>,</font> char<font color=Cyan>,</font> number <font color=Cyan>,</font> cpp-    <font color=Cyan>,</font> selection<font color=Cyan>,</font> variantselection-    <font color=Cyan>,</font> definition <font color=Red>::</font> <font color=Red>[</font>Highlight<font color=Red>]</font>-    <font color=Cyan>}</font>--  <u><font color=Green>data</font></u> Colour <font color=Red>=</font> Black <font color=Red>|</font> Red <font color=Red>|</font> Green <font color=Red>|</font> Yellow <font color=Red>|</font> Blue <font color=Red>|</font> Magenta <font color=Red>|</font> Cyan <font color=Red>|</font> White--  <u><font color=Green>data</font></u> Highlight <font color=Red>=</font>-      Normal-    <font color=Red>|</font> Bold-    <font color=Red>|</font> Dim-    <font color=Red>|</font> Underscore-    <font color=Red>|</font> Blink-    <font color=Red>|</font> ReverseVideo-    <font color=Red>|</font> Concealed-    <font color=Red>|</font> Foreground Colour-    <font color=Red>|</font> Background Colour-    <font color=Red>|</font> Italic-</pre>--<p>-<h2>Use it as a library</h2>-If you want to incorporate hscolour-like functionality into your own-Haskell program, it is now (from 1.4) also available as a library,-thanks to Bj&ouml;rn Bringert.  The library is Cabal-ised, so just do-the usual thing to install it as a package:-<ul>-<li><tt>runhaskell Setup.hs configure</tt>-<li><tt>runhaskell Setup.hs build</tt>-<li><tt>runhaskell Setup.hs install</tt>-</ul>-There is-<a href="docs/hscolour/index.html">haddock documentation of the API</a>.--<p>-<a name="haddock"></a>-<h2>Using HsColour with Haddock</h2>-Let's say you want to generate some pretty-coloured HTML versions of-your source files, at the same time as you are generating library-documentation using <a href="http://haskell.org/haddock">Haddock</a>.-Haddock (0.8 onwards) has options to link the API docs to the source-code itself.  Here is a quick summary of the shell commands to use:-<pre>-for file in $(SRCS)-do HsColour -html -anchor $file &gt;docs/`dirname $file`/`basename $file .hs`.html-done-haddock --html --title="My Library" --odir=docs   $(SRCS) \-    --source-module="src/%{MODULE/.//}.html" \-    --source-entity="src/%{MODULE/.//}.html#%{NAME}"-</pre>--<p>-<h2>Copyright and licence</h2>-<b>hscolour</b> is &copy; Malcolm Wallace 2003-2009.  It is distributed-under the Gnu GPL, which can be found in the file-<a href="LICENCE-GPL">LICENCE-GPL</a>.--<h2>Shortcomings</h2>-<p>-HsColour is not yet able to add anchors to class methods, nor to-<em>foreign</em> decls.--<h2>Alternatives</h2>-<p>-The <a href="http://www.cse.ogi.edu/~hallgren/Programatica/tools/pfe.cgi">-Programatica</a> project has a more sophisticated HTML-syntax-highlighter.  It hyperlinks every usage of an identifier to its-definition, which is highly useful for browsing large amounts of code.-However, it is a more heavyweight solution as well - requiring the-entire front-end of a compiler not only to parse the Haskell code, but-to chase all its module dependencies as well.  As a consequence, you need-source access to every definition used in your program, including the-Prelude and all library packages...--<h2>History</h2>-<p>-<dl>-<dt>1.15</dt><dd> makes -nopartial the default for literate files</dd>-<dt>1.14</dt><dd> merges the -lit and -lit-tex options, adds -lit guessing,-                  and permits multiple input files</dd>-<dt>1.13</dt><dd> added the new -icss output format, and italic highlights</dd>-<dt>1.12</dt><dd> changed the CSS class names to avoid clashes with other-                  web tools</dd>-<dt>1.11</dt><dd> new literate input option -lit-tex</dd>-<dt>1.10.1</dt><dd> reports the correct version with the --version flag</dd>-<dt>1.10</dt><dd> the title of HTML output is now the filename</dd>-<dt>1.9</dt><dd> added the -mirc and -lit options, and -print-css</dd>-<dt>1.8</dt><dd> added highlights for cpp lines-                 <br>tuple constructors now treated as ConIds-                 <br>checked for absence of pattern-match failure by Catch</dd>-<dt>1.7</dt><dd> renamed -anchorHTML -anchorCSS options to -anchor,-                 added -partial option</dd>-<dt>1.6</dt><dd> added -latex output mode</dd>-<dt>1.5</dt><dd> move generated HTML anchors to before comments/typesigs</dd>-<dt>1.4</dt><dd> made available as a Cabal-ised library</dd>-<dt>1.3</dt><dd> added HTML and CSS anchors</dd>-<dt>1.2</dt><dd> added CSS output mode (from Neil Mitchell)</dd>-<dt>1.1</dt><dd> fixed compatibility with ghc-6.4</dd>-<dt>1.0</dt><dd> first release</dd>-</dl>--<p>-This page last modified: 24th August 2009<br>-Malcolm Wallace<br>--</td></tr></table>-</body></html>-