summaryrefslogtreecommitdiff
path: root/ghc/lib/std/PrelSplit.lhs
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/lib/std/PrelSplit.lhs')
-rw-r--r--ghc/lib/std/PrelSplit.lhs9
1 files changed, 9 insertions, 0 deletions
diff --git a/ghc/lib/std/PrelSplit.lhs b/ghc/lib/std/PrelSplit.lhs
new file mode 100644
index 0000000000..7fd3d6b51e
--- /dev/null
+++ b/ghc/lib/std/PrelSplit.lhs
@@ -0,0 +1,9 @@
+\begin{code}
+module PrelSplit( Splittable( split ) ) where
+
+-- The Splittable class for the linear implicit parameters
+-- Can't put it in PrelBase, because of the use of (,)
+
+class Splittable t where
+ split :: t -> (t,t)
+\end{code}