There are quite a few Haskell compilers/interpretters, and on Windows they all want to be the default handler for .hs and .lhs files. This document prescribes how all the installers should work with regards to file paths. Hopefully this document can reach a concensus.
The Haskell file types are given as .hs and .lhs. They icon used shall be the top line of this image. These icons are available in the Hugs CVS repository in Windows .ico format (where?).
The actions available for each compiler shall be:
- Open in <interpretter>
Where interpretter is an interactive environment, in the style of Hugs/GHCi/Yhe.
An additional action shall be available, Open, which will be the default. This will cause the Haskell file to open in an appropriate editor. The way an appropriate editor is determined is:
- If prior to installing the compiler there is a default document handler for .hs/.lhs files, which is not one of the compilers adhereing to this standard, then that will be used.
- If multiple compilers are installed, then each will give its own behaviour for the Open command. The following is a priority list of what the Open command should do - compilers should overwrite the existing setting if bound to a lower priority compiler, but not if bound to a higher priority one:
- WinHugs, opens using the sophisticated editor facilities, including auto-detection of appropriate editors and a configurable option
- GHCi, open using Notepad, unless someone can think of a better default.
i.e. installing WinHugs will overwrite GHC's configured Open command, installing GHC will not overwrite WinHugs' setting.
Not much point in doing this section until everyone agrees on the end user behaviour!