hcheat 2009.5.13 → 2009.6.25
raw patch · 9 files changed
+72/−77 lines, 9 filesdep ~basedep ~mpsPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, mps
API changes (from Hackage documentation)
Files
- Nemesis +26/−0
- Rakefile +0/−17
- changelog.markdown +0/−33
- changelog.md +40/−0
- hcheat.cabal +3/−3
- readme.markdown +0/−1
- readme.md +1/−0
- src/Web/HCheat.hs +2/−6
- tasks/haskell.rake +0/−17
+ Nemesis view
@@ -0,0 +1,26 @@+nemesis = do+ + clean+ [ "**/*.hi"+ , "**/*.o"+ , "manifest"+ ]+ + desc "prepare cabal dist"+ task "dist" $ do+ sh "cabal clean"+ sh "cabal configure"+ sh "cabal sdist"++ desc "start console"+ task "i" (sh "ghci -isrc src/Web/HCheat.hs")+ + task "b" $ do+ sh "cabal clean"+ sh "cabal configure"+ sh "cabal build"++ + desc "put all .hs files in manifest"+ task "manifest" $ do+ sh "find . | grep 'hs$' > manifest"
− Rakefile
@@ -1,17 +0,0 @@-require 'rake'-require 'rake/clean'--task :default => :stats--Dir['tasks/**/*.rake'].each { |rake| load rake }--CLEAN.include %w[- **/*.o- **/*.hi- manifest-]--desc "console"-task :console do- sh 'cd src; ghci HCheat.hs'-end
− changelog.markdown
@@ -1,33 +0,0 @@-2009.5.13------------### Feature--* use here doc for simplicity--2009.4.20------------### Feature--* Add rzg ( lorem like text in Chinese, a poet from ancient China )---2008.11.25--------------### Update analytics code--2008.11.14-------------### Feature--* lorem--2008.11.6------------### Feature--* analytics
+ changelog.md view
@@ -0,0 +1,40 @@+2009.6.25+---------++### Feature++* Only use MPS.TH++2009.5.13+---------++### Feature++* use here doc for simplicity++2009.4.20+---------++### Feature++* Add rzg ( lorem like text in Chinese, a poet from ancient China )+++2008.11.25+-----------++### Update analytics code++2008.11.14+----------++### Feature++* lorem++2008.11.6+---------++### Feature++* analytics
hcheat.cabal view
@@ -1,5 +1,5 @@ Name: hcheat-Version: 2009.5.13+Version: 2009.6.25 Build-type: Simple Synopsis: A collection of code cheatsheet Description: Starting with Google Analytics@@ -11,11 +11,11 @@ Cabal-version: >= 1.2 category: Web homepage: http://github.com/nfjinjing/hcheat/-data-files: readme.markdown, changelog.markdown, Rakefile, tasks/haskell.rake+data-files: readme.md, changelog.md, Nemesis library ghc-options: -Wall -fno-warn-missing-signatures -fno-warn-name-shadowing -fno-warn-orphans -fno-warn-type-defaults- build-depends: base, mps >= 2009.5.13+ build-depends: base >= 4 && < 5, mps >= 2009.6.25 hs-source-dirs: src/ exposed-modules: Web.HCheat
− readme.markdown
@@ -1,1 +0,0 @@-A collection of web snippets
+ readme.md view
@@ -0,0 +1,1 @@+A collection of web snippets
src/Web/HCheat.hs view
@@ -3,11 +3,10 @@ module Web.HCheat where import Prelude hiding ((.))-import MPS+import MPS.TH -- google analytics analytics x = [$here|- <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));@@ -19,14 +18,11 @@ pageTracker._trackPageview(); } catch(err) {} </script>- |] lorem = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." rzg = [$here|- 夜来风雨损余芳。数片衰红落槛傍。媚景背人容易去,半轩飞絮日空长。 从来不信相思切,及至如今倍感伤。独立黄昏绣帘外,可堪新月露圆光。--|].strip+|]
− tasks/haskell.rake
@@ -1,17 +0,0 @@-desc "manifest"-task :ma do- sh 'find . | grep "hs$" > manifest'-end--desc "build"-task :build do- sh 'cabal clean; cabal configure; cabal build'-end---desc "dist"-task :dist do- sh 'cabal clean'- sh 'cabal configure'- sh 'cabal sdist'-end