-{-# LANGUAGE CPP, NoImplicitPrelude #-}
+{-# LANGUAGE CPP, NoImplicitPrelude, DeriveRepresentable #-}
-----------------------------------------------------------------------------
-- |
#ifdef __GLASGOW_HASKELL__
import GHC.Base
+import GHC.Generics (Representable0)
#endif
#ifdef __NHC__
-- error monad can be built using the 'Data.Either.Either' type.
data Maybe a = Nothing | Just a
- deriving (Eq, Ord)
+ deriving (Eq, Ord, Representable0)
instance Functor Maybe where
fmap _ Nothing = Nothing