packages feed

hakyll-dhall 0.2.0.0 → 0.2.1.0

raw patch · 4 files changed

+28/−9 lines, 4 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Hakyll.Web.Dhall: parseDhall :: Type a -> Maybe FilePath -> Text -> Compiler (Item a)
+ Hakyll.Web.Dhall: parseDhall :: Maybe FilePath -> Type a -> Text -> Compiler (Item a)
- Hakyll.Web.Dhall: parseDhallWith :: DhallCompilerOptions X -> Type a -> Maybe FilePath -> Text -> Compiler (Item a)
+ Hakyll.Web.Dhall: parseDhallWith :: DhallCompilerOptions X -> Maybe FilePath -> Type a -> Text -> Compiler (Item a)

Files

CHANGELOG.md view
@@ -1,6 +1,15 @@ Changelog ========= +Version 0.2.1.0+---------------++*October 8, 2018*++<https://github.com/mstksg/backprop/releases/tag/v0.2.1.0>++*   Swap argument order for `parseDhall` and `parseDhallWith`.+ Version 0.2.0.0 --------------- 
app/test-app.hs view
@@ -12,4 +12,7 @@      create ["testparse.txt"] $ do       route idRoute-      compile $ parseDhall (auto :: Type String) Nothing "./test-dhall/parse-test.dhall"+      compile $ parseDhall+                  Nothing+                  (auto :: Type String)+                  "./test-dhall/parse-test.dhall"
hakyll-dhall.cabal view
@@ -2,10 +2,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 09eb91e35254576dbe38981485e439fbef1d3cef1b8551e4bf7591c372261be9+-- hash: df8bda3372080377a2eb79e646242a152d9f6b9d8e12f7730c4dfe310f3e62b3  name:           hakyll-dhall-version:        0.2.0.0+version:        0.2.1.0 synopsis:       Dhall compiler for Hakyll description:    Please see the README on GitHub at <https://github.com/mstksg/hakyll-dhall#readme> category:       Web
src/Hakyll/Web/Dhall.hs view
@@ -362,12 +362,19 @@ -- 'loadDhall' 'auto' "config/my_config.dhall" -- @ --+-- Note that if the @a@ is not inferrable by type inference (like in the+-- situation above), you can specify the @a@ using type application syntax+-- (like above).+-- -- Note that this is mostly useful for routes that match many different -- files which will be interpreted as values of different types, or for -- caching a single expression that you might want to interpret as--- different types later.+-- different types later.  If you want to parse and immediately interpret,+-- see 'dhallCompiler'. ----- If you want to parse and immediately interpret, see 'dhallCompiler'.+-- Note also that this isn't really meant to be a "final end-point", but if+-- it is used as such, a pretty-printed version will be rendered to the+-- output directory, based on the 'Writable' instance of 'DExpr'. dExprCompiler :: DefaultDhallResolver a => Compiler (Item (DExpr a)) dExprCompiler = dExprCompilerWith defaultDhallCompilerOptions @@ -439,8 +446,8 @@ -- -- To directly obtain a Dhall expression, see 'parseDhallExpr'. parseDhall-    :: Type a-    -> Maybe FilePath                   -- ^ Override directory root+    :: Maybe FilePath                   -- ^ Override directory root+    -> Type a     -> T.Text     -> Compiler (Item a) parseDhall = parseDhallWith defaultDhallCompilerOptions@@ -448,11 +455,11 @@ -- | Version of 'parseDhall' taking custom 'DhallCompilerOptions'. parseDhallWith     :: DhallCompilerOptions X-    -> Type a     -> Maybe FilePath                   -- ^ Override directory root+    -> Type a     -> T.Text     -> Compiler (Item a)-parseDhallWith dco t fp b = do+parseDhallWith dco fp t b = do     e <- parseDhallExprWith dco fp b     makeItem =<< interpretDhallCompiler t e