Fix and enforce validation of header for .hie files
authorZubin Duggal <zubin@cmi.ac.in>
Thu, 23 May 2019 11:43:33 +0000 (17:13 +0530)
committerMatthew Pickering <matthewtpickering@gmail.com>
Fri, 31 May 2019 06:34:57 +0000 (07:34 +0100)
commit0e0d87da2fd25e2fb255417fcb15f93f508c1250
tree38966454a6f12a01773c2c92fe7437e3fb37095b
parent495a65cbc48d5209f30fd4248fc11ab06b05d4c3
Fix and enforce validation of header for .hie files

Implements #16686

The files version is automatically generated from the current GHC
version in the same manner as normal interface files.

This means that clients can first read the version and then decide how
to read the rest of the file.
compiler/hieFile/HieAst.hs
compiler/hieFile/HieBin.hs
compiler/hieFile/HieDebug.hs
compiler/hieFile/HieTypes.hs
compiler/main/HscMain.hs
utils/haddock