packages feed

Shpadoinkle-backend-static 0.0.0.1 → 0.1.0.0

raw patch · 3 files changed

+11/−6 lines, 3 filesdep ~Shpadoinkledep ~basePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: Shpadoinkle, base

API changes (from Hackage documentation)

Files

README.md view
@@ -1,7 +1,8 @@ # Shpadoinkle Backend Static --[![Goldwater](https://gitlab.com/fresheyeball/Shpadoinkle/badges/master/pipeline.svg)](https://gitlab.com/fresheyeball/Shpadoinkle-backend-static)+[![Goldwater](https://gitlab.com/fresheyeball/Shpadoinkle/badges/master/pipeline.svg)](https://gitlab.com/fresheyeball/Shpadoinkle)+[![BSD-3](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)+[![built with nix](https://img.shields.io/badge/built%20with-nix-41439a)](https://builtwithnix.org) [![Hackage](https://img.shields.io/hackage/v/Shpadoinkle-backend-static.svg)](https://hackage.haskell.org/package/Shpadoinkle-backend-static) [![Hackage Deps](https://img.shields.io/hackage-deps/v/Shpadoinkle-backend-static.svg)](http://packdeps.haskellers.com/reverse/Shpadoinkle-backend-static) [![Hackage CI](https://matrix.hackage.haskell.org/api/v2/packages/Shpadoinkle-backend-static/badge)](https://matrix.hackage.haskell.org/#/package/Shpadoinkle-backend-static)
Shpadoinkle-backend-static.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 5590704ab7a49919350e8e04d7f232fe9b8684d70c22468511488f4a2906c8c3+-- hash: 93513838cda5ea2fae8871bd7419fc548395fc98be7b87c6483bc799b60058cc  name:           Shpadoinkle-backend-static-version:        0.0.0.1+version:        0.1.0.0 synopsis:       A backend for rendering Shpadoinkle as Text. description:    Shpadoinkle's static backend, renders Html as Text. Event listeners are ignored. This is useful when rendering on the server, or for static site generation. category:       Web@@ -29,8 +29,8 @@       ./.   ghc-options: -Wall -Wcompat -fwarn-redundant-constraints -fwarn-incomplete-uni-patterns -fwarn-tabs -fwarn-incomplete-record-updates -fwarn-identities   build-depends:-      Shpadoinkle <0.1-    , base >=4.12.0 && <4.13+      Shpadoinkle+    , base >=4.12.0 && <4.15     , compactable >=0.1.2 && <0.2     , text >=1.2.3 && <1.3   default-language: Haskell2010
Shpadoinkle/Backend/Static.hs view
@@ -1,6 +1,9 @@ {-# LANGUAGE LambdaCase        #-} {-# LANGUAGE OverloadedStrings #-} +{-|+  Get your view as plain text, ignoring event listeners.+-}  module Shpadoinkle.Backend.Static ( renderStatic ) where @@ -12,6 +15,7 @@ import           Shpadoinkle         hiding (name, props, text)  +-- | Render @Shpadoinkle.Html@ as @Text@ renderStatic :: Html m a -> Text renderStatic = \case   Node tag props _ | isSelfClosing tag