hs
What is a .hs file?
text/x-haskell
Haskell (.hs) source files contain programs in the pure functional Haskell language, typically compiled with GHC.
How to use a .hs file
Use example .hs files to exercise Haskell highlighters, HLS, and parsers on idiomatic hello-world and fold/Maybe snippets.
Download example .hs files
- Haskell HelloIdiomatic Haskell hello-world for GHC / HLS fixtures.
- Haskell FoldHaskell foldl snippet for AST and highlighter tests.
- Haskell MaybeHaskell Maybe pattern matching — realistic small module.
- Haskell — Intentionally InvalidIntentionally invalid Haskell (unterminated string) for parser failure tests.
- Haskell Typeclass SAMPLEHaskell Typeclass SAMPLE for Wave G language-tooling coverage.