This bug is confirmed by the man page for file(1), which on Ubuntu 10.10 was last modified 2008-10-09. The text implies that the issue might be fixed manually, but that recompilation is required. The page also suggests, however, that reliable categorization of text files, specifically program source texts, remains something of an open problem.
Was able to reproduce this bug. Also noticed that file(1) gives different answers for different *.hs files, e.g.
ASCII Java program text, with CRLF line terminators
and
Lisp/Scheme program text
For two different Haskell source files suffixed with '.hs'.
This bug is confirmed by the man page for file(1), which on Ubuntu 10.10 was last modified 2008-10-09. The text implies that the issue might be fixed manually, but that recompilation is required. The page also suggests, however, that reliable categorization of text files, specifically program source texts, remains something of an open problem.
Was able to reproduce this bug. Also noticed that file(1) gives different answers for different *.hs files, e.g.
ASCII Java program text, with CRLF line terminators
and
Lisp/Scheme program text
For two different Haskell source files suffixed with '.hs'.