
New patches:

[fix System.CPUTime.
David Roundy <roundyd@physics.oregonstate.edu>**20090904112020
 Ignore-this: f6cdfeacfbd2a07964d796e9846afb2c11b642a0
] move ./lib/base/System/CPUTime.hs ./lib/base/System/CPUTime.hsc
hunk ./lib/base/System/CPUTime.hsc 1
+{-# LANGUAGE ForeignFunctionInterface #-}
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  System.CPUTime
hunk ./lib/base/System/CPUTime.hsc 21
     cpuTimePrecision
     ) where
 
+-- import Foreign.C.Types ( CClock )
+import Data.Int
 
hunk ./lib/base/System/CPUTime.hsc 24
+#include <time.h>
+
 -- |Computation 'getCPUTime' returns the number of picoseconds CPU time
 -- used by the current program.  The precision of this result is
 -- implementation-dependent.
hunk ./lib/base/System/CPUTime.hsc 30
 getCPUTime :: IO Integer
-getCPUTime = error "getCPUTime"
 
hunk ./lib/base/System/CPUTime.hsc 31
+foreign import ccall "sys/time.h clock" clock :: IO (#type clock_t)
+
+getCPUTime = do x <- fromIntegral `fmap` clock
+                return (x*cpuTimePrecision `div` 1000000000000)
+
 -- |The 'cpuTimePrecision' constant is the smallest measurable difference
 -- in CPU time that the implementation can record, and is given as an
 -- integral number of picoseconds.
hunk ./lib/base/System/CPUTime.hsc 40
 cpuTimePrecision :: Integer
-cpuTimePrecision = error "cpuTimePrecision"
+cpuTimePrecision = (#const CLOCKS_PER_SEC)
 

Context:

[fix bug when 'do' expressions used with infix expressions, add test case to regression
John Meacham <john@repetae.net>**20090901180831
 Ignore-this: 3feaf0ddff33116c54017f18d8fb372a
] 
[TAG 0.7.2
John Meacham <john@repetae.net>**20090901063747
 Ignore-this: 15bfbae8da4d333a8d2777e7e49144a0
] 
[fix bug where Grin.DeadCode would sometimes rename some variables non-uniquely
John Meacham <john@repetae.net>**20090901052849
 Ignore-this: 9ad87b77ba99445b2f75f69eb30f0732
] 
[add regression test cases for known bugs
John Meacham <john@repetae.net>**20090901045045
 Ignore-this: 96bd5ff4d22356b4583fd1a4223c1418
] 
[fix grammatical error in warning message.
David Roundy <roundyd@physics.oregonstate.edu>**20090902192312
 Ignore-this: ff2af3d11325d300c217ac7776b82097bbb2c3a9
] 
[include $PREFIX/{share,lib}/{jhc,jhc-$SHORTVERSION} in search path.
David Roundy <roundyd@physics.oregonstate.edu>**20090902162853
 Ignore-this: 640fb797a3d27327bd6cb9f4333b5793cf974529
 I find it a little annoying that the default search path doesn't
 include the location where I installed jhc, except the
 ../share/jhc-0.7 directory, which I'd rather not put stuff in, so I
 can easily delete all non-standard packages.
 
 I also took the liberty of reordering the default search path, so that
 all the ~/* entries would be before all the /usr/local/* entries, etc.
] 
[give nicer error message on jhc --show-ho foo
David Roundy <roundyd@physics.oregonstate.edu>**20090902162143
 Ignore-this: 187d8cf167aa67786882e458400edc2b20c4a6db
] 
[make type of System.Info.compilerVersion match that of ghc.
David Roundy <droundy@darcs.net>**20090902124418
 Ignore-this: cc1d7ba17598da69f8dc7d2d96c3d266811413c0
] 
[fix bug where constant partial applications would not propegate constraints properly
John Meacham <john@repetae.net>**20090901013613
 Ignore-this: 4cde75f8f788fc2d93b620295d0fb408
] 
[cleanups for node analysis
John Meacham <john@repetae.net>**20090831121514
 Ignore-this: daaa017d8225a9d0766709b693d6e3eb
] 
[fix bug in UnionSolve that caused it to not always propegate changes caused by lte constraints properly
John Meacham <john@repetae.net>**20090831121300
 Ignore-this: 6d1117b7936f9ec08c8b62f6f06f7ced
] 
[perform apply analysis to transform applications into direct calls to functions
John Meacham <john@repetae.net>**20090831100751
 Ignore-this: efe4cd7697c221278dea78be2d060190
] 
[add -fdebug to regression tests
John Meacham <john@repetae.net>**20090830000929
 Ignore-this: 66edd860d537cc3e9a919aaab29f055f
] 
[add ability to modify arguments of suspsended functions to the node analyzer.
John Meacham <john@repetae.net>**20090828142943
 Ignore-this: 51382fa482ae2eef4a8de79743e4f5b9
] 
[add unboxing of demotions
John Meacham <john@repetae.net>**20090828111751
 Ignore-this: fecc8c1427928f7de253bebe33eef69f
] 
[redo node analysis to rewrite function return values as well
John Meacham <john@repetae.net>**20090828094736
 Ignore-this: 67690217ba7b723ce0a8be60bbb09304
] 
[after node analysis, modify function bodies.
John Meacham <john@repetae.net>**20090828074755
 Ignore-this: d4b0f23de082233ed4a2665eb743094b
] 
[remove old 'Store' grin operation in favor of the StoreNode and Demote basic ops
John Meacham <john@repetae.net>**20090828041712
 Ignore-this: d690c14ab68a233d4ab6a49920ce2541
] 
[fix issue in return unboxing optimization that would sometimes re-create constants on the heap
John Meacham <john@repetae.net>**20090828010825
 Ignore-this: ca2a43e120adcef3c783cf2ac7df3295
] 
[add new grin optimizatons, case merging and getting rid of superfluous returns
John Meacham <john@repetae.net>**20090827104336
 Ignore-this: f51022870646e7c56169f177937f49d0
] 
[perform case return unboxing when on the simplifiers upwards pass to have it converge in fewer iterations
John Meacham <john@repetae.net>**20090827085626
 Ignore-this: ead3bf0430a8d4d709885029fa6828a1
] 
[remove old quadratic grin simplifier in favor of newer linear(ish) one. re-enable several grin optimizations.
John Meacham <john@repetae.net>**20090826041902
 Ignore-this: b106fc06ef776302de0858f317453b0
] 
[fix bug in UnionSolve that flipped meet and join for the toppable type
John Meacham <john@repetae.net>**20090829230429
 Ignore-this: e0c3477ebc54fa2033d06f379b9062bb
] 
[make some minor changes to typechecking code based on profiler output
John Meacham <john@repetae.net>**20090828142917
 Ignore-this: 9c29e48ce4ddce51da3ebff825c90280
] 
[fix export-import test on 64 bit systems
John Meacham <john@repetae.net>**20090828122604
 Ignore-this: 9a06a7310635fa6bc0ac98d24d2001cd
] 
[some clean ups
John Meacham <john@repetae.net>**20090828074237
 Ignore-this: 4c7fb282cc9cf43977d212a4ec872c6e
] 
[minor library optimization to Numeric.roundTo
John Meacham <john@repetae.net>**20090827104254
 Ignore-this: a8ddb9ddd8d55f7ebfcaae50b4d8b871
] 
[make pretty printing of grin a bit prettier
John Meacham <john@repetae.net>**20090827093458
 Ignore-this: 5172a7612768bd9972531f846bd35af4
] 
[update bugs
John Meacham <john@repetae.net>**20090829230256
 Ignore-this: 49fa7b07431dad76f43fb0877081e12e
] 
[show output of --list-libraries in YAML format.
John Meacham <john@repetae.net>**20090826022745
 Ignore-this: c752ccdde9a382715dce04664bdfe076
] 
[fix typo in manual, gcc should be cc
John Meacham <john@repetae.net>**20090825053425
 Ignore-this: 21e74c9892afe995bf7c240f1bea60b4
] 
[add --annotate-source option to spit out annotated, preprocessed source code for use by other tools
John Meacham <john@repetae.net>**20090825030331
 Ignore-this: ca1455f77508744f6f0d90c01c6113dc
] 
[clean up SourceCode data type
John Meacham <john@repetae.net>**20090825012723
 Ignore-this: 368d9f1973cabacf01d0b9d4f01b11d0
] 
[bump version number
John Meacham <john@repetae.net>**20090825010311
 Ignore-this: ad2fb7b94f9544ed2a47d8c9b9cde19f
] 
[introduce System.Exit and System.Cmd in base.
David Roundy <droundy@darcs.net>**20090831150645
 Ignore-this: 0b2496708bc3741a0500d796cb144939cc868578
] 
[TAG 0.7.1
John Meacham <john@repetae.net>**20090823012212
 Ignore-this: 769be545980024022f0e9acf81dbdcc2
] 
Patch bundle hash:
5e640f871e54771aee983fabbdc964d1b519f5be
