4.4. Meaningful file suffixes

File names with “meaningful” suffixes (e.g., .lhs or .o) cause the “right thing” to happen to those files.

.hs

A Haskell module.

.lhs

A “literate Haskell” module.

.hi

A Haskell interface file, probably compiler-generated.

.hc

Intermediate C file produced by the Haskell compiler.

.c

A C file not produced by the Haskell compiler.

.ll

An llvm-intermediate-language source file, usually produced by the compiler.

.bc

An llvm-intermediate-language bitcode file, usually produced by the compiler.

.s

An assembly-language source file, usually produced by the compiler.

.o

An object file, produced by an assembler.

Files with other suffixes (or without suffixes) are passed straight to the linker.