Skip to content

AST parse generating wrong code #141

@Chaitanya-nair

Description

@Chaitanya-nair

Hi, with normal stack build, the plugin works good
But, when i do a parseModule, typeCheck and load the module with ghc, the generated code looks like this
uncons = \case [] -> Nothing a : b -> Just (Data.Record.Anon.Simple.applyPending Data.Record.Anon.Simple.insert #head a Data.Record.Anon.Simple.insert #tail b Data.Record.Anon.Simple.empty)

whereas , it should be this
uncons = \case [] -> Nothing a : b -> Just (Data.Record.Anon.Simple.applyPending $ Data.Record.Anon.Simple.insert #head a $ Data.Record.Anon.Simple.insert #tail b Data.Record.Anon.Simple.empty)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions