Skip to content

Commit 24cc530

Browse files
author
Ryan Trinkle
committed
Fix some hlint issues
1 parent e1628f7 commit 24cc530

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Reflex/Dynamic/TH.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ qDynPure qe = do
4747
_ -> gmapM f d
4848
(e', exprsReversed) <- runStateT (gmapM f e) []
4949
let exprs = reverse exprsReversed
50-
arg = foldr (\a b -> ConE 'FHCons `AppE` a `AppE` b) (ConE 'FHNil) $ map snd exprs
51-
param = foldr (\a b -> ConP 'HCons [VarP a, b]) (ConP 'HNil []) $ map fst exprs
50+
arg = foldr (\a b -> ConE 'FHCons `AppE` snd a `AppE` b) (ConE 'FHNil) exprs
51+
param = foldr (\a b -> ConP 'HCons [VarP (fst a), b]) (ConP 'HNil []) exprs
5252
[| $(return $ LamE [param] e') <$> distributeFHListOverDynPure $(return arg) |]
5353

5454
-- | Antiquote a 'Dynamic' expression. This can /only/ be used inside of a

src/Reflex/FunctorMaybe.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ class FunctorMaybe f where
2828
instance FunctorMaybe Maybe where
2929
fmapMaybe = (=<<)
3030

31-
-- | @fmapMaybe f = catMaybes . fmap f@
31+
-- | @fmapMaybe = mapMaybe@
3232
instance FunctorMaybe [] where
33-
fmapMaybe f = catMaybes . fmap f
33+
fmapMaybe = mapMaybe

0 commit comments

Comments
 (0)