From dc612fbf6194fcb3ef401871db1cae74134e9423 Mon Sep 17 00:00:00 2001 From: Mads Hougesen Date: Sat, 1 Jun 2024 20:57:38 +0200 Subject: [PATCH] feat(haskell): support stylish-haskell (#435) * feat: add support for stylish-haskell * refactor: use stdin instead of file --- lua/conform/formatters/stylish-haskell.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lua/conform/formatters/stylish-haskell.lua diff --git a/lua/conform/formatters/stylish-haskell.lua b/lua/conform/formatters/stylish-haskell.lua new file mode 100644 index 00000000..be4f2e34 --- /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, +}