Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

LaunchDarkly sample Haskell application

We've built a simple console application that demonstrates how LaunchDarkly's SDK works.

Below, you'll find the build procedure. For more comprehensive instructions, you can visit your Quickstart page or the Haskell reference guide.

Build instructions

  1. Edit Main.hs and set the value of sdkKey to your LaunchDarkly SDK key. If there is an existing boolean feature flag in your LaunchDarkly project that you want to evaluate, set featureFlagKey to the flag key.
sdkKey :: Text
sdkKey = "1234567890abcdef"

featureFlagKey :: Text
featureFlagKey = "my-flag"
  1. On the command line, run stack run

You should receive the message "Feature flag '' is <true/false> for this user".