Skip to content

Better hadrian error when file not found in dependencies file

If hadrian fails to find a Haskell file's dependencies then you get this error:

No dependencies found for file '_build/stage1/libraries/ghc-internal/build/GHC/Internal/ClosureTypes.o'

This happened to me because I moved a module without renaming it at the top of the file -- silly.

It would be nice if hadrian at least told us something like (I have a commit for this):

No dependencies found for file '_build/stage1/libraries/ghc-internal/build/GHC/Internal/ClosureTypes.o' in '_build/stage1/libraries/ghc-internal/.dependencies'

Then you can look at the file spot the typo and fix it.

It would be even better if hadrian gave us a custom error if a module's path doesn't match its name but maybe that's asking for too much.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information