Opening an LHS File

The LHS file type is primarily associated with GHC.

LHSFile Extension LHS
File extension: LHS
File type:  source code file

What is an LHS file?

LHS files mostly belong to GHC. Literate Haskell Source Files (LHS): This file type is mainly used for Haskell source code written in a literate programming style. In these files, documentation and code are mixed so that human readers get detailed explanations along with functional code.
  • The text portions provide clear narrative explanations.
  • Code sections are distinguishable, often using markers like the Bird style (> at the start of code lines).
  • Haskell compilers, such as those from the GHC system, can extract the code from the surrounding text automatically.
  • Though on rare occasions the same extension might be used for alternative purposes (for example, a Jet Database file), the primary use is Haskell source. For more specialized details on Haskell and its literate style, you might visit Haskell.org.
    FilExt.com note: These files are plain text and can be opened with any text editor, but using one with Haskell syntax support will help you read and edit them more efficiently.

    How to open LHS files

    You need a suitable software like GHC to open an LHS file. Without proper software you will receive a Windows message "How do you want to open this file?" or "Windows cannot open this file" or a similar Mac/iPhone/Android alert. If you cannot open your LHS file correctly, try to right-click or long-press the file. Then click "Open with" and choose an application. You can also display a LHS file directly in the browser:. Just drag the file onto this browser window and drop it.

    Online LHS Text Viewer

    Choose your .lhs file to view

    Read our privacy guarantee in Filext’s terms and privacy policy

    Please allow ads on our site

    This helps us keep our servers running. Then re-upload your file to view it.

    Click here to see how to disable the ad blocker for filext.com

    How to extract texts from LHS files or capture a screenshot to PDF, JPG, DOCX, TXT, ...

    You can extract texts from LHS file or capture a preview screenshot using our online LHS file viewer:
    1. To do this, click the button "Choose your .lhs file to view" on this page.
    2. After your file is opened in browser,
    3. click "Save as..." in the menu.
    4. Then choose the file format (e.g. JPG, PDF, DOCX, TXT, ...) you want.
    5. Your file will be converted and downloaded.

    Programs that open and convert LHS files:

    1. GHC
      See the previous paragraphs to learn more about the main application. LHS files are often referred to as GHC developers because this type of file is primarily created or used by this software.
    2. Literate Haskell Source File

    LHS file format:

    A file format defines how the data in the file is structured. The first characters in a file identify the file format, for example, HTML files start with the bytes <html>. File extension, signature and file format must match; otherwise errors will occur when the file is opened. If there are problems opening a file, you must first determine the file format used. Our analysis of the LHS files produces the following result:

    The LHS file extension is not widely used. Such a file includes different formats for the applicable programs. However, the following two file formats are common:

    All the rest of the LHS files (61%) have different formats, often e.g. Spring. They are often associated with intro, setup, programming, jigsawdoku, lecture or review. Drag & drop your file here to see the file format and a preview of your LHS file!

    Technical Data for LHS File Extension

    File classification:
    Developer
    Related files:
    hs, lhs, hs-boot, cabal, jet, ihs, txt, ldb

    an lhs source code file is a special file format and should only be edited and saved with the appropriate software.

    How to solve problems with LHS files

    • Associate the LHS file extension with the correct application.
    • Update your software that should actually open source code files. Because only the current version supports the latest LHS file format. Search, therefore, e.g. on the manufacturer website after an available GHC update.
    • To make sure that your LHS file is not corrupted or virus-infected, get the file again and scan it with Google's virustotal.com.
    • Click here to open your .LHS file online - secure, fast, and no downloads needed.
    Drop here
    View another file
    LHS file viewer LHS file description