stack2nix-0.2.3: Convert stack.yaml files into Nix build instructions.

Safe HaskellSafe
LanguageHaskell2010

Stack2nix.PP

Synopsis

Documentation

ppIndented :: Doc -> String Source #

Formats the derivation doc with indentation and lines wrapped at 100 chars.

ppSingletons :: Doc -> String Source #

Formats the derivation doc without indentation and with each list element and function argument on its own line. We go to this effort to "ugly-print" so that the resulting file is less susceptible to merge conflicts when checked into git.