The stb-image package on hackage has carriage returns (^M) at the end of some lines.  This confused hlibrary.mk from the Debian haskell-devscripts.  Are these characters legal in a .cabal file?  I haven't found any mention of valid line terminators.  If not, then I'll work with the author of stb-image, otherwise I'll fix the Debian tool.