MIT licensed by Jakub Fijałkowski
Maintained by [email protected]
This version can be pinned in stack with:hsass-0.3.0@sha256:0f88d3ccf2deacc8ee2877d5f2e572c390aeeca85da61ebf77f03c7b95ac984e,2503

This package provides quite simple (but not too simple) API for compilation of Sass code. It uses libsass (hlibsass) underneath, so the code it parses/generates should be compatible with original Sass implementation (or at least sassc). This package tries to minimize C API usage, so the only place where it is used is in the compileFile / compileString methods. This allows us to stay pure as long as we can and not waste performance for going back and forth. If you feel that compilation options constrain you too much, you may use rest of modules without it. With them, you can use Haskell types and mechanisms to manage libsass's data(eg. importers, options, values) and modify compilation process as you like.


Change Log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

0.3.0 - 2015-07-10


  • Support for a ByteString result (thanks to Andy Morris ).


  • SassExtendedResult is now parametrised by a base result type (e.g. String).
  • The package depends on transformers instead of mtl.


  • Fix GHC 7.10.1 warnings related to AMP proposal.
  • Support for stack’s lts-2.17 resolver.

0.2.0 - 2015-06-01


  • Return type of compileString and compileFile is now polymorphic - may return both String and SassExtendedResult on success.
  • Fixes in documentation (articles, mostly).


  • SassExtendedResult with a compiled string, a list of files included during compilation and a source map.

0.1.0 - 2015-04-11


  • Support for functions, importers, headers and sass values.
  • Compilation of files and strings.