blunt 0.0.7 → 0.0.8
raw patch · 4 files changed
+91/−4 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Blunt: css :: String
Files
- CHANGELOG.md +4/−0
- README.md +21/−3
- blunt.cabal +1/−1
- library/Blunt.hs +65/−0
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Change log +## v0.0.8 (2015-03-20)++- Created a simple stylesheet.+ ## v0.0.7 (2015-03-19) - Fixed link in Hackage documentation.
README.md view
@@ -19,6 +19,11 @@ <hr> +Blunt is a web front end to the [pointfree][] library. While you can install+and run it locally, there's no real reason to prefer it over the `pointfree`+executable. Instead, use the hosted version on Heroku:+<https://evening-thicket-5270.herokuapp.com>.+ ## Install ``` sh@@ -26,6 +31,15 @@ $ cabal install 'blunt ==0.0.*' ``` +## Use++``` sh+$ blunt+# http://localhost:8080+$ env PORT=8888 blunt+# http://localhost:8888+```+ ## Develop ``` sh@@ -41,10 +55,14 @@ ``` sh $ heroku create $ git checkout -b deploy+$ echo '{}' > package.json $ echo 'web: ./blunt' > Procfile $ cp dist/build/blunt/blunt .-$ touch requirements.txt-$ git add Procfile blunt requirements.txt-$ git commit -m v0.0.7+$ git add package.json Procfile blunt+$ git commit --allow-empty-message $ git push heroku deploy:master+$ git checkout master+$ git branch -D deploy ```++[pointfree]: http://hackage.haskell.org/package/pointfree
blunt.cabal view
@@ -1,5 +1,5 @@ name: blunt-version: 0.0.7+version: 0.0.8 cabal-version: >=1.10 build-type: Simple license: MIT
library/Blunt.hs view
@@ -65,6 +65,10 @@ , " <meta name='viewport' content='initial-scale = 1, width = device-width'>" , "" , " <title>Blunt</title>"+ , ""+ , " <style>"+ , css+ , " </style>" , " </head>" , "" , " <body>"@@ -82,11 +86,72 @@ , " </dd>" , " </dl>" , ""+ , " <p>"+ , " <a href='https://github.com/tfausak/blunt'>"+ , " https://github.com/tfausak/blunt"+ , " </a>"+ , " </p>"+ , "" , " <script>" , js , " </script>" , " </body>" , "</html>"+ ]++css :: String+css = unlines+ [ "html, body {"+ , " background: #f5f5f5;"+ , " color: #151515;"+ , " font: 100%/1.5em sans-serif;"+ , " margin: 0;"+ , " padding: 0;"+ , "}"+ , ""+ , "body {"+ , " box-sizing: border-box;"+ , " margin: 0 auto;"+ , " max-width: 40em;"+ , " padding: 0 1.5em;"+ , "}"+ , ""+ , "h1 {"+ , " color: #90a959;"+ , " font-size: 2em;"+ , " font-weight: bold;"+ , " line-height: 3em;"+ , " margin: 0;"+ , " text-align: center;"+ , "}"+ , ""+ , "dl {"+ , " margin: 0;"+ , "}"+ , ""+ , "dt {"+ , " margin-top: 1.5em;"+ , "}"+ , ""+ , "dd {"+ , " margin: 0;"+ , "}"+ , ""+ , "input {"+ , " border: thin solid #e0e0e0;"+ , " box-sizing: border-box;"+ , " font-family: monospace;"+ , " font-size: 1em;"+ , " height: 3em;"+ , " line-height: 3em;"+ , " padding: 0 0.75em;"+ , " width: 100%;"+ , "}"+ , ""+ , "p {"+ , " margin: 1.5em 0 0 0;"+ , " text-align: center;"+ , "}" ] js :: String