hakyll-elm 0.1 → 0.2
raw patch · 2 files changed
+16/−13 lines, 2 filesdep ~Elm
Dependency ranges changed: Elm
Files
- Hakyll/Web/Elm.hs +8/−5
- hakyll-elm.cabal +8/−8
Hakyll/Web/Elm.hs view
@@ -8,12 +8,13 @@ import Control.Applicative ((<$>)) import Control.Monad.Error (throwError) -import qualified Language.Elm as Elm import Hakyll-import Text.Blaze (preEscapedToMarkup)-import Text.Blaze.Html5 ((!))+import Text.Blaze (preEscapedToMarkup)+import Text.Blaze.Html5 ((!)) import Text.Blaze.Html.Renderer.String (renderHtml)-import qualified Text.Blaze.Html5 as H++import qualified Elm.Internal.Utils as Elm+import qualified Text.Blaze.Html5 as H import qualified Text.Blaze.Html5.Attributes as Attr {-| Compiles an elm file to a div and inline Javascript.@@ -23,11 +24,13 @@ Works for files that only import from modules in the elm runtime. -} elmStandaloneCompiler :: Compiler (Item String)-elmStandaloneCompiler = do+elmStandaloneCompiler = cached cacheName $ do it <- getResourceBody case traverse compileModule it of Left err -> throwError [err] Right out -> return out++ where cacheName = "Hakyll.Web.Elm.elmStandaloneCompiler" compileModule :: String -> Either String String compileModule bod = html modul <$> js
hakyll-elm.cabal view
@@ -1,5 +1,5 @@ name: hakyll-elm-version: 0.1+version: 0.2 synopsis: Hakyll wrapper for the Elm compiler. description: A wrapper for compiling Elm (<http://elm-lang.org>) programs to@@ -28,17 +28,17 @@ type: git location: git://github.com/maxsnew/hakyll-elm.git branch: master- tag: 0.1.0+ tag: v0.2 library -- Modules exported by the library. exposed-modules: Hakyll.Web.Elm- build-depends: base >= 4.6 && < 4.7,- hakyll >= 4.0 && < 4.5,- Elm >= 0.9 && < 0.11,- mtl >= 1.0 && < 3.0,- blaze-html >= 0.4 && < 0.7,- blaze-markup >= 0.5 && < 0.6+ build-depends: base >= 4.6 && < 4.7,+ hakyll >= 4.0 && < 4.5,+ Elm >= 0.10.1 && < 0.11,+ mtl >= 1.0 && < 3.0,+ blaze-html >= 0.4 && < 0.7,+ blaze-markup >= 0.5 && < 0.6 -- Base language which the package is written in. default-language: Haskell2010 ghc-options: -Wall