@@ -13,41 +13,45 @@ module Language.Haskell.Stylish.Step.Data
13
13
) where
14
14
15
15
--------------------------------------------------------------------------------
16
- import Prelude hiding (init )
16
+ import Prelude hiding (init )
17
17
18
18
--------------------------------------------------------------------------------
19
- import Control.Monad (forM_ , unless , when )
20
- import Data.Function ((&) )
21
- import Data.Functor ((<&>) )
22
- import Data.List (sortBy )
23
- import Data.Maybe (listToMaybe )
19
+ import Control.Monad (forM_ , unless , when )
20
+ import Data.Function ((&) )
21
+ import Data.Functor ((<&>) )
22
+ import Data.List (sortBy )
23
+ import Data.Maybe (listToMaybe )
24
24
25
25
--------------------------------------------------------------------------------
26
- import ApiAnnotation (AnnotationComment )
27
- import BasicTypes (LexicalFixity (.. ))
28
- import GHC.Hs.Decls (ConDecl (.. ),
29
- DerivStrategy (.. ),
30
- HsDataDefn (.. ), HsDecl (.. ),
31
- HsDerivingClause (.. ),
32
- NewOrData (.. ),
33
- TyClDecl (.. ))
34
- import GHC.Hs.Extension (GhcPs , NoExtField (.. ),
35
- noExtCon )
36
- import GHC.Hs.Types (ConDeclField (.. ),
37
- ForallVisFlag (.. ),
38
- HsConDetails (.. ), HsContext ,
39
- HsImplicitBndrs (.. ),
40
- HsTyVarBndr (.. ),
41
- HsType (.. ), LHsQTyVars (.. ), LHsKind )
42
- import RdrName (RdrName )
43
- import SrcLoc (GenLocated (.. ), Located ,
44
- RealLocated )
26
+ import ApiAnnotation (AnnotationComment )
27
+ import BasicTypes (LexicalFixity (.. ))
28
+ import GHC.Hs.Decls (ConDecl (.. ),
29
+ DerivStrategy (.. ),
30
+ HsDataDefn (.. ),
31
+ HsDecl (.. ),
32
+ HsDerivingClause (.. ),
33
+ NewOrData (.. ),
34
+ TyClDecl (.. ))
35
+ import GHC.Hs.Extension (GhcPs , NoExtField (.. ),
36
+ noExtCon )
37
+ import GHC.Hs.Types (ConDeclField (.. ),
38
+ ForallVisFlag (.. ),
39
+ HsConDetails (.. ),
40
+ HsContext ,
41
+ HsImplicitBndrs (.. ),
42
+ HsTyVarBndr (.. ),
43
+ HsType (.. ), LHsKind ,
44
+ LHsQTyVars (.. ))
45
+ import RdrName (RdrName )
46
+ import SrcLoc (GenLocated (.. ), Located ,
47
+ RealLocated )
45
48
46
49
--------------------------------------------------------------------------------
47
50
import Language.Haskell.Stylish.Block
48
51
import Language.Haskell.Stylish.Editor
49
52
import Language.Haskell.Stylish.GHC
50
53
import Language.Haskell.Stylish.Module
54
+ import Language.Haskell.Stylish.Ordering
51
55
import Language.Haskell.Stylish.Printer
52
56
import Language.Haskell.Stylish.Step
53
57
@@ -290,7 +294,7 @@ putDeriving Config{..} (L pos clause) = do
290
294
= clause
291
295
& deriv_clause_tys
292
296
& unLocated
293
- & (if cSortDeriving then sortBy compareOutputable else id )
297
+ & (if cSortDeriving then sortBy compareOutputableCI else id )
294
298
& fmap hsib_body
295
299
296
300
headTy =
0 commit comments