diff options
author | Ömer Sinan Ağacan <omeragacan@gmail.com> | 2020-02-28 09:52:04 +0300 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-02-29 05:12:06 -0500 |
commit | 04d30137771a6cf8a18fda1ced25f78d0b2eb204 (patch) | |
tree | a69c36e0827b1374d3cb66bafd518a2c54df0876 /testsuite/tests/ghci.debugger/scripts/all.T | |
parent | 34c7d23074f47c720b5722ca14d78a34213eabb6 (diff) | |
download | haskell-04d30137771a6cf8a18fda1ced25f78d0b2eb204.tar.gz |
Simplify IfaceIdInfo type
IfaceIdInfo type is confusing: there's practically no difference between
`NoInfo` and `HasInfo []`. The comments say NoInfo is used when
-fomit-interface-pragmas is enabled, but we don't need to distinguish
`NoInfo` from `HasInfo []` in when reading the interface so the
distinction is not important.
This patch simplifies the type by removing NoInfo. When we have no info
we use an empty list.
With this change we no longer read the info list lazily when reading an
IfaceInfoItem, but when reading an IfaceId the ifIdInfo field is
read lazily, so I doubt this is going to be a problem.
Diffstat (limited to 'testsuite/tests/ghci.debugger/scripts/all.T')
0 files changed, 0 insertions, 0 deletions