.lhs LHS source code

Text & source code

MIME typetext/x-literate-haskell
DescriptionLHS source code
AcronymLHS – Literate Haskell source code
CategoryText & source code
Based ontext/plain

Frequently asked questions

What is a .lhs file?

A .lhs file is a “LHS source code” (MIME type text/x-literate-haskell). LHS stands for Literate Haskell source code.

How do I open a .lhs 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 .lhs 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.lhs shows the guessed type.

Which format is .lhs based on?

Technically a .lhs 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 .lhs?

The MIME type is text/x-literate-haskell. In the Apache web server: AddType text/x-literate-haskell .lhs; in nginx: types { text/x-literate-haskell lhs; }.

Nearby entries