From 1ca9160809ca211106c085f2b54a6be30863e279 Mon Sep 17 00:00:00 2001
From: Michal Terepeta
Date: Mon, 20 Jun 2011 21:05:11 +0200
Subject: [PATCH] Fix a comment about splitAt (fixes #1182).
---
GHC/List.lhs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/GHC/List.lhs b/GHC/List.lhs
index ff8593c..65975e9 100644
--- a/GHC/List.lhs
+++ b/GHC/List.lhs
@@ -336,7 +336,8 @@ drop :: Int -> [a] -> [a]
-- > splitAt 0 [1,2,3] == ([],[1,2,3])
-- > splitAt (-1) [1,2,3] == ([],[1,2,3])
--
--- It is equivalent to @('take' n xs, 'drop' n xs)@.
+-- It is equivalent to @('take' n xs, 'drop' n xs)@ when @n@ is not @_|_@
+-- (@splitAt _|_ xs = _|_@).
-- 'splitAt' is an instance of the more general 'Data.List.genericSplitAt',
-- in which @n@ may be of any integral type.
splitAt :: Int -> [a] -> ([a],[a])
--
1.7.5.3