Commit 419c65e0 authored by Merijn Verstraaten's avatar Merijn Verstraaten
Browse files

Add some missing Generic instances.

parent 0c979207
......@@ -192,7 +192,7 @@ instance Text FlagName where
--
newtype FlagAssignment
= FlagAssignment { getFlagAssignment :: Map.Map FlagName (Int, Bool) }
deriving (Binary, NFData)
deriving (Binary, Generic, NFData)
instance Eq FlagAssignment where
(==) (FlagAssignment m1) (FlagAssignment m2)
......
{-# LANGUAGE RecordWildCards, NamedFieldPuns, GeneralizedNewtypeDeriving #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveDataTypeable, DeriveGeneric #-}
-- | Functions to calculate nix-style hashes for package ids.
--
......@@ -315,7 +315,7 @@ renderPackageHashInputs PackageHashInputs{
-- package ids.
newtype HashValue = HashValue BS.ByteString
deriving (Eq, Show, Typeable)
deriving (Eq, Generic, Show, Typeable)
instance Binary HashValue where
put (HashValue digest) = put digest
......
Supports Markdown
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