Skip to content

Draft: ttg: Use List instead of Bag in AST for LHsBindsLR

Jacco Krijnen requested to merge wip/jacco/ast into master

Considering that the parser used to create a Bag of binds using a cons-based approach, it can be also done using lists. The operations in the compiler don't really require Bag.

By using lists, there is no dependency on GHC.Data.Bag anymore from the AST.

I have replaced the use of Bag by List in the LHsBindsLR node in the AST (starting point: compiler/Language/Haskell/Syntax/Binds.hs) and then fixed the type errors.

Merge request reports