evancz/Elm — pull request #288 by aforemny (2013-10-09 11:18:31+00:00)
Title: Relax mtime test in alreadyCompiled

If an elmi or elmo file is created at the same time as the elm file, alreadyCompiled always returns False. In NixOS this is problematic since all files in the Nix store, a safe place to store packages, all files have the same mtime (1. Jan 1970). So for the Nix build support [1] we have to relax this test by allowing that source and output file may have the same mtime.

While this can be easily patched for this particular use case, I opt for this change to be in upstream.

[1] https://github.com/aforemny/nixpkgs/tree/elm-build-support