This commit is contained in:
Félix Baylac Jacqué 2019-12-18 18:02:31 +01:00
commit 8536d2cfdb
4 changed files with 57 additions and 0 deletions

10
cabal.project Normal file
View File

@ -0,0 +1,10 @@
packages:
dummy-app
package dummy-app
ghc-options: -Wall -Werror -fwarn-redundant-constraints
source-repository-package
type: git
location: http://github.com/well-typed/canonical-json
tag: ddfe3593b80b5ceb88842bb7a6f2268df75d2c2f

24
default.nix Normal file
View File

@ -0,0 +1,24 @@
{
customConfig ? {},
target ? builtins.currentSystem,
haskellCompiler ? "ghc865"
}:
let
lib = import ./nix/lib.nix;
# Instantiate a package set using the generated file.
in
lib.pkgs.haskell-nix.cabalProject {
src = lib.pkgs.haskell-nix.haskellLib.cleanGit { src = ./.; };
ghc = lib.pkgs.buildPackages.pkgs.haskell-nix.compiler.${haskellCompiler};
pkg-def-extras = [
# # Additional packages ontop of all those listed in `cabal.project`
];
modules = [
# # Specific package overrides would go here for example:
# packages.cbors.package.ghcOptions = "-Werror";
# packages.cbors.patches = [ ./one.patch ];
# packages.cbors.flags.optimize-gmp = false;
# # It may be better to set flags in `cabal.project` instead
# # (`plan-to-nix` will include them as defaults).
];
}

View File

@ -0,0 +1,2 @@
main :: IO ()
main = undefined

21
dummy-app/dummy-app.cabal Normal file
View File

@ -0,0 +1,21 @@
name: dummyapp
version: 1.0.0
description: ...
author: ...
maintainer: ...@....io
license: Apache-2.0
build-type: Simple
cabal-version: >= 1.10
extra-source-files: README.md, ChangeLog.md
executable dummy-app
hs-source-dirs: app
main-is: dummy-app.hs
default-language: Haskell2010
ghc-options: -threaded
-Wall
-O2
"-with-rtsopts=-T"
-fno-warn-unticked-promoted-constructors
build-depends: base