Skip to content

Commit ceea033

Browse files
committed
Consistent approach to spaces in deriving
1 parent c4dd64e commit ceea033

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

src/Data/Attoparsec/Args.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import Stack.Prelude
1919
data EscapingMode
2020
= Escaping
2121
| NoEscaping
22-
deriving (Show,Eq,Enum)
22+
deriving (Show, Eq, Enum)
2323

2424
-- | Parse arguments using 'argsParser'.
2525
parseArgs :: EscapingMode -> Text -> Either String [String]

src/Stack/Types/Config.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,15 +1964,15 @@ instance FromJSON PvpBounds where
19641964
newtype DockerEntrypoint = DockerEntrypoint
19651965
{ deUser :: Maybe DockerUser
19661966
-- ^ UID/GID/etc of host user, if we wish to perform UID/GID switch in container
1967-
} deriving (Read,Show)
1967+
} deriving (Read, Show)
19681968

19691969
-- | Docker host user info
19701970
data DockerUser = DockerUser
19711971
{ duUid :: UserID -- ^ uid
19721972
, duGid :: GroupID -- ^ gid
19731973
, duGroups :: [GroupID] -- ^ Supplemental groups
19741974
, duUmask :: FileMode -- ^ File creation mask }
1975-
} deriving (Read,Show)
1975+
} deriving (Read, Show)
19761976

19771977
data GhcOptionKey
19781978
= GOKOldEverything

src/Stack/Types/Config/Build.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ data TestOpts =
364364
,toDisableRun :: !Bool -- ^ Disable running of tests
365365
,toMaximumTimeSeconds :: !(Maybe Int) -- ^ test suite timeout in seconds
366366
,toAllowStdin :: !Bool -- ^ Whether to allow standard input
367-
} deriving (Eq,Show)
367+
} deriving (Eq, Show)
368368

369369
defaultTestOpts :: TestOpts
370370
defaultTestOpts = TestOpts
@@ -426,7 +426,7 @@ instance Monoid TestOptsMonoid where
426426
-- | Haddock Options
427427
newtype HaddockOpts =
428428
HaddockOpts { hoAdditionalArgs :: [String] -- ^ Arguments passed to haddock program
429-
} deriving (Eq,Show)
429+
} deriving (Eq, Show)
430430

431431
newtype HaddockOptsMonoid =
432432
HaddockOptsMonoid {hoMonoidAdditionalArgs :: [String]
@@ -456,7 +456,7 @@ data BenchmarkOpts =
456456
BenchmarkOpts
457457
{ beoAdditionalArgs :: !(Maybe String) -- ^ Arguments passed to the benchmark program
458458
, beoDisableRun :: !Bool -- ^ Disable running of benchmarks
459-
} deriving (Eq,Show)
459+
} deriving (Eq, Show)
460460

461461
defaultBenchmarkOpts :: BenchmarkOpts
462462
defaultBenchmarkOpts = BenchmarkOpts
@@ -493,7 +493,7 @@ data FileWatchOpts
493493
= NoFileWatch
494494
| FileWatch
495495
| FileWatchPoll
496-
deriving (Show,Eq)
496+
deriving (Show, Eq)
497497

498498
newtype CabalVerbosity = CabalVerbosity Verbosity
499499
deriving (Eq, Show)

src/Stack/Types/GhcPkgId.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ instance Exception GhcPkgIdParseFail where
3434

3535
-- | A ghc-pkg package identifier.
3636
newtype GhcPkgId = GhcPkgId Text
37-
deriving (Eq,Ord,Data,Typeable,Generic,PersistField,PersistFieldSql)
37+
deriving (Eq, Ord, Data, Typeable, Generic, PersistField, PersistFieldSql)
3838

3939
instance Hashable GhcPkgId
4040
instance NFData GhcPkgId

src/Stack/Types/Package.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ instance Exception PackageException where
147147
data PackageLibraries
148148
= NoLibraries
149149
| HasLibraries !(Set Text) -- ^ the foreign library names, sub libraries get built automatically without explicit component name passing
150-
deriving (Show,Typeable)
150+
deriving (Show, Typeable)
151151

152152
-- | Name of an executable.
153153
newtype ExeName = ExeName { unExeName :: Text }
@@ -178,7 +178,7 @@ data Package =
178178
-- ^ If present: custom-setup dependencies
179179
,packageCabalSpec :: !CabalSpecVersion -- ^ Cabal spec range
180180
}
181-
deriving (Show,Typeable)
181+
deriving (Show, Typeable)
182182

183183
packageIdent :: Package -> PackageIdentifier
184184
packageIdent p = PackageIdentifier (packageName p) (packageVersion p)
@@ -230,7 +230,7 @@ data PackageConfig =
230230
,packageConfigCompilerVersion :: ActualCompiler -- ^ GHC version
231231
,packageConfigPlatform :: !Platform -- ^ host platform
232232
}
233-
deriving (Show,Typeable)
233+
deriving (Show, Typeable)
234234

235235
-- | Compares the package name.
236236
instance Ord Package where

src/Stack/Types/TemplateName.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ instance Exception TypeTemplateNameException where
3737

3838
-- | A template name.
3939
data TemplateName = TemplateName !Text !TemplatePath
40-
deriving (Ord,Eq,Show)
40+
deriving (Ord, Eq, Show)
4141

4242
data TemplatePath = AbsPath (Path Abs File)
4343
-- ^ an absolute path on the filesystem

0 commit comments

Comments
 (0)