Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Haskell 如何阻止Brittany为对齐而展开支架_Haskell_Formatting_Brackets - Fatal编程技术网

Haskell 如何阻止Brittany为对齐而展开支架

Haskell 如何阻止Brittany为对齐而展开支架,haskell,formatting,brackets,Haskell,Formatting,Brackets,我正在使用Brittany格式化Haskell代码。如何配置Brittany以保持对齐,而不是展开方括号以适应对齐 也就是说,我所拥有的是: reverse' :: [a] -> [a] reverse' [] = [] reverse' [x ] = [x] reverse' (x : xs) = reverse' xs ++ [x] reverse' :: [a] -> [a] reverse' [] = [] reverse' [x]

我正在使用Brittany格式化Haskell代码。如何配置Brittany以保持对齐,而不是展开方括号以适应对齐

也就是说,我所拥有的是:

reverse' :: [a] -> [a]
reverse' []       = []
reverse' [x     ] = [x]
reverse' (x : xs) = reverse' xs ++ [x]
reverse' :: [a] -> [a]
reverse' []       = []
reverse' [x]      = [x]
reverse' (x : xs) = reverse' xs ++ [x]
我想要的是:

reverse' :: [a] -> [a]
reverse' []       = []
reverse' [x     ] = [x]
reverse' (x : xs) = reverse' xs ++ [x]
reverse' :: [a] -> [a]
reverse' []       = []
reverse' [x]      = [x]
reverse' (x : xs) = reverse' xs ++ [x]
谢谢