Skip to content

Instantly share code, notes, and snippets.

@snoyberg
Last active October 9, 2015 07:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snoyberg/aa6ce5247f9a0d1b5f95 to your computer and use it in GitHub Desktop.
Save snoyberg/aa6ce5247f9a0d1b5f95 to your computer and use it in GitHub Desktop.
main :: IO ()
main = putStrLn "dev"
name: foo
version: 0.1.0.0
build-type: Simple
cabal-version: >=1.10
flag dev
manual: True
default: False
description: foo
executable foo
if flag(dev)
main-is: Devel.hs
else
main-is: Main.hs
build-depends: base
default-language: Haskell2010
main :: IO ()
main = putStrLn "not dev"
import Distribution.Simple
main = defaultMain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment