Сryptocurrency development analysis

Description

This PR reunites orphan instances (where possible) in `cardano-sl`.

## Linked issue

[https://iohk.myjetbrains.com/youtrack/issue/CDEC-456](https://iohk.myjetbrains.com/youtrack/issue/CDEC-456)
## Type of change

— [ ] 🐞 Bug fix (non-breaking change which fixes an issue)
— [ ] 🛠 New feature (non-breaking change which adds functionality)
— [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to change)
— [x] 🏭 Refactoring that does not change existing functionality but does improve things like code readability, structure etc
— [ ] 🔨 New or improved tests for existing code
— [ ] ⛑ git-flow chore (backport, hotfix, etc)

## Developer checklist

— [x] I have read the [style guide](https://github.com/input-output-hk/cardano-sl/blob/develop/docs/style-guide.md) document, and my code follows the code style of this project.
— [ ] If my code deals with exceptions, it follows the [guidelines](https://github.com/input-output-hk/cardano-sl/blob/develop/docs/exceptions.md).
— [ ] I have updated any documentation accordingly, if needed. Documentation changes can be reflected in opening a PR on [cardanodocs.com](https://github.com/input-output-hk/cardanodocs.com), amending the inline [Haddock](https://www.haskell.org/haddock/) comments, any relevant README file or one of the document listed in the [docs](https://github.com/input-output-hk/cardano-sl/tree/develop/docs) directory.

## Testing checklist

— [ ] I have added tests to cover my changes.
— [x] All new and existing tests passed.

## QA Steps

## Screenshots (if available)

You can view, comment on, or merge this pull request online at:

https://github.com/input-output-hk/cardano-sl/pull/3283

— Commit Summary —

* [CDEC-456] Reunite orphans from Pos.Web.Server
* [CDEC-456] Reunite orphans from Pos.Aeson.Types
* [CDEC-456] Reunite orphans from Pos.Communication.Message
* [CDEC-456] Remove -fno-warn-orphans from Bench.Pos.Diffusion.BlockDownload
* [CDEC-456] Remove -fno-warn-orphans from Test.Pos.Helpers
* [CDEC-456] Reunite orphans from Pos.Recovery.Instance

— File Changes —

M client/src/Pos/Client/Txp/Network.hs (1)
M client/src/Pos/Client/Update/Network.hs (1)
M core/cardano-sl-core.cabal (1)
M core/src/Pos/Core/Slotting/EpochIndex.hs (11)
M generator/src/Pos/Generator/Block/Logic.hs (1)
M infra/cardano-sl-infra.cabal (1)
M infra/src/Pos/Infra/Communication/Protocol.hs (2)
M infra/src/Pos/Infra/Communication/Relay/Logic.hs (20)
M infra/src/Pos/Infra/Communication/Types/Protocol.hs (8)
M infra/src/Pos/Infra/Communication/Types/Relay.hs (230)
M infra/src/Pos/Infra/DHT/Workers.hs (14)
M infra/src/Pos/Infra/Diffusion/Subscription/Common.hs (29)
M infra/src/Pos/Infra/Diffusion/Subscription/Dns.hs (8)
M infra/src/Pos/Infra/Recovery/Info.hs (62)
A infra/src/Pos/Infra/Recovery/Types.hs (13)
M infra/src/Pos/Infra/Slotting/Util.hs (18)
M lib/bench/Bench/Pos/Diffusion/BlockDownload.hs (1)
M lib/cardano-sl.cabal (7)
D lib/src/Pos/Aeson.hs (9)
D lib/src/Pos/Aeson/Types.hs (17)
D lib/src/Pos/Communication/Message.hs (312)
M lib/src/Pos/Context/Context.hs (2)
M lib/src/Pos/Diffusion/Full/Block.hs (1)
M lib/src/Pos/Diffusion/Full/Delegation.hs (1)
M lib/src/Pos/Diffusion/Full/Ssc.hs (1)
M lib/src/Pos/Diffusion/Full/Txp.hs (1)
M lib/src/Pos/Diffusion/Full/Update.hs (1)
M lib/src/Pos/Launcher/Runner.hs (1)
M lib/src/Pos/Logic/Full.hs (2)
M lib/src/Pos/Network/Block/Retrieval.hs (2)
M lib/src/Pos/Network/Block/Types.hs (25)
M lib/src/Pos/Network/Block/WorkMode.hs (7)
M lib/src/Pos/Recovery.hs (1)
M lib/src/Pos/Recovery/Instance.hs (52)
M lib/src/Pos/Recovery/Types.hs (8)
M lib/src/Pos/Web/Server.hs (12)
M lib/src/Pos/Web/Types.hs (6)
M lib/src/Pos/Worker.hs (1)
M lib/src/Test/Pos/Helpers.hs (2)
M networking/examples/Discovery.hs (8)
M networking/src/Node/Message/Class.hs (21)
M pkgs/default.nix (4)
M ssc/cardano-sl-ssc.cabal (1)
M ssc/src/Pos/Ssc/Message.hs (17)
M wallet/test/Test/Pos/Wallet/Web/Mode.hs (2)

— Patch Links —

https://github.com/input-output-hk/cardano-sl/pull/3283.patch
https://github.com/input-output-hk/cardano-sl/pull/3283.diff

Добавить комментарий