adius/vectual/5.0.0

NOTE: the latest version is 6.0.0

Renamed to ad-si/Vectual. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as adius/vectual still install under that name. 3 versions of 7 come from the new location (see their notes).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/ad-si/Vectual.

What we checked: The repo moved to github.com/ad-si/Vectual and tag 5.0.0 is there; its commit 14ae04e1bb14 is from 2023-09-18 14:03 UTC, before the version was published (2023-09-18 14:04 UTC); elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip's SHA-1 is not the published one (GitHub's zip no longer comes out byte for byte the same), so the contents were checked instead.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/adius/vectual/zipball/5.0.0/

Stylus.Parser

Convert a strict subset of Stylus to CSS

stylusToCss : String -> Result (List (DeadEnd Context Problem)) String
stylusToCss """
div
  width 400px
  height 300px
"""

yields

div { width: 400px; height: 300px; }

Internal

= Rule ( Selectors, List Declaration )
| Comment String
| Newlines
type Problem
= BadIndent
| BadKeyword String
| GenericProblem
selector : StyParser String
selectors : StyParser Selectors
-> StyParser (Step (List Expression) (List Expression))
rule : StyParser Expression
List Declaration
-> StyParser (Step (List Declaration) (List Declaration))
declarations : StyParser (List Declaration)
newlines : StyParser Expression
stylus : StyParser (List Expression)