Skip to content

Instantly share code, notes, and snippets.

@LeifW
Created July 23, 2018 05:43
Show Gist options
  • Save LeifW/380ad4da9873ec455723de8a96adc0e9 to your computer and use it in GitHub Desktop.
Save LeifW/380ad4da9873ec455723de8a96adc0e9 to your computer and use it in GitHub Desktop.
running a cabal test
module Main(main, a) where
a = "foo"
main = putStrLn a
module MainSpec where
import Main (a)
main :: IO ()
main = putStrLn a
name: Thing
version: 0.1.0.0
license: BSD3
license-file: LICENSE
author: Leif Warner
maintainer: [email protected]
build-type: Simple
extra-source-files: ChangeLog.md
cabal-version: >=1.10
executable Thing
main-is: Main.hs
build-depends: base >=4.11 && <4.12
default-language: Haskell2010
test-suite spec
type: exitcode-stdio-1.0
main-is: MainSpec.hs
build-depends: base >=4.11 && <4.12
default-language: Haskell2010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment