patch applied (cabal): Add Text instance for Extension and add
UnknownExtension constructor
Duncan Coutts
duncan.coutts at worc.ox.ac.uk
Mon Mar 24 22:35:59 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/cabal/_darcs/patches/20080324150027-adfee-255bb35dd4f1524236e272689d21456951420f74.gz
More information about the cabal-devel
mailing list