patch applied (packages/Cabal): Add Text instance for Extension and add UnknownExtension constructor

Ian Lynagh igloo at earth.li
Sun May 11 07:23:09 EDT 2008


Mon Mar 24 08:00:27 PDT 2008  Duncan Coutts <duncan at haskell.org>
  * Add Text instance for Extension and add UnknownExtension constructor
  The parse function is ~15x faster than using reads by using a simple
  hash table :: Array Char [(String, Extension)]. The hash function is
  then just 'head' -- the first letter of the extension name.

    M ./Cabal.cabal -1 +2
    M ./Distribution/Simple/Compiler.hs -1 +1
    M ./Distribution/Simple/Configure.hs -1 +1
    M ./Language/Haskell/Extension.hs -3 +110

View patch online:
http://darcs.haskell.org/packages/Cabal/_darcs/patches/20080324150027-adfee-255bb35dd4f1524236e272689d21456951420f74.gz


More information about the Cvs-libraries mailing list