Bug#499328: Heuristics

2014-03-07 Thread Christoph Biedl
tags 499328 confirmed upstream moreinfo thanks Gwern Branwen wrote... There are a couple heuristics that 'file' could use to detect Haskell files: (...) I like that list, it should provide enough stuff to create good patterns. Since my knowledge of Haskell is rather limited (but I wrote some

Bug#499328: Heuristics

2014-03-07 Thread Gwern Branwen
On Fri, Mar 7, 2014 at 6:55 AM, Christoph Biedl christ...@biedl.ath.cx wrote: Since my knowledge of Haskell is rather limited (but I wrote some programs in Miranda many years ago), can you recommend a package of very typical Haskell sources (there is no such thing as typical sources, I know)

Bug#499328: Heuristics

2010-04-26 Thread Gwern Branwen
There are a couple heuristics that 'file' could use to detect Haskell files: - Java files always have {}s in them*. Haskell files may have {}s, but mostly don't. - Java 'import' statements end in ';'. Haskell 'import' statements are allowed to end in in ';' as part of the alternate syntax, but in