Skip to content

Instantly share code, notes, and snippets.

@divarvel
Created July 21, 2017 08:34
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 divarvel/5aaee4d9dee67d7152258b895f9f97ab to your computer and use it in GitHub Desktop.
Save divarvel/5aaee4d9dee67d7152258b895f9f97ab to your computer and use it in GitHub Desktop.
Multiple RTSOPTS
¬ cabal-rtsopts cat cabal-rtsopts.cabal
name: cabal-rtsopts
version: 0.1.0.0
-- synopsis:
-- description:
homepage: https://github.com/divarvel/cabal-rtsopts#readme
license: BSD3
license-file: LICENSE
author: Clément Delafargue
maintainer: clement@delafargue.name
copyright: 2017 Clément Delafargue
category: Web
build-type: Simple
extra-source-files: README.md
cabal-version: >=1.10
library
hs-source-dirs: src
exposed-modules: Lib
build-depends: base >= 4.7 && < 5
default-language: Haskell2010
executable cabal-rtsopts-exe
hs-source-dirs: app
main-is: Main.hs
ghc-options: -threaded -rtsopts -with-rtsopts="-N -T"
build-depends: base
, cabal-rtsopts
default-language: Haskell2010
test-suite cabal-rtsopts-test
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
build-depends: base
, cabal-rtsopts
ghc-options: -threaded -rtsopts -with-rtsopts=-N
default-language: Haskell2010
source-repository head
type: git
location: https://github.com/divarvel/cabal-rtsopts
$ cabal new cabal-rtsopts
$ cd cabal-rtsopts
$ vim cabal-rtsopts.cabal
$ stack build
cabal-rtsopts-0.1.0.0: build (lib + exe)
Preprocessing library cabal-rtsopts-0.1.0.0...
Preprocessing executable 'cabal-rtsopts-exe' for cabal-rtsopts-0.1.0.0...
ghc: unrecognised flag: -T"
Usage: For basic information, try the `--help' option.
-- While building package cabal-rtsopts-0.1.0.0 using:
/Users/clementd/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.2.0 build lib:cabal-rtsopts exe:cabal-rtsopts-exe --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment