Commit graph

820 commits

Author SHA1 Message Date
Vincent Ambo
64e47b7fa7 * documentation link to the examples 2012-05-30 22:24:33 +02:00
Evan Czaplicki
2abbbe5f0b Merge pull request #15 from tazjin/master
* new Shakespearean Elm templates
2012-05-30 13:06:44 -07:00
Vincent Ambo
58a6eb6a3f * ElmSource instance for strict text 2012-05-30 21:52:05 +02:00
Vincent Ambo
231bedd041 * updated documentation 2012-05-30 21:49:46 +02:00
Vincent Ambo
c6f9c1804c * updated elm-yesod example (URL interpolation) 2012-05-30 21:33:19 +02:00
Vincent Ambo
b64f12fdf4 * removed undefined instance 2012-05-30 21:22:13 +02:00
Vincent Ambo
51f137701d * specific imports 2012-05-30 21:20:48 +02:00
Vincent Ambo
3d4bbeb84c * updated elm-yesod for URL interpolation
- An instance for ElmSource (urlRenderFn, url -> Elm) has been added.
- elm-yesod's elmWidget function now supports URL interpolation, it
returns a widget in the GHandler monad and needs to be used
differently. The elm-yesod example has not yet been updated.
2012-05-30 21:17:58 +02:00
Vincent Ambo
aab25b8356 * moved ElmUrl to elm-yesod (it's different in Happstack web-routes) 2012-05-30 20:28:57 +02:00
Vincent Ambo
4dd5937996 * updated elm-happstack example 2012-05-30 20:05:08 +02:00
Vincent Ambo
c10efa0e2a * elm-yesod Example compiles (not yet using true URL interpolation) 2012-05-30 19:59:54 +02:00
Vincent Ambo
e0aa5c5885 * added Greg Weber's Shakespearean Elm templates
Language.Elm.Quasi now exports QuasiQuoters for Shakespearean Elm
templates which support variable and URL interpolation.

Several important types and type classes have been added in the process:

Elm :: Elm is a newtype wrapper around Data.Text.Lazy.Builder which
contains Elm source code

ElmUrl url :: ElmUrl is a type synonym for a function that renders Elm
with interpolated type-safe URLs.

ToElm a :: ToElm is a type class which contains variables that can be
interpolated in the Elm QuasiQuoters

ElmSource a :: ElmSource is a type class which contains all types
currently understood by the Elm compilation functions, toParts and
toHtml

--
elm-yesod has been updated to reflect the changes, but a Widget
instance for Elm is planned. This would allow embedding Elm by simply
using toWidgt [elm|...|]

The elm-yesod and elm-happstack are likely broken through these changes
(untested), as well as the elm-server. Those will later be updated
accordingly.
2012-05-30 19:47:41 +02:00
Evan Czaplicki
0c396096a2 Merge pull request #14 from tazjin/master
* added an elm-happstack example
2012-05-29 15:21:04 -07:00
Vincent Ambo
92f43c3763 * removed unnecessary file 2012-05-29 23:48:01 +02:00
Vincent Ambo
2a885bb564 * added elm-happstack example && changed text in elm-yesod example 2012-05-29 23:47:31 +02:00
Evan Czaplicki
8185420450 Merge pull request #13 from tazjin/master
* fixed elm-yesod and re-exported the elm QQers
2012-05-29 13:29:42 -07:00
Vincent Ambo
381fbf4c3f * removed redundant imports in elm-yesod example 2012-05-29 22:05:59 +02:00
Vincent Ambo
1cb6096fbc * updated the elm-yesod example 2012-05-29 21:48:43 +02:00
Vincent Ambo
f29b21d5b4 * fixed elm-yesod 2012-05-29 21:48:35 +02:00
evancz
12384b8cf8 Move elm-mini.js to root because it is needed by all projects. This should also fix a link in the README.md. 2012-05-29 14:48:30 -05:00
Vincent Ambo
ccc9bda258 * exporting QuasiQuoters again :-)
Some dependencies went missing, as well as the export of the
QuasiQuoter. Here they are again.

I have also added the GHC -Wall option to the cabal file because there
are still quite a few warnings (especially missing type signatures) in
the code.
2012-05-29 21:48:24 +02:00
evancz
85f84bca23 Managed to get Yesod.hs compiling. 2012-05-29 13:49:44 -05:00
evancz
a6cf0d2815 Expose fewer internal functions, making more information available only through toHtml :: String -> Html and toParts :: String -> (Html, String, String). Make the required changes to dependent files. Yesod.hs still needs one fix though. 2012-05-29 13:25:43 -05:00
Evan Czaplicki
1600aae698 Merge pull request #12 from tazjin/master
* updated elm QuasiQuoter
2012-05-28 21:28:29 -07:00
Vincent Ambo
6b2b4180ad * updated elm-yesod Example to use variable interpolation for URLs 2012-05-29 02:58:37 +02:00
Vincent Ambo
fd1b410ea4 * updated elm QuasiQuoter for variable interpolation
The elm QuasiQuoter now supports variable interpolation using the ^{..}
syntax. An updated elm-yesod example will follow soon.

Version bumped to 0.1.2 because this is a rather significant change,
thanks to mikeplus64 for the QuasiQuoter he wrote that I could have a
look at while writing ours.
2012-05-29 02:48:40 +02:00
Evan Czaplicki
df948a48df Merge pull request #11 from tazjin/master
* update elm-yesod example
2012-05-28 15:57:42 -07:00
Vincent Ambo
3bd18e19c7 * updated the elm-yesod example
Added a slightly more sophisticated elm-page to the elm-yesod example.
2012-05-29 00:39:25 +02:00
Evan Czaplicki
dce3842884 Merge pull request #10 from tazjin/master
* splitting up elm and elm-server, adding elm-yesod
2012-05-28 14:30:17 -07:00
Evan Czaplicki
096ff99f71 Merge pull request #9 from tazjin/51b2a2805af214b725d9beb0e2388ae9338435e1
* added a simple .gitignore file to ignore build residues
2012-05-28 13:48:06 -07:00
Vincent Ambo
aafc77e17a * added a link to the Elm documentation the Language.Elm documentation 2012-05-28 18:33:15 +02:00
Vincent Ambo
4fa6d8051f * documentation for Language.Elm.Yesod 2012-05-28 18:13:37 +02:00
Vincent Ambo
c08f7756c6 * documentation for Language.Elm 2012-05-28 18:02:02 +02:00
Vincent Ambo
97025a0970 * added .DS_Store files (Mac) to .gitignore 2012-05-28 17:26:07 +02:00
Vincent Ambo
bdb3a63d13 * added the elmFile QuasiQuoter for embedding .elm files
the elm-yesod example contains an example for how to use the elmFile QQ.

Note: No spaces before and after the filename!
2012-05-28 17:24:57 +02:00
Vincent Ambo
c6bd8bfeb4 * modified elm-yesod to work and updated the example 2012-05-28 17:09:27 +02:00
Vincent Ambo
08287fcea7 * modified elm-server
Elm-server now works with the "new" structure of Elm as well. The elm
package exports Language.Elm.generateHtml which is equivalent to the
compileToHtml function of the old Language.Elm package.

Since a dependency on blaze exists either way, a separate elm-blaze
package is not necessary.
2012-05-28 16:56:13 +02:00
Vincent Ambo
f2e8703a2b * restructuring, part #1
I am splitting the elm package up into several packages, elm itself
which exports the Language.Elm* modules and builds the compiler
executable, elm-server which contains the standalone, Happstack-based
Elm server and elm-yesod, which provides the generateWidget function
for using Elm together with Yesod.
2012-05-28 16:43:56 +02:00
Vincent Ambo
f7e985243a * elm + Yesod example 2012-05-28 16:08:40 +02:00
Vincent Ambo
cdef603d8c * Language.Elm.Yesod
This module provides a very simple [elm| |] quasiquoter and a
generateWidget function to use elm in combination with Yesod's widget
system.
2012-05-28 16:08:25 +02:00
Vincent Ambo
51b2a2805a * .gitignore file 2012-05-28 16:07:06 +02:00
evancz
c4c5e3e1a1 More version number updating
Hopefully this won't happen so much anymore.
2012-05-27 19:20:07 -05:00
Evan Czaplicki
8e684b9076 Update README.md 2012-05-27 17:54:09 -05:00
evancz
44b2e45380 Updates for version 0.1.1.6
Includes ExtractNoscript in the .cabal file and updates version numbers
as necessary.
2012-05-27 17:49:20 -05:00
evancz
89605b15aa Enable generation of noscript tags.
For better indexing (for Google! Bing is actually fine...)
2012-05-27 16:10:10 -05:00
evancz
4546c0b6e8 Minified elm-mini.js 2012-05-23 17:27:39 -04:00
evancz
ea05fbe3d9 Corrections for second release.
Had some install issues on different platforms, so fixed an ambiguity
with Control.Deepseq.force and removed some compilation flags.
2012-05-23 00:50:11 -04:00
evancz
8215dacbab Prepare for second release.
Add a Haskell library so that Elm code can be compiled directly in
Haskell. Clean up file names and fix up dependencies.
2012-05-22 23:45:19 -04:00
evancz
e33d3290e3 Introduce basic optimizations.
Reduces the size of string-heavy code dramatically! 70% decrease in the
size of the the elm-lang.org home page.
2012-05-22 18:07:21 -04:00
evancz
7875f20537 Add type hint for Input.stringDropDown 2012-05-21 17:33:04 -04:00