From: Ian Lynagh Date: Tue, 5 Aug 2008 18:23:32 +0000 (+0000) Subject: The [] definition has moved to ghc-prim X-Git-Tag: 6_10_branch_has_been_forked~80 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=f72cc987cbb29a2aef0852b72ae15becc54d5a66;p=ghc-base.git The [] definition has moved to ghc-prim --- 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] #-}