Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

[CDEC-485] Move Block data types from core to chain package #3351

Merged
merged 5 commits into from
Aug 7, 2018

Conversation

ruhatch
Copy link
Contributor

@ruhatch ruhatch commented Aug 3, 2018

Description

We want to reduce the size of the core package and put everything related to blocks and chains in the chain package. This first PR clears the way for that and move the Pos.Core.Block modules across.

Linked issue

CDEC-485

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)
  • 🏭 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

  • I have read the style guide document, and my code follows the code style of this project.
  • If my code deals with exceptions, it follows the guidelines.
  • I have updated any documentation accordingly, if needed. Documentation changes can be reflected in opening a PR on cardanodocs.com, amending the inline Haddock comments, any relevant README file or one of the document listed in the docs directory.

Testing checklist

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

QA Steps

Screenshots (if available)

Copy link
Contributor

@mhuesch mhuesch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - seems like there's just stylish-haskell and hlint complaints.

Pos.Core.Block.Main.Instances
Pos.Core.Block.Main.Types
Pos.Core.Block.Union.ComponentBlock
Pos.Core.Block.Union.Types
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋

, feedPM
, feedPMC
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ 👍

, jlAdoptedBlock
) where

import Formatting (sformat)
Copy link
Contributor

@intricate intricate Aug 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a huge deal, but this should be more like:

import           Universum

import           Formatting (sformat)

@@ -54,7 +54,7 @@ instance Bi MainProof where
decode <*>
decode

instance SafeCopy SscProof => SafeCopy MainProof where
Copy link
Contributor

@intricate intricate Aug 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this just a redundant constraint or something?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old code base used these to side step orphan instance problems.

Copy link
Contributor

@intricate intricate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@@ -54,7 +54,7 @@ instance Bi MainProof where
decode <*>
decode

instance SafeCopy SscProof => SafeCopy MainProof where
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old code base used these to side step orphan instance problems.

Copy link
Member

@erikd erikd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just need to appease the hlint and stylish-haskell gods.

@ruhatch ruhatch merged commit a596130 into develop Aug 7, 2018
@ruhatch ruhatch deleted the ruhatch/CDEC-485 branch August 7, 2018 23:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants