Skip to content

Commit ec9fc45

Browse files
Insert spaces around function composition.
Using foo.bar for function composition does not work with the RecordDotSyntax extension, so insert some spaces.
1 parent 018f2e9 commit ec9fc45

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Language/Preprocessor/Cpphs/MacroPass.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ macroProcess pr layout lang st (Ident p x: ws) =
167167
Just (args,ws') ->
168168
if length args /= length (arguments hd) then
169169
emit x $ macroProcess pr layout lang st ws
170-
else do args' <- mapM (fmap (concat.onlyRights)
170+
else do args' <- mapM (fmap (concat . onlyRights)
171171
. macroProcess pr layout
172172
lang st)
173173
args

Language/Preprocessor/Cpphs/SymTab.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ flattenST :: SymTab v -> [v]
3636

3737
emptyST = itgen maxHash []
3838
insertST (s,v) ss = itiap (hash s) ((s,v):) ss id
39-
deleteST s ss = itiap (hash s) (filter ((/=s).fst)) ss id
40-
lookupST s ss = let vs = filter ((==s).fst) ((itind (hash s)) ss)
39+
deleteST s ss = itiap (hash s) (filter ((/=s) . fst)) ss id
40+
lookupST s ss = let vs = filter ((==s) . fst) ((itind (hash s)) ss)
4141
in if null vs then Nothing
4242
else (Just . snd . head) vs
43-
definedST s ss = let vs = filter ((==s).fst) ((itind (hash s)) ss)
43+
definedST s ss = let vs = filter ((==s) . fst) ((itind (hash s)) ss)
4444
in (not . null) vs
4545
flattenST ss = itfold (map snd) (++) ss
4646

0 commit comments

Comments
 (0)