File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 603
603
} ;
604
604
} ;
605
605
} ;
606
+ fourmolu = mkOption {
607
+ description = "fourmolu hook" ;
608
+ type = types . submodule {
609
+ imports = [ hookModule ] ;
610
+ options . settings . defaultExtensions = mkOption {
611
+ type = types . listOf types . str ;
612
+ description = "Haskell language extensions to enable." ;
613
+ default = [ ] ;
614
+ } ;
615
+ } ;
616
+ } ;
606
617
golines = mkOption {
607
618
description = "golines hook" ;
608
619
type = types . submodule {
2744
2755
package = tools . fourmolu ;
2745
2756
entry =
2746
2757
"${ hooks . fourmolu . package } /bin/fourmolu --mode inplace ${
2747
- lib . escapeShellArgs ( lib . concatMap ( ext : [ "--ghc-opt" "-X${ ext } " ] ) hooks . ormolu . settings . defaultExtensions )
2758
+ lib . escapeShellArgs ( lib . concatMap ( ext : [ "--ghc-opt" "-X${ ext } " ] ) hooks . fourmolu . settings . defaultExtensions )
2748
2759
} ";
2749
2760
files = "\\ .l?hs(-boot)?$" ;
2750
2761
} ;
You can’t perform that action at this time.
0 commit comments