google / ghc-source-gen

Library for generating Haskell source files and code fragments.
BSD 3-Clause "New" or "Revised" License
91 stars 29 forks source link

Fix listPromotedTy on lists of one or zero elements. #55

Closed judah closed 5 years ago

judah commented 5 years ago

We need the explicit ' to distinguish from regular lists. For simplicity, just use it for all type-level lists of any length.