2 {-# LANGUAGE StandaloneDeriving #-}
3 {-# OPTIONS_GHC -fno-warn-orphans #-}
5 module Hcompta.Lib.Applicative where
7 #if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ < 708
8 import Control.Applicative (Const(..))
9 import Data.Monoid (Monoid(..))
10 import GHC.Show (Show)
12 deriving instance Show x => Show (Const x y)
14 #if __GLASGOW_HASKELL__ < 707
15 instance Monoid x => Monoid (Const x y) where
17 mappend (Const x0) (Const x1) = Const (mappend x0 x1)