aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMads Hougesen <mads@mhouge.dk>2024-06-01 20:57:38 +0200
committerGitHub <noreply@github.com>2024-06-01 11:57:38 -0700
commitdc612fbf6194fcb3ef401871db1cae74134e9423 (patch)
tree7b553f0487950beeeaa1246dbceb6e5f2d271e15
parentf3b930db4964d60e255c8f9e37b7f2218dfc08cb (diff)
feat(haskell): support stylish-haskell (#435)
* feat: add support for stylish-haskell * refactor: use stdin instead of file
-rw-r--r--lua/conform/formatters/stylish-haskell.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/conform/formatters/stylish-haskell.lua b/lua/conform/formatters/stylish-haskell.lua
new file mode 100644
index 0000000..be4f2e3
--- /dev/null
+++ b/lua/conform/formatters/stylish-haskell.lua
@@ -0,0 +1,10 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://github.com/haskell/stylish-haskell",
+ description = "Haskell code prettifier.",
+ },
+ command = "stylish-haskell",
+ args = {},
+ stdin = true,
+}