elm-lang / elm-make

A build tool for Elm projects
BSD 3-Clause "New" or "Revised" License
175 stars 45 forks source link

Fix empty elm-make output by removing all lazy IO. #22

Closed laszlopandy closed 9 years ago

laszlopandy commented 9 years ago

The issue was that before Generate.hs was using Text.readFile which uses openFile. It was changed to use File.lazyReadTextUtf8 which is also lazy, but uses withFile (which closes the file at the end). Apparently withFile, and closing files in general is not compatible with lazy reads.

evancz commented 9 years ago

Thank you!