Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
419c65e0
Commit
419c65e0
authored
Apr 25, 2018
by
Merijn Verstraaten
Browse files
Add some missing Generic instances.
parent
0c979207
Changes
2
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/Types/GenericPackageDescription.hs
View file @
419c65e0
...
...
@@ -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
)
...
...
cabal-install/Distribution/Client/PackageHash.hs
View file @
419c65e0
{-# 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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment