Changeset 11 for sizechecking/README.html
- Timestamp:
- Nov 15, 2012, 12:16:02 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sizechecking/README.html
r5 r11 9 9 <body> 10 10 <h2 id="prerequisites">Prerequisites</h2> 11 <p>You need at least version 2011.4.0.0 of haskell platform and the package value-supply. If you have haskell platform installed you can install value-supply by typing</p>11 <p>You need at least version 2011.4.0.0 of the Haskell platform, an installed <a href="http://research.microsoft.com/en-us/um/redmond/projects/z3/">Z3</a> and the package value-supply. If you have a working Haskell platform installed you can install value-supply by typing</p> 12 12 <pre><code>cabal install value-supply</code></pre> 13 13 <h2 id="source-files">Source files</h2> … … 27 27 </dl> 28 28 <h2 id="using-the-examples">Using the examples</h2> 29 <pre><code>$ ghci Examples.hs 29 <pre><code>$ ghci Examples.hs 30 30 GHCi, version 7.0.4: http://www.haskell.org/ghc/ :? for help 31 31 Loading package ghc-prim ... linking ... done. … … 38 38 [4 of 4] Compiling Main ( Examples.hs, interpreted ) 39 39 Ok, modules loaded: Lambda, SizedExp, Constraints, Main. 40 *Main> 41 <p>Type â<code>runTests</code>â to run all test cases or type â<code>prove map</code>âto prove the function named map.</p>40 *Main></code></pre> 41 <p>Type "<code>runTests</code>" to run all test cases or type "<code>prove map</code>" to prove the function named map.</p> 42 42 <h2 id="under-windows">Under Windows</h2> 43 43 <p>It is not perfect, and you will see a box after every special character, but at least it works.</p> … … 65 65 4 where body f l = match l (nil) 66 66 5 ( \x xs -> cons `app` (f `app` x) `app` (map `app` f `app` xs ))</code></pre> 67 <p>Here line 3 tells us map is a top-level binding, where the body of the function is defined in line 4 â5 and its size expression is in line 1. Unfortunately the size expression language has not yet been embedded, so it is a bit difficult to read. Type <code>smap</code> in the GHC console to get a pretty printed form.</p>67 <p>Here line 3 tells us map is a top-level binding, where the body of the function is defined in line 4--5 and its size expression is in line 1. Unfortunately the size expression language has not yet been embedded, so it is a bit difficult to read. Type <code>smap</code> in the GHC console to get a pretty printed form.</p> 68 68 <pre><code>*Main> smap 69 69 λf.Îs,g.List s (λi.f (g i))</code></pre>
Note: See TracChangeset
for help on using the changeset viewer.