Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspervdj committed Aug 9, 2010
1 parent cfe764a commit e61eeee
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 882 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
bench-html:
benchmark:
ghc --make -O2 -fforce-recomp -main-is HtmlBenchmarks benchmarks/HtmlBenchmarks.hs
./benchmarks/HtmlBenchmarks --resamples 10000

Expand Down Expand Up @@ -35,6 +35,11 @@ bench-bigtable-non-haskell:
ruby benchmarks/bigtable/erubis.rb
php -n benchmarks/bigtable/php.php

# Generate the actual HTML combinators
combinators:
runghc Util/GenerateHtmlCombinators.hs

# Run the tests
test:
runghc -itests tests/TestSuite.hs

Expand Down
17 changes: 15 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,18 @@ designs are tried. For more information, refer to [the website][].

[the website]: http://jaspervdj.be/blaze

I keep a log of my actions in the `log/` directory, you can find more
information there.
How
---

We have a makefile to manage most tasks. First off, a part of the code is
generated automatically, so you should begin by running

make combinators

Run the tests using

make test

And the benchmarks using

make benchmark
4 changes: 2 additions & 2 deletions Util/GenerateHtmlCombinators.hs
Original file line number Diff line number Diff line change
Expand Up @@ -417,5 +417,5 @@ htmlVariants = M.fromList $ map (show &&& id)
, html5
]

generateHtmlCombinators :: IO ()
generateHtmlCombinators = mapM_ (writeHtmlVariant . snd) $ M.toList htmlVariants
main :: IO ()
main = mapM_ (writeHtmlVariant . snd) $ M.toList htmlVariants
Loading

0 comments on commit e61eeee

Please sign in to comment.