From 834507fcf842f4db6a183aa49295b5f6a8267fe1 Mon Sep 17 00:00:00 2001 From: mhmdanas <32234660+mhmdanas@users.noreply.github.com> Date: Sat, 3 Jul 2021 16:08:03 +0300 Subject: [PATCH] Make `Data.Function#apply` point-free --- src/Data/Function.purs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Data/Function.purs b/src/Data/Function.purs index b5aa6813..9292d25a 100644 --- a/src/Data/Function.purs +++ b/src/Data/Function.purs @@ -39,7 +39,7 @@ const a _ = a -- | `($)` which allows parentheses to be omitted in some cases, or as a -- | natural way to apply a chain of composed functions to a value. apply :: forall a b. (a -> b) -> a -> b -apply f x = f x +apply f = f -- | Applies a function to an argument: the reverse of `(#)`. -- |