If you are seeking information about file extensions, then you are in the right place at right time.

Details of extension .lhs

On this page, we're going to take a closer look at the .lhs file extension, which is related to Literate Haskell Script. We'll explain what exactly a .lhs fileformat is and how you can use it. If you're interested in learning more details about this type of file, we'll show you where to find them. And if you ever need to convert .lhs files into different formats, we'll give you some tips on how to do that too. Let's see the file format associated with this file extension!


We trust that our website will provide valuable information for you. If you have any questions, just ask!

lhs file - Literate Haskell Script

Literate Haskell Script

The LHS file is a Literate Haskell Script. Haskell is an advanced purely-functional programming language.
Category: Development files
Program name: -
Mime-type: application/octet-stream
Magic bytes (HEX): -
Magic string (ASCII): -
hs, lit
Related extensions:
.mk GNU Makefile
.nmk NMake Makefile
.ti Turing Include File
.lst IAR System List Output Data

The .lhs file extension might not only belong to a single type of file, there could be various kinds that use it. Keep in mind that files with the .lhs extension may contain various content types. If you have helpful information about this extension, write to us!

Could someone have spelled the .lhs file extension wrong?

In our database, we came across the following similar extensions:

.lh LayaAir Sprite3D Data
.lts Labelled Transition System Analyser Project
.lhx Light-O-Rama Product Firmware
.ohs Bink Outbound History Data
.ihs Bink Inbound History Data
.ljs Lossless JPEG Image

The .lhs extension is frequently misused

People sometimes confuse the .lhs filename extension. Based on the searches on our site, here are the most common misspellings from the past year.

lh (1), lys (1), lhx (1), ihs (1), lns (1), lbs (1), mhs (1), hs (1), lgs (1), lsh (1)

Having trouble opening a .lhs file?

If you want to open a .lhs file on your computer, you just need to have the appropriate program installed. Incorrect settings for the .lhs association can trigger this error.

Windows can't open this file:

File: example.lhs

To open this file, Windows needs to know what program you want to use to open it. Windows can go online to look it up automatically, or you can manually select from a list of programs that are installed on your computer.

To change file associations:

  • Right-click a file with the extension whose association you want to change, and then click Open With.
  • In the Open With dialog box, click the program whith which you want the file to open, or click Browse to locate the program that you want.
  • Select the Always use the selected program to open this kind of file check box.

Supported operating systems

Windows Server 2016/2019/2022, Windows 7, Windows 8, Windows 10, Windows 11, Linux, Mac OS X, macOS, iOS, Android