mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-25 19:22:08 +03:00
Whitespace
This commit is contained in:
parent
c4ab1e9b53
commit
11e0f2b0a2
@ -156,21 +156,21 @@ defaultConfig :: Config
|
||||
defaultConfig = mempty
|
||||
|
||||
instance Semigroup Config where
|
||||
c0 <> c1 = Config
|
||||
c0 <> c1 =
|
||||
-- latter config takes priority for everything but inputMap
|
||||
{ vmin = vmin c1 <|> vmin c0
|
||||
, vtime = vtime c1 <|> vtime c0
|
||||
, mouseMode = mouseMode c1
|
||||
, bracketedPasteMode = bracketedPasteMode c1
|
||||
, debugLog = debugLog c1 <|> debugLog c0
|
||||
, inputMap = inputMap c0 <> inputMap c1
|
||||
, inputFd = inputFd c1 <|> inputFd c0
|
||||
, outputFd = outputFd c1 <|> outputFd c0
|
||||
, termName = termName c1 <|> termName c0
|
||||
, termWidthMaps = termWidthMaps c1 <|> termWidthMaps c0
|
||||
, allowCustomUnicodeWithTables =
|
||||
allowCustomUnicodeWithTables c0 || allowCustomUnicodeWithTables c1
|
||||
}
|
||||
Config { vmin = vmin c1 <|> vmin c0
|
||||
, vtime = vtime c1 <|> vtime c0
|
||||
, mouseMode = mouseMode c1
|
||||
, bracketedPasteMode = bracketedPasteMode c1
|
||||
, debugLog = debugLog c1 <|> debugLog c0
|
||||
, inputMap = inputMap c0 <> inputMap c1
|
||||
, inputFd = inputFd c1 <|> inputFd c0
|
||||
, outputFd = outputFd c1 <|> outputFd c0
|
||||
, termName = termName c1 <|> termName c0
|
||||
, termWidthMaps = termWidthMaps c1 <|> termWidthMaps c0
|
||||
, allowCustomUnicodeWithTables =
|
||||
allowCustomUnicodeWithTables c0 || allowCustomUnicodeWithTables c1
|
||||
}
|
||||
|
||||
instance Monoid Config where
|
||||
mempty =
|
||||
|
Loading…
Reference in New Issue
Block a user