From 6c60947dd50385379bc7fae354cea844456b3a84 Mon Sep 17 00:00:00 2001 From: Max Smirnov Date: Tue, 6 Sep 2022 20:18:45 +0300 Subject: [PATCH] Explicitly use join --- src/Data/List.purs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Data/List.purs b/src/Data/List.purs index 38f9036..8046afd 100644 --- a/src/Data/List.purs +++ b/src/Data/List.purs @@ -372,7 +372,7 @@ reverse = go Nil -- | -- | Running time: `O(n)`, where `n` is the total number of elements. concat :: forall a. List (List a) -> List a -concat = (_ >>= identity) +concat = join -- | Apply a function to each element in a list, and flatten the results -- | into a single, new list.