Haskell

Analyze Haskell projects with FOSSA via Cabal or Stack using the FOSSA CLI.

1 min readUpdated Jul 9, 2026

Overview

FOSSA supports Haskell projects through cabal and stack. Haskell projects are analyzed with the FOSSA CLI, which resolves dependencies from within your build environment.

Tool support

ToolQuick Import (app.fossa.com)CLI (fossa-cli)
Haskell (cabal)N/A*.cabal
Haskell (stack)N/Astack.yaml

Analyzing with the CLI

The Haskell build-tool ecosystem consists of two major toolchains: cabal-the-tool and stack.

Install the latest release of fossa-cli:

Shell
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash

Then run fossa analyze from your repository's root directory to analyze your Haskell project with cabal or stack. The CLI selects a strategy per project; each strategy's detection details are linked in the table below.

Analysis strategies

StrategyDirect DepsTransitive DepsEdgesContainer Scanning
cabal
stack
© 2026 FOSSA, Inc.support@fossa.com