Browse Source

repro

master
commit
8536d2cfdb
4 changed files with 57 additions and 0 deletions
  1. +10
    -0
      cabal.project
  2. +24
    -0
      default.nix
  3. +2
    -0
      dummy-app/app/dummy-app.hs
  4. +21
    -0
      dummy-app/dummy-app.cabal

+ 10
- 0
cabal.project 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
- 0
default.nix 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).
];
}

+ 2
- 0
dummy-app/app/dummy-app.hs View File

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

+ 21
- 0
dummy-app/dummy-app.cabal 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

Loading…
Cancel
Save