Skip to content

GADT syntax converter throws out all datatype comments #3516

@uhbif19

Description

@uhbif19

Your environment

haskell-language-server version: 1.8.0.0 (GHC: 8.10.7)

VS Code

Steps to reproduce

Run rewrite to GADT action on:

data AuctionTerms = AuctionTerms
  { -- | What is being sold at the auction?
    auctionLot :: !AssetClass
  }

Expected behaviour

Got:

data AuctionTerms where
  AuctionTerms :: {
     -- | What is being sold at the auction?
     auctionLot :: !AssetClass
  } -> AuctionTerms

Actual behaviour

Got:

data AuctionTerms where
  AuctionTerms :: {auctionLot :: !AssetClass} -> AuctionTerms

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: hls-gadt-pluginIssues related to the hls-gadt-plugin, such as converting a datatype to GADT syntaxtype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions