Commit graph

647 commits

Author SHA1 Message Date
evancz
8805c689f0 Total rewrite of the parser. Removes dependency on my custom parser combinators library, and as a result, produces much better error messages. Only partially complete right now. 2012-06-09 02:10:31 -05:00
Evan Czaplicki
47383497ca Update master 2012-06-08 05:02:54 -05:00
evancz
64c880c45b Bug fix / significant change in how updates are made. When a stateful signal was used in multiple places, it was updated multiple times. This change fixes that problem. 2012-06-08 00:54:22 -05:00
evancz
8c05cc18de Remove console.log test from fittedImage function. 2012-06-07 16:40:21 -05:00
evancz
af0d82a94b Fix spacing on a couple lines. 2012-06-07 16:35:16 -05:00
evancz
4c9c06e7e6 Add fittedImage :: Int -> Int -> String -> Element which displays an image fitted to a particular set of dimensions. If the desired aspect ratio is different than the original, the image will be cropped and centered as necessary to fill the desired dimensions. 2012-06-07 16:34:48 -05:00
evancz
524b30bf58 Remove -Wall for now. Best to turn on for development, not so nice for end users. 2012-06-02 16:02:32 -05:00
Evan Czaplicki
c284e4fcd4 Merge pull request #20 from tazjin/master
* small documentation formatting fix
2012-06-02 14:01:37 -07:00
Vincent Ambo
696f8a9b02 * small documentation formatting fix 2012-06-02 23:00:24 +02:00
evancz
5dada7dfe0 Bump version number. 2012-06-02 15:53:43 -05:00
evancz
fa502cd620 Merge branch 'master' of https://github.com/evancz/Elm 2012-06-02 15:45:45 -05:00
evancz
b4d56e01f4 Fix compilation error. JS was being run through the Elm compiler. 2012-06-02 15:45:13 -05:00
Evan Czaplicki
ab43b1d2cc Merge pull request #19 from tazjin/master
* fixed script position constraints
2012-06-02 13:25:20 -07:00
Vincent Ambo
09ac4efb59 * fix for script position
Added a second (private) function widgetBody which does not insert the
Dispatcher.initialize(); function.

This is a necessary change to allow the generated Javascript code to
reside in the body tag instead of the head tag.
2012-06-02 21:56:15 +02:00
Evan Czaplicki
2cfa28917a Update README.md 2012-05-31 16:49:22 -05:00
Evan Czaplicki
e7734868d5 Update README.md 2012-05-31 16:39:48 -05:00
Evan Czaplicki
961e7151f9 Update README.md 2012-05-31 13:20:50 -05:00
Evan Czaplicki
8a7136abce Add information on Elm + Haskell. 2012-05-31 13:18:14 -05:00
Vincent Ambo
38b4894045 * updated elm-yesod example for elm-yesod 0.1.2 2012-05-31 14:17:37 +02:00
evancz
2267cd20d7 Get rid of warnings and update the version numbers in Compiler.hs and Server.hs. Get .cabal up to date for both packages. 2012-05-30 17:01:54 -05:00
Evan Czaplicki
b400d8b510 Merge pull request #18 from tazjin/master
* moving elm-yesod to it's own repository
2012-05-30 13:58:59 -07:00
Vincent Ambo
43a4597d99 * moving elm-yesod into its own repository ( tazjin/elm-yesod) 2012-05-30 22:54:52 +02:00
evancz
29dfd5ace7 Merge branch 'master' of https://github.com/evancz/Elm 2012-05-30 15:53:47 -05:00
evancz
e68982f50a Add a note about Elm's online examples in the docs. 2012-05-30 15:53:08 -05:00
Evan Czaplicki
0275d1756b Merge pull request #17 from tazjin/master
* tying elm-yesod to elm 0.1.2
2012-05-30 13:50:06 -07:00
Vincent Ambo
f2b2744ec7 * tying elm-yesod to elm 0.1.2 2012-05-30 22:47:54 +02:00
Evan Czaplicki
a333f7ece9 Merge pull request #16 from tazjin/master
* added a link to the Examples in the Language.Elm Haddocks
2012-05-30 13:25:56 -07:00
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