Skip to content

Commit

Permalink
Import orphan Monoid instance from base-orphans
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanGlScott committed Jun 7, 2015
1 parent f88c735 commit bc65820
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion TypeCompose.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ source-repository head

Library
Hs-Source-Dirs: src
Build-Depends: base<5
Build-Depends: base<5, base-orphans
Exposed-Modules:
Data.Bijection
Data.CxMonoid
Expand Down
8 changes: 1 addition & 7 deletions src/Control/Compose.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
-- For ghc 6.6 compatibility
-- {-# OPTIONS -fglasgow-exts -fallow-undecidable-instances #-}

{-# OPTIONS_GHC -Wall -fno-warn-orphans #-}

----------------------------------------------------------------------
-- |
-- Module : Control.Compose
Expand Down Expand Up @@ -76,6 +74,7 @@ import Control.Arrow
hiding (pure)
#endif

import Data.Orphans ()
import Data.Monoid
import Data.Foldable
import Data.Traversable
Expand Down Expand Up @@ -904,12 +903,7 @@ inConst3 f (Const a) = inConst2 (f a)

---- For Control.Applicative.Endo

#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ < 707
-- deriving instance Monoid o => Monoid (Const o a)
instance Monoid o => Monoid (Const o a) where
mempty = Const mempty
mappend = inConst2 mappend
#endif

-- newtype Endo a = Endo { appEndo :: a -> a }

Expand Down

0 comments on commit bc65820

Please sign in to comment.