From e9703b0420f547fc1efdf11a735f8939f412127c Mon Sep 17 00:00:00 2001 From: David Chambers Date: Sun, 23 Jan 2022 22:39:39 +0100 Subject: [PATCH] =?UTF-8?q?revert=20breaking=20change=20to=20=E2=80=98comp?= =?UTF-8?q?ose=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/internal/compose_.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/internal/compose_.js b/src/internal/compose_.js index 37e0d84..3d92ae9 100644 --- a/src/internal/compose_.js +++ b/src/internal/compose_.js @@ -1,2 +1,6 @@ -// compose :: (b -> c) -> (a -> b) -> a -> c -export default f => g => x => f (g (x)); +import Z from 'sanctuary-type-classes'; + +import curry2 from './curry2.js'; + +// compose :: Semigroupoid c => c j k -> c i j -> c i k +export default curry2 (Z.compose);