Skip to content

Commit

Permalink
Merge pull request #6763 from vaibhavsagar/percompilerflavor-functor
Browse files Browse the repository at this point in the history
Cabal.Distribution.Compiler: add Functor, Foldable, and Traversable instances for PerCompilerFlavor
  • Loading branch information
phadej authored May 7, 2020
2 parents c9c0cb3 + 78a19a5 commit 72a3962
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Cabal/Distribution/Compiler.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveTraversable #-}

-----------------------------------------------------------------------------
-- |
Expand Down Expand Up @@ -122,7 +125,8 @@ defaultCompilerFlavor = case buildCompilerFlavor of
-- Cabal parses only @ghc-options@ and @ghcjs-options@, others are omitted.
--
data PerCompilerFlavor v = PerCompilerFlavor v v
deriving (Generic, Show, Read, Eq, Typeable, Data)
deriving (Generic, Show, Read, Eq, Typeable, Data, Functor, Foldable
, Traversable)

instance Binary a => Binary (PerCompilerFlavor a)
instance Structured a => Structured (PerCompilerFlavor a)
Expand Down

0 comments on commit 72a3962

Please sign in to comment.