shakespeare-js 1.0.0.5 → 1.0.0.6
raw patch · 3 files changed
+9/−5 lines, 3 filesdep ~hspecdep ~shakespearePVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: hspec, shakespeare
API changes (from Hackage documentation)
- Text.Julius: js, julius :: QuasiQuoter
- Text.Julius: jsFile, juliusFile :: FilePath -> Q Exp
- Text.Julius: jsFileDebug, juliusFileDebug :: FilePath -> Q Exp
- Text.Julius: jsFileReload, juliusFileReload :: FilePath -> Q Exp
+ Text.Julius: js :: QuasiQuoter
+ Text.Julius: jsFile :: FilePath -> Q Exp
+ Text.Julius: jsFileDebug :: FilePath -> Q Exp
+ Text.Julius: jsFileReload :: FilePath -> Q Exp
+ Text.Julius: julius :: QuasiQuoter
+ Text.Julius: juliusFile :: FilePath -> Q Exp
+ Text.Julius: juliusFileDebug :: FilePath -> Q Exp
+ Text.Julius: juliusFileReload :: FilePath -> Q Exp
Files
- Text/Julius.hs +5/−0
- shakespeare-js.cabal +3/−3
- test/ShakespeareJsTest.hs +1/−2
Text/Julius.hs view
@@ -69,6 +69,9 @@ -- | Return type of template-reading functions. type JavascriptUrl url = (url -> [(TS.Text, TS.Text)] -> TS.Text) -> Javascript +asJavascriptUrl :: JavascriptUrl url -> JavascriptUrl url+asJavascriptUrl = id+ -- | A typeclass for types that can be interpolated in CoffeeScript templates. class ToJavascript a where toJavascript :: a -> Builder@@ -81,9 +84,11 @@ toJExp <- [|toJavascript|] wrapExp <- [|Javascript|] unWrapExp <- [|unJavascript|]+ asJavascriptUrl' <- [|asJavascriptUrl|] return $ defaultShakespeareSettings { toBuilder = toJExp , wrap = wrapExp , unwrap = unWrapExp+ , modifyFinalValue = Just asJavascriptUrl' } js, julius :: QuasiQuoter
shakespeare-js.cabal view
@@ -1,5 +1,5 @@ name: shakespeare-js-version: 1.0.0.5+version: 1.0.0.6 license: MIT license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>@@ -29,7 +29,7 @@ library build-depends: base >= 4 && < 5- , shakespeare >= 1.0.0.3 && < 1.1+ , shakespeare >= 1.0.1.4 && < 1.1 , template-haskell , text >= 0.7 && < 0.12 @@ -66,7 +66,7 @@ , shakespeare , base >= 4 && < 5 , HUnit- , hspec >= 0.8 && < 1.3+ , hspec >= 1.3 , text >= 0.7 && < 0.12 , template-haskell
test/ShakespeareJsTest.hs view
@@ -4,8 +4,7 @@ module ShakespeareJsTest (specs) where import Test.HUnit hiding (Test) -import Test.Hspec.Monadic -import Test.Hspec.HUnit () +import Test.Hspec import Prelude hiding (reverse) #ifdef TEST_COFFEE