diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..10f0464 --- /dev/null +++ b/shell.nix @@ -0,0 +1,19 @@ +{ pkgs ? import (fetchTarball https://github.com/NixOS/nixpkgs/archive/22.05.tar.gz) { } +, ghcVersion ? "ghc902" +, ... +}: + +with pkgs; + +haskell.lib.buildStackProject rec { + name = "haspara-devshell"; + src = ./.; + ghc = haskell.packages.${ghcVersion}.ghc; + buildInputs = [ + haskell-language-server + haskellPackages.weeder + hlint + stack + stylish-haskell + ]; +} diff --git a/stack-18.28.yaml b/stack-18.28.yaml new file mode 100644 index 0000000..aa078ac --- /dev/null +++ b/stack-18.28.yaml @@ -0,0 +1,14 @@ +resolver: lts-18.28 + +packages: +- . + +ghc-options: + "$locals": -fwrite-ide-info + +nix: + enable: true + shell-file: shell.nix + nix-shell-options: + - "--arg" + - "ghcVersion=ghc8107" diff --git a/stack-18.28.yaml.lock b/stack-18.28.yaml.lock new file mode 100644 index 0000000..da10c3e --- /dev/null +++ b/stack-18.28.yaml.lock @@ -0,0 +1,12 @@ +# This file was autogenerated by Stack. +# You should not edit this file by hand. +# For more information, please see the documentation at: +# https://docs.haskellstack.org/en/stable/lock_files + +packages: [] +snapshots: +- completed: + sha256: 428ec8d5ce932190d3cbe266b9eb3c175cd81e984babf876b64019e2cbe4ea68 + size: 590100 + url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/18/28.yaml + original: lts-18.28 diff --git a/stack.yaml b/stack.yaml index 184432e..54c142d 100644 --- a/stack.yaml +++ b/stack.yaml @@ -1,5 +1,14 @@ -resolver: lts-18.27 +resolver: lts-19.11 + packages: - . + ghc-options: "$locals": -fwrite-ide-info + +nix: + enable: true + shell-file: shell.nix + nix-shell-options: + - "--arg" + - "ghcVersion=ghc902" diff --git a/stack.yaml.lock b/stack.yaml.lock index e20c4bc..c1ebff2 100644 --- a/stack.yaml.lock +++ b/stack.yaml.lock @@ -6,7 +6,7 @@ packages: [] snapshots: - completed: - size: 590102 - url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/18/27.yaml - sha256: 79a786674930a89301b0e908fad2822a48882f3d01486117693c377b8edffdbe - original: lts-18.27 + sha256: 692668712aa3a6638401ce921cd043f5f9a8b018af9ba13ae350871196b047d6 + size: 619152 + url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/19/11.yaml + original: lts-19.11