@@ -685,13 +685,13 @@ hsImportSpec formatterName [e1, e2, e3, e4] =
685685 let config = def { formatOnImportOn = False , formattingProvider = formatterName }
686686 sendNotification WorkspaceDidChangeConfiguration (DidChangeConfigurationParams (toJSON config))
687687
688- let wantedCodeActionTitles = [ " Import module System.IO (hPutSetrLn)"
689- , " Import module System.IO (stdout)"
688+ let wantedCodeActionTitles = [ " Import module System.IO (hPutStrLn)"
690689 , " Import module Control.Monad (when)"
691690 , " Import module Data.Maybe (fromMaybe)"
692691 , " Import module Data.Function (($))"
693- , " Import module Data.Maybe (Maybe(Just))"
694- , " Import module Prelude (Bool(..))"
692+ , " Import module Data.Maybe (Maybe (Just))"
693+ , " Import module Prelude (Bool (..))"
694+ , " Import module System.IO (stdout)"
695695 ]
696696
697697 executeAllCodeActions doc wantedCodeActionTitles
@@ -708,12 +708,12 @@ hsImportSpec formatterName [e1, e2, e3, e4] =
708708 sendNotification WorkspaceDidChangeConfiguration (DidChangeConfigurationParams (toJSON config))
709709
710710 let wantedCodeActionTitles = [ " Import module System.IO (hPutStrLn)"
711- , " Import module System.IO (stdout)"
712711 , " Import module Control.Monad (when)"
713712 , " Import module Data.Maybe (fromMaybe)"
714713 , " Import module Data.Function (($))"
715- , " Import module Data.Maybe (Maybe(Just))"
716- , " Import module Prelude (Bool(..))"
714+ , " Import module Data.Maybe (Maybe (Just))"
715+ , " Import module Prelude (Bool (..))"
716+ , " Import module System.IO (stdout)"
717717 ]
718718
719719 executeAllCodeActions doc wantedCodeActionTitles
@@ -754,7 +754,7 @@ hsImportSpec formatterName [e1, e2, e3, e4] =
754754 error
755755 $ " Found an unexpected amount of action. Expected 1, but got: "
756756 ++ show (length xs)
757- ++ " \n . Titles: " ++ show (map (^. L. title) allActions)
757+ ++ " . \n Titles: " ++ show (map (^. L. title) allActions)
758758
759759-- Silence warnings
760760hsImportSpec formatter args =
0 commit comments