stylish-haskell icon indicating copy to clipboard operation
stylish-haskell copied to clipboard

`space_surround` for record updates

Open peterbecich opened this issue 1 year ago • 0 comments

The docs for space_surround:

Space surround option affects formatting of import lists on a single line....

Can this feature be extended to also cover record updates, such as:

-- | Generate generics using purescript-generics-rep
useGenRep :: Switch
useGenRep = Endo $ \settings -> settings{genericsGenRep = True}

IMO it would be nice to modify settings{genericsGenRep = True} to settings { genericsGenRep = True }

or settings {genericsGenRep = True}

stylish-haskell 0.14.4.0

Thanks

peterbecich avatar Mar 19 '23 00:03 peterbecich