Skip to content
This repository was archived by the owner on May 24, 2018. It is now read-only.

Commit 5d17cd9

Browse files
committed
Remove redundant swap definition
1 parent 0378025 commit 5d17cd9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Control/Arrow.purs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Control.Arrow where
22

3-
import Data.Tuple (Tuple(..))
3+
import Data.Tuple (Tuple(..), swap)
44

55
class Arrow a where
66
arr :: forall b c. (b -> c) -> a b c
@@ -13,9 +13,6 @@ instance arrowFunction :: Arrow (->) where
1313
second :: forall a b c d. (Category a, Arrow a) => a b c -> a (Tuple d b) (Tuple d c)
1414
second f = arr swap >>> first f >>> arr swap
1515

16-
swap :: forall a b. Tuple a b -> Tuple b a
17-
swap (Tuple x y) = Tuple y x
18-
1916
infixr 3 ***
2017
infixr 3 &&&
2118

0 commit comments

Comments
 (0)