mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-29 08:49:40 +03:00
Merge pull request #207 from hapytex/hlint/redundant-bracket
remove useless parenthesis and ellipse
This commit is contained in:
commit
dfa4c1ec08
@ -336,9 +336,9 @@ data BuildResults = BuildResults
|
||||
instance Semigroup BuildResults where
|
||||
v0 <> v1
|
||||
= BuildResults
|
||||
{ outParamCount = (outParamCount v0) `max` (outParamCount v1)
|
||||
, outCapOps = (outCapOps v0) <> (outCapOps v1)
|
||||
, outParamOps = (outParamOps v0) <> (outParamOps v1)
|
||||
{ outParamCount = outParamCount v0 `max` outParamCount v1
|
||||
, outCapOps = outCapOps v0 <> outCapOps v1
|
||||
, outParamOps = outParamOps v0 <> outParamOps v1
|
||||
}
|
||||
|
||||
instance Monoid BuildResults where
|
||||
|
@ -224,7 +224,7 @@ logInitialInputState input classifyTable = case _inputDebug input of
|
||||
Just h -> do
|
||||
Config{ vmin = Just theVmin
|
||||
, vtime = Just theVtime
|
||||
, termName = Just theTerm, .. } <- readIORef $ _configRef input
|
||||
, termName = Just theTerm } <- readIORef $ _configRef input
|
||||
_ <- hPrintf h "initial (vmin,vtime): %s\n" (show (theVmin, theVtime))
|
||||
forM_ classifyTable $ \i -> case i of
|
||||
(inBytes, EvKey k mods) -> hPrintf h "map %s %s %s %s\n" (show theTerm)
|
||||
|
@ -74,7 +74,7 @@ visibleChars = [ ([x], EvKey (KChar x) [])
|
||||
ctrlChars :: ClassifyMap
|
||||
ctrlChars =
|
||||
[ ([toEnum x],EvKey (KChar y) [MCtrl])
|
||||
| (x,y) <- zip ([0..31]) ('@':['a'..'z']++['['..'_'])
|
||||
| (x,y) <- zip [0..31] ('@':['a'..'z']++['['..'_'])
|
||||
, y /= 'i' -- Resolve issue #3 where CTRL-i hides TAB.
|
||||
, y /= 'h' -- CTRL-h should not hide BS
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user