.hs Haskell source code
Text & source code
| MIME type | text/x-haskell |
|---|---|
| Description | Haskell source code |
| Category | Text & source code |
| Based on | text/plain |
Frequently asked questions
What is a .hs file?
A .hs file is a “Haskell source code” (MIME type text/x-haskell).
How do I open a .hs file?
With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.
How can you tell a genuine .hs file?
No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.hs shows the guessed type.
Which format is .hs based on?
Technically a .hs file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.
Which MIME type belongs to .hs?
The MIME type is text/x-haskell. In the Apache web server: AddType text/x-haskell .hs; in nginx: types { text/x-haskell hs; }.