Skip to content

graftExpr produces bad output for list literals #1540

@isovector

Description

@isovector
module Test where

import Data.Generics
import Development.IDE.GHC.Compat (GenLocated(L), Located)


data Blah = Blah (Located [Located String])

blah :: Located Blah
blah = L _ (Blah (L _ [_, _]))

refining the hole at [_, produces the output

blah = L _ (Blah (L _ [L _ _ _]))

where the , got swallowed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: wingmantype: 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