@@ -42,7 +42,7 @@ module Prelude where
42 \ return n.toString();\
42 \ return n.toString();\
43 \}" :: Number -> String
43 \}" :: Number -> String
45− instance Prelude.Show Number where
45+ instance Show Number where
46 show = showNumber
46 show = showNumber
48 class Read a where
48 class Read a where
@@ -439,22 +439,22 @@ module Data.Maybe where
439 maybe _ f (Just a) = f a
439 maybe _ f (Just a) = f a
441 fromMaybe :: forall a. a -> Maybe a -> a
441 fromMaybe :: forall a. a -> Maybe a -> a
442− fromMaybe a = maybe a (Prelude.id :: forall a. a -> a)
442+ fromMaybe a = maybe a (id :: forall a. a -> a)
444− instance Prelude.Monad Maybe where
444+ instance Monad Maybe where
445 return = Just
445 return = Just
446 (>>=) m f = maybe Nothing f m
446 (>>=) m f = maybe Nothing f m
448− instance Prelude.Applicative Maybe where
448+ instance Applicative Maybe where
449 pure = Just
449 pure = Just
450 (<*>) (Just fn) x = fn <$> x
450 (<*>) (Just fn) x = fn <$> x
451 (<*>) Nothing _ = Nothing
451 (<*>) Nothing _ = Nothing
453− instance Prelude.Functor Maybe where
453+ instance Functor Maybe where
454 (<$>) fn (Just x) = Just (fn x)
454 (<$>) fn (Just x) = Just (fn x)
455 (<$>) _ _ = Nothing
455 (<$>) _ _ = Nothing
457− instance (Show a) => Prelude.Show (Maybe a) where
457+ instance (Show a) => Show (Maybe a) where
458 show (Just x) = "Just " ++ (show x)
458 show (Just x) = "Just " ++ (show x)
459 show Nothing = "Nothing"
459 show Nothing = "Nothing"
@@ -468,20 +468,20 @@ module Data.Either where
468 either f _ (Left a) = f a
468 either f _ (Left a) = f a
469 either _ g (Right b) = g b
469 either _ g (Right b) = g b
471− instance Prelude.Monad (Either e) where
471+ instance Monad (Either e) where
472 return = Right
472 return = Right
473 (>>=) = either (\e _ -> Left e) (\a f -> f a)
473 (>>=) = either (\e _ -> Left e) (\a f -> f a)
475− instance Prelude.Applicative (Either e) where
475+ instance Applicative (Either e) where
476 pure = Right
476 pure = Right
477 (<*>) (Left e) _ = Left e
477 (<*>) (Left e) _ = Left e
478 (<*>) (Right f) r = f <$> r
478 (<*>) (Right f) r = f <$> r
480− instance Prelude.Functor (Either a) where
480+ instance Functor (Either a) where
481 (<$>) _ (Left x) = Left x
481 (<$>) _ (Left x) = Left x
482 (<$>) f (Right y) = Right (f y)
482 (<$>) f (Right y) = Right (f y)
484− instance (Show a, Show b) => Prelude.Show (Either a b) where
484+ instance (Show a, Show b) => Show (Either a b) where
485 show (Left x) = "Left " ++ (show x)
485 show (Left x) = "Left " ++ (show x)
486 show (Right y) = "Right " ++ (show y)
486 show (Right y) = "Right " ++ (show y)
@@ -651,17 +651,17 @@ module Data.Array where
651 all _ [] = true
651 all _ [] = true
652 all p (a:as) = p a && all p as
652 all p (a:as) = p a && all p as
654− instance (Prelude.Show a) => Prelude.Show [a] where
654+ instance (Show a) => Show [a] where
655 show xs = "[" ++ joinWith (map show xs) "," ++ "]"
655 show xs = "[" ++ joinWith (map show xs) "," ++ "]"
657− instance Prelude.Functor [] where
657+ instance Functor [] where
658 (<$>) = map
658 (<$>) = map
660− instance Prelude.Monad [] where
660+ instance Monad [] where
661 return = singleton
661 return = singleton
662 (>>=) = concatMap
662 (>>=) = concatMap
664− instance Prelude.Alternative [] where
664+ instance Alternative [] where
665 empty = []
665 empty = []
666 (<|>) = concat
666 (<|>) = concat
@@ -680,7 +680,7 @@ module Data.Tuple where
681 data Tuple a b = Tuple a b
681 data Tuple a b = Tuple a b
683− instance (Prelude.Show a, Prelude.Show b) => Prelude.Show (Tuple a b) where
683+ instance (Show a, Show b) => Show (Tuple a b) where
684 show (Tuple a b) = "Tuple(" ++ show a ++ ", " ++ show b ++ ")"
684 show (Tuple a b) = "Tuple(" ++ show a ++ ", " ++ show b ++ ")"
686 curry :: forall a b c. (Tuple a b -> c) -> a -> b -> c
686 curry :: forall a b c. (Tuple a b -> c) -> a -> b -> c
@@ -934,6 +934,8 @@ module Math where
935module Control.Monad.Eff where
935module Control.Monad.Eff where
937 foreign import data Eff :: # ! -> * -> *
939 foreign import data Eff :: # ! -> * -> *
939 foreign import retEff "function retEff(a) {\
941 foreign import retEff "function retEff(a) {\
@@ -956,7 +958,7 @@ module Control.Monad.Eff where
956 \ return f();\
958 \ return f();\
957 \}" :: forall a. Pure a -> a
959 \}" :: forall a. Pure a -> a
959− instance Prelude.Monad (Eff e) where
961+ instance Monad (Eff e) where
960 return = retEff
962 return = retEff
961 (>>=) = bindEff
963 (>>=) = bindEff
@@ -1091,7 +1093,7 @@ module Debug.Trace where
1092 \}" :: forall r. String -> Eff (trace :: Trace | r) {}
1094 \}" :: forall r. String -> Eff (trace :: Trace | r) {}
1094− print :: forall a r. (Prelude.Show a) => a -> Eff (trace :: Trace | r) {}
1096+ print :: forall a r. (Show a) => a -> Eff (trace :: Trace | r) {}
1095 print o = trace (show o)
1097 print o = trace (show o)
1097module Control.Monad.ST where
1099module Control.Monad.ST where