summaryrefslogtreecommitdiffhomepage
path: root/data
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2012-09-15 14:42:17 +0200
committerJasper Van der Jeugt <m@jaspervdj.be>2012-09-15 14:42:32 +0200
commit1b72845d55cb185768b4da92e923de66fbf78a26 (patch)
tree4bcb92d5e65b5730d9c97529033198b8dd3e458c /data
parentfc2231cab67ae58bc85aa8ca41bf7f0bec662a17 (diff)
downloadstylish-haskell-1b72845d55cb185768b4da92e923de66fbf78a26.tar.gz
Move default config file
Diffstat (limited to 'data')
-rw-r--r--data/stylish-haskell.yaml71
1 files changed, 71 insertions, 0 deletions
diff --git a/data/stylish-haskell.yaml b/data/stylish-haskell.yaml
new file mode 100644
index 0000000..c128830
--- /dev/null
+++ b/data/stylish-haskell.yaml
@@ -0,0 +1,71 @@
+# stylish-haskell configuration file
+# ==================================
+
+# The stylish-haskell tool is mainly configured by specifying steps. These steps
+# are a list, so they have an order, and one specific step may appear more than
+# once (if needed). Each file is processed by these steps in the given order.
+steps:
+ # Convert some ASCII sequences to their Unicode equivalents. This is disabled
+ # by default.
+ # - unicode_syntax:
+ # # In order to make this work, we also need to insert the UnicodeSyntax
+ # # language pragma. If this flag is set to true, we insert it when it's
+ # # not already present. You may want to disable it if you configure
+ # # language extensions using some other method than pragmas. Default:
+ # # true.
+ # add_language_pragma: true
+
+ # Import cleanup
+ - imports:
+ # There are different ways we can align names and lists.
+ #
+ # - global: Align the import names and import list throughout the entire
+ # file.
+ #
+ # - group: Only align the imports per group (a group is formed by adjacent
+ # import lines).
+ #
+ # - none: Do not perform any alignment.
+ #
+ # Default: global.
+ align: global
+
+ # Language pragmas
+ - language_pragmas:
+ # We can generate different styles of language pragma lists.
+ #
+ # - vertical: Vertical-spaced language pragmas, one per line.
+ #
+ # - compact: A more compact style.
+ #
+ # Default: vertical.
+ style: vertical
+
+ # stylish-haskell can detect redundancy of some language pragmas. If this
+ # is set to true, it will remove those redundant pragmas. Default: true.
+ remove_redundant: true
+
+ # Align the types in record declarations
+ - records: {}
+
+ # Replace tabs by spaces. This is disabled by default.
+ # - tabs:
+ # # Number of spaces to use for each tab. Default: 8, as specified by the
+ # # Haskell report.
+ # spaces: 8
+
+ # Remove trailing whitespace
+ - trailing_whitespace: {}
+
+# A common setting is the number of columns (parts of) code will be wrapped
+# to. Different steps take this into account. Default: 80.
+columns: 80
+
+# Sometimes, language extensions are specified in a cabal file or from the
+# command line instead of using language pragmas in the file. stylish-haskell
+# needs to be aware of these, so it can parse the file correctly.
+#
+# No language extensions are enabled by default.
+# language_extensions:
+ # - TemplateHaskell
+ # - QuasiQuotes