├── .circleci └── config.yml ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── Setup.hs ├── bench └── Main.hs ├── package.yaml ├── src ├── Control │ └── Monad │ │ ├── Stitch.hs │ │ └── Trans │ │ └── Stitch.hs ├── Stitch.hs └── Stitch │ ├── Combinators.hs │ ├── Example.hs │ ├── Render.hs │ ├── Types.hs │ └── Types │ └── Selector.hs ├── stack-lts-11.22 ├── stack-lts-15.14 ├── stack-lts-7.24 ├── stack-lts-9.21 ├── stack.yaml ├── stitch.cabal └── test ├── Spec.hs ├── Stitch └── Types │ └── SelectorSpec.hs ├── StitchSpec.hs └── css ├── ampersand_after.css ├── basic_ampersand.css ├── basic_import.css ├── basic_nested_props.css ├── basic_prefix.css ├── basic_props.css ├── empty.css ├── multiple_ampersands.css ├── multiple_props.css ├── multiple_selectors.css ├── nested_prefixes.css ├── no_top_level_amps.css └── prefixed_ampersands.css /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/README.md -------------------------------------------------------------------------------- /Setup.hs: -------------------------------------------------------------------------------- 1 | import Distribution.Simple 2 | main = defaultMain 3 | -------------------------------------------------------------------------------- /bench/Main.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/bench/Main.hs -------------------------------------------------------------------------------- /package.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/package.yaml -------------------------------------------------------------------------------- /src/Control/Monad/Stitch.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/src/Control/Monad/Stitch.hs -------------------------------------------------------------------------------- /src/Control/Monad/Trans/Stitch.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/src/Control/Monad/Trans/Stitch.hs -------------------------------------------------------------------------------- /src/Stitch.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/src/Stitch.hs -------------------------------------------------------------------------------- /src/Stitch/Combinators.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/src/Stitch/Combinators.hs -------------------------------------------------------------------------------- /src/Stitch/Example.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/src/Stitch/Example.hs -------------------------------------------------------------------------------- /src/Stitch/Render.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/src/Stitch/Render.hs -------------------------------------------------------------------------------- /src/Stitch/Types.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/src/Stitch/Types.hs -------------------------------------------------------------------------------- /src/Stitch/Types/Selector.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/src/Stitch/Types/Selector.hs -------------------------------------------------------------------------------- /stack-lts-11.22: -------------------------------------------------------------------------------- 1 | resolver: lts-11.22 2 | -------------------------------------------------------------------------------- /stack-lts-15.14: -------------------------------------------------------------------------------- 1 | resolver: lts-15.14 2 | -------------------------------------------------------------------------------- /stack-lts-7.24: -------------------------------------------------------------------------------- 1 | resolver: lts-7.24 2 | -------------------------------------------------------------------------------- /stack-lts-9.21: -------------------------------------------------------------------------------- 1 | resolver: lts-9.21 2 | -------------------------------------------------------------------------------- /stack.yaml: -------------------------------------------------------------------------------- 1 | resolver: lts-12.7 2 | -------------------------------------------------------------------------------- /stitch.cabal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/stitch.cabal -------------------------------------------------------------------------------- /test/Spec.hs: -------------------------------------------------------------------------------- 1 | {-# OPTIONS_GHC -F -pgmF hspec-discover #-} 2 | -------------------------------------------------------------------------------- /test/Stitch/Types/SelectorSpec.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/test/Stitch/Types/SelectorSpec.hs -------------------------------------------------------------------------------- /test/StitchSpec.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/test/StitchSpec.hs -------------------------------------------------------------------------------- /test/css/ampersand_after.css: -------------------------------------------------------------------------------- 1 | .selected .button h1 { 2 | color: red 3 | } 4 | -------------------------------------------------------------------------------- /test/css/basic_ampersand.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/test/css/basic_ampersand.css -------------------------------------------------------------------------------- /test/css/basic_import.css: -------------------------------------------------------------------------------- 1 | @import empty.css; 2 | -------------------------------------------------------------------------------- /test/css/basic_nested_props.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/test/css/basic_nested_props.css -------------------------------------------------------------------------------- /test/css/basic_prefix.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/test/css/basic_prefix.css -------------------------------------------------------------------------------- /test/css/basic_props.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: red 3 | } 4 | -------------------------------------------------------------------------------- /test/css/empty.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/css/multiple_ampersands.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/test/css/multiple_ampersands.css -------------------------------------------------------------------------------- /test/css/multiple_props.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/test/css/multiple_props.css -------------------------------------------------------------------------------- /test/css/multiple_selectors.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/test/css/multiple_selectors.css -------------------------------------------------------------------------------- /test/css/nested_prefixes.css: -------------------------------------------------------------------------------- 1 | body { 2 | a-b-c: red 3 | } 4 | -------------------------------------------------------------------------------- /test/css/no_top_level_amps.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/css/prefixed_ampersands.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intolerable/stitch/HEAD/test/css/prefixed_ampersands.css --------------------------------------------------------------------------------