Skip to content

Commit 130c9c7

Browse files
committed
Type.Infer: m clean-up
1 parent 4b14106 commit 130c9c7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Nix/Type/Infer.hs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,9 @@ instance MonadInfer m
452452

453453
polymorphicVar :: MonadInfer m => VarName -> InferT s m (Judgment s)
454454
polymorphicVar var =
455-
fmap
456-
(join ((`Judgment` mempty) . curry one var))
457-
fresh
455+
fmap
456+
(join $ (`Judgment` mempty) . curry one var)
457+
fresh
458458

459459
constInfer :: Applicative f => Type -> b -> f (Judgment s)
460460
constInfer x = const $ pure $ inferred x
@@ -534,9 +534,9 @@ instance MonadInfer m => MonadEval (Judgment s) (InferT s m) where
534534
((), Judgment as cs t) <-
535535
extendMSet
536536
a
537-
$ k @()
538-
((pure . ((`Judgment` mempty) =<< curry one x)) tv)
539-
$ const $ fmap (mempty,)
537+
$ k
538+
(pure (join ((`Judgment` mempty) . curry one x ) tv))
539+
$ const $ fmap (mempty,)
540540
pure $
541541
Judgment
542542
(as `Assumption.remove` x)

0 commit comments

Comments
 (0)