packages feed

stylist 2.5.0.0 → 2.5.0.1

raw patch · 4 files changed

+17/−11 lines, 4 files

Files

README.md view
@@ -1,9 +1,11 @@ # Haskell Stylist+[Repository](https://git.argonaut-constellation.org/~alcinnz/haskell-stylist) | [Issue Tracker](https://todo.argonaut-constellation.org/~alcinnz/haskell-stylist) | [Hackage](https://hackage.haskell.org/package/stylist)+ Generic CSS style engine for Haskell, intended to aid the development of new browser engines.  Haskell Stylist implements CSS selection and cascade (but not inheritance) independant of the CSS at-rules and properties understood by the caller. It is intended to ease the development of new browser engines, independant of their output targets. -For more interesting projects see: https://github.io/alcinnz/browser-engine-ganarchy/+For more interesting projects see: https://argonaut-constellation.org/  ## Versioning The second major number indicates that more of CSS has been implemented within the existing API. Until then the error recovery rules will ensure as yet invalid CSS won't have any effect.@@ -17,14 +19,18 @@  `PropertyParser` allows to declaratively (via Haskell pattern matching) specify how to parse CSS properties, and how they're impacted by CSS inheritance. It has four methods: `longhand` and `shorthand` specify how to parse CSS properties, whilst `temp` and `inherit` specifies what the default values should be. -## Contributing-You can contributed code or register "issues" to Haskell Stylist by contacting me (Adrian Cochrane) via [mastodon](https://floss.social/@alcinnz/) or [email](mailto:adrian@openwork.nz)..--If you're contributing code you can link me to where you're hosting your git fork, or send [a patch file](https://git-send-email.io/). Or if you simply want to ask for more features or fixes don't hesitate to contact me!--Feel free to mirror this repo elsewhere! Just tell me about it so I can watch that mirror for contributions.- ### Building 1. Install `ghc` and `cabal-install`. (Debian package names listed here) 2. From within the git repository, run `cabal install`. This'll compile Stylist and all it's other dependencies. 3. Run `cabal test` after every change you make.++## Contributing+Please send patches to our [issue tracker](https://todo.argonaut-constellation.org/~alcinnz/haskell-stylist) by either:++* Attaching the output of `git format-patch`.+* [git send-email](https://git-send-email.io/) to ~alcinnz/haskell-stylist@todo.argonaut-constellation.org .+* Linking to your fork elsewhere.++Whichever you find most convenient.++If you'd prefer to not make your email address public please contact alcinnz@argonaut-constellation.org !
src/Data/CSS/Preprocessor/Assets.hs view
@@ -3,7 +3,7 @@ module Data.CSS.Preprocessor.Assets(StyleAssets(..), URIRewriter(..)) where  -- TODO Unit test!-import           Data.Text as Txt+import           Data.Text as Txt hiding (elem) import           Network.URI import qualified Data.CSS.Syntax.StyleSheet as CSS import qualified Data.CSS.Syntax.Tokens as CSSTok
src/Data/CSS/Preprocessor/PsuedoClasses.hs view
@@ -49,7 +49,7 @@ extractPseudoEl ps (Adjacent _ sel) = extractPseudoEl' ps sel extractPseudoEl ps (Sibling _ sel) = extractPseudoEl' ps sel extractPseudoEl' :: [Text] -> [SimpleSelector] -> Maybe Text-extractPseudoEl' ps sel = listToMaybe [p | Psuedoclass p [] <- sel, p `elem` ps]+extractPseudoEl' ps sel = listToMaybe [p | Psuedoclass p [] <- sel, p `Prelude.elem` ps]  lowerSelector :: HashMap Text Text -> RewriteMap -> Selector -> Selector lowerSelector ns rewrites (Element sel') = Element $ lowerSelector' ns rewrites sel'
stylist.cabal view
@@ -10,7 +10,7 @@ -- PVP summary:      +-+------- breaking API changes --                   | | +----- non-breaking API additions --                   | | | +--- code changes with no API change-version:             2.5.0.0+version:             2.5.0.1  -- A short (one-line) description of the package. synopsis:            Apply CSS styles to a document tree.