Unverified Commit 72a3962a authored by Oleg Grenrus's avatar Oleg Grenrus Committed by GitHub

Merge pull request #6763 from vaibhavsagar/percompilerflavor-functor

Cabal.Distribution.Compiler: add Functor, Foldable, and Traversable instances for PerCompilerFlavor
parents c9c0cb35 78a19a58
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveTraversable #-}
-----------------------------------------------------------------------------
-- |
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment