@@ -13,41 +13,45 @@ module Language.Haskell.Stylish.Step.Data
1313 ) where
1414
1515--------------------------------------------------------------------------------
16- import Prelude hiding (init )
16+ import Prelude hiding (init )
1717
1818--------------------------------------------------------------------------------
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 )
2424
2525--------------------------------------------------------------------------------
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 )
4548
4649--------------------------------------------------------------------------------
4750import Language.Haskell.Stylish.Block
4851import Language.Haskell.Stylish.Editor
4952import Language.Haskell.Stylish.GHC
5053import Language.Haskell.Stylish.Module
54+ import Language.Haskell.Stylish.Ordering
5155import Language.Haskell.Stylish.Printer
5256import Language.Haskell.Stylish.Step
5357
@@ -290,7 +294,7 @@ putDeriving Config{..} (L pos clause) = do
290294 = clause
291295 & deriv_clause_tys
292296 & unLocated
293- & (if cSortDeriving then sortBy compareOutputable else id )
297+ & (if cSortDeriving then sortBy compareOutputableCI else id )
294298 & fmap hsib_body
295299
296300 headTy =
0 commit comments