From f72cc987cbb29a2aef0852b72ae15becc54d5a66 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Tue, 5 Aug 2008 18:23:32 +0000 Subject: [PATCH] The [] definition has moved to ghc-prim --- GHC/Base.lhs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/GHC/Base.lhs b/GHC/Base.lhs index 5e5d6bb..6c9333b 100644 --- a/GHC/Base.lhs +++ b/GHC/Base.lhs @@ -99,7 +99,7 @@ import GHC.Prim import {-# SOURCE #-} GHC.Err infixr 9 . -infixr 5 ++, : +infixr 5 ++ infix 4 ==, /=, <, <=, >=, > infixr 3 && infixr 2 || @@ -274,9 +274,8 @@ class Monad m where %********************************************************* \begin{code} -data [] a = [] | a : [a] -- do explicitly: deriving (Eq, Ord) - -- to avoid weird names like con2tag_[]# - +-- do explicitly: deriving (Eq, Ord) +-- to avoid weird names like con2tag_[]# instance (Eq a) => Eq [a] where {-# SPECIALISE instance Eq [Char] #-} -- 1.7.10.4