stylish-haskell icon indicating copy to clipboard operation
stylish-haskell copied to clipboard

[bug] module_header: Export list is sorted but individual elements on that list are not sorted

Open EncodePanda opened this issue 3 years ago • 0 comments

Example in https://github.com/input-output-hk/ouroboros-network/blob/master/ouroboros-consensus-cardano/src/Ouroboros/Consensus/Cardano/Block.hs#L19

Example

Input

module Ouroboros.Consensus.Cardano.Block (
     HardForkBlock (
        BlockByron
      , BlockShelley
      , BlockAllegra
      , BlockMary
      )
   , CardanoBlock) where

Expected

module Ouroboros.Consensus.Cardano.Block (
     CardanoBlock
   , HardForkBlock (BlockAllegra, BlockByron, BlockMary, BlockShelley)
) where

Actual

module Ouroboros.Consensus.Cardano.Block (
     CardanoBlock
   , HardForkBlock (BlockByron, BlockShelley, BlockAllegra, BlockMary)
) where

EncodePanda avatar Apr 02 '21 16:04 EncodePanda