profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/commercialhaskell/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Commercial Haskell SIG commercialhaskell

commercialhaskell/stack 3602

The Haskell Tool Stack

commercialhaskell/rio 721

A standard library for Haskell

commercialhaskell/stackage 466

"Stable Hackage": vetted consistent packages from Hackage

commercialhaskell/commercialhaskell 424

A special interest group for companies and individuals interested in commercial usage of Haskell

commercialhaskell/haskelldocumentation 211

Repository for collaborative Haskell documentation

commercialhaskell/stack-templates 195

Project templates for stack new

commercialhaskell/jump 158

Jump start your Haskell development

commercialhaskell/lts-haskell 154

LTS Haskell build plans

commercialhaskell/path 114

Typed filepath

commercialhaskell/stack-ide 99

Stack-based JSON interface to ide-backend

push eventcommercialhaskell/all-cabal-metadata

all-cabal-tool

commit sha 9e5d587af227056237ac2a6e56977e0e5ad0d419

Update from Hackage at 2021-09-25T21:58:08Z

view details

push time in 36 minutes

push eventcommercialhaskell/all-cabal-hashes

all-cabal-tool

commit sha 2d288a6f524f0bde39a2600a2134cafa85d3fd63

Update from Hackage at 2021-09-25T21:58:08Z

view details

push time in 36 minutes

push eventcommercialhaskell/all-cabal-files

all-cabal-tool

commit sha b2b6fae4ef23c4065dcf0377d87330e751a17fdc

Update from Hackage at 2021-09-25T21:58:08Z

view details

push time in 36 minutes

push eventcommercialhaskell/all-cabal-metadata

all-cabal-tool

commit sha a80a01ba7079b3edb45c8f016181d9373060a498

Update from Hackage at 2021-09-25T21:48:21Z

view details

push time in an hour

push eventcommercialhaskell/all-cabal-hashes

all-cabal-tool

commit sha e4224f62bbb3cb79857d11ed4776f56d0af1af2a

Update from Hackage at 2021-09-25T21:48:21Z

view details

push time in an hour

push eventcommercialhaskell/all-cabal-files

all-cabal-tool

commit sha b4508630b1fd6b86037a9eb2a37d9d97c2a5b234

Update from Hackage at 2021-09-25T21:48:21Z

view details

push time in an hour

fork luispauloml/stackage

"Stable Hackage": vetted consistent packages from Hackage

https://www.stackage.org/

fork in 3 hours

startedcommercialhaskell/stack-templates

started time in 7 hours

push eventcommercialhaskell/all-cabal-metadata

all-cabal-tool

commit sha 1036a0afe530d8e1870769879d8c52f2c9f60ae8

Update from Hackage at 2021-09-25T15:24:11Z

view details

push time in 7 hours

push eventcommercialhaskell/all-cabal-hashes

all-cabal-tool

commit sha 788c18641b1435244c9d1f384845d41139a8ce83

Update from Hackage at 2021-09-25T15:24:11Z

view details

push time in 7 hours

push eventcommercialhaskell/all-cabal-files

all-cabal-tool

commit sha b5f7d704a8b3e2856ac8436d03df8e3101c17561

Update from Hackage at 2021-09-25T15:24:11Z

view details

push time in 7 hours

push eventcommercialhaskell/all-cabal-metadata

all-cabal-tool

commit sha 19a45472966664efd9b2e76f1f884d7ddad46c93

Update from Hackage at 2021-09-25T13:49:52Z

view details

push time in 9 hours

push eventcommercialhaskell/all-cabal-hashes

all-cabal-tool

commit sha a66a50772a5e664268d14214f6d1dfa54f33cae1

Update from Hackage at 2021-09-25T13:49:52Z

view details

push time in 9 hours

push eventcommercialhaskell/all-cabal-files

all-cabal-tool

commit sha 43021c46cfaecfaa9cf4c6fe9b93528b7fd867c5

Update from Hackage at 2021-09-25T13:49:52Z

view details

push time in 9 hours

issue commentcommercialhaskell/stack

Stack on nixos fails when ghc not available in nixpkgs, e.g. ghc802

I'm having the same issue running stack new on NixOS. It seems to be the case that stack attempts to create a nix environment by default when it is installed from nixpkgs (stable 21.05 channel):

~ % nix-shell -p ghc stack cabal-install # all from stable

[nix-shell:~]$ stack new hello-world
error: attribute 'ghc8107' missing, at (string):1:43
(use '--show-trace' to show detailed location information)

As of the time of writing, the nixos-21.05 stable channel only has ghc-8.10.4. ghc-8.10.7 is only available under nixos-unstable. It's pretty strange that it's trying to fetch a package from the future.

This is my hunch on what I think happened under the hood:

  • Calling stack new <name> attempts to create a nix-environment.
  • Stack declares haskell.compiler.ghc8107 (this is an alias for ghc-8.10.7) as a dependency to nix - however it is unavailable unless the nix that stack is calling has the unstable channel/branch enabled.
  • Nix is unavailable to evaluate haskell.compiler.ghc8107, and throws that error. Keep in mind that haskell.compiler is still a valid namespace/attribute and hence it only errors out on the ghc8107 bits.

The following workaround worked for me:

# ~/.stack/config.yaml
nix:
  enable: false

No need to use system-ghc because the problem lies mainly in how it fetches the GHC.

It seems like the core problem is that Stack is hardcoded to use whatever version of GHC Stack things should be available when running into nix mode, without necessarily checking whether haskell.compiler.ghcXXXX is available in the nixos-channels used.

Stack seems to enable nix-mode automatically when it detects NixOS. https://github.com/commercialhaskell/stack/blob/255cd830627870cdef34b5e54d670ef07882523e/src/Stack/Config/Nix.hs#L39-L41

While I think that the above can be appropriate. I agree with @sullyj3's suggestion that it is rather confusing to have this be default when stack new is unlikely to work.

The "proper" workaround to enable nix mode would be to create a channel in your local that contains whatever version the haskell.compiler.ghcXXXX that stack is asking.

A solution I can think of for this would be to allow a way to optionally version-lock the ghc version stack looks for during initial launch to ensure that when the package is published as "stable" in nixpkgs - the ghc version required exists.

duog

comment created time in 12 hours

push eventcommercialhaskell/all-cabal-metadata

all-cabal-tool

commit sha bf4539468f89b627c457f370d02e9bb1814b2e49

Update from Hackage at 2021-09-24T19:31:46Z

view details

push time in a day

push eventcommercialhaskell/all-cabal-hashes

all-cabal-tool

commit sha da4b10f4037004af8b67719c8c30953b1fe5e5bf

Update from Hackage at 2021-09-24T19:31:46Z

view details

push time in a day

push eventcommercialhaskell/all-cabal-files

all-cabal-tool

commit sha e26ebcc9fab3cbd29586af947c7e3d49944892fe

Update from Hackage at 2021-09-24T19:31:46Z

view details

push time in a day

pull request commentcommercialhaskell/stackage

Add fields-json, log-base and unjson

thanks!

jsynacek

comment created time in a day

push eventcommercialhaskell/stackage

Jan Synacek

commit sha d813e9a5413b60d0f747094fbf3a65654280f674

Add fields-json, log-base and unjson

view details

Dan Burton

commit sha cb46f51a662464ea4fc0acce26ca425dace7fdbd

Merge pull request #6205 from jsynacek/add-fields-json-log-base-unjson Add fields-json, log-base and unjson

view details

push time in a day

PR merged commercialhaskell/stackage

Add fields-json, log-base and unjson

Checklist:

  • [x] Meaningful commit message, eg add my-cool-package (please not mention build-constraints.yml)

  • [x] At least 30 minutes have passed since uploading to Hackage

  • [x] On your own machine, you have successfully run the following command (find verify-package in the root of this repo):

    ./verify-package $package # or $package-$version
    

The script runs virtually the following commands in a clean directory:

  stack unpack $package-$version # `-$version` is optional
  cd $package-$version
  rm -f stack.yaml && stack init --resolver nightly --ignore-subdirs
  stack build --resolver nightly --haddock --test --bench --no-run-benchmarks
+3 -0

1 comment

1 changed file

jsynacek

pr closed time in a day

pull request commentcommercialhaskell/stackage

add call-alloy

thanks!

marcellussiegburg

comment created time in a day

push eventcommercialhaskell/stackage

Marcellus Siegburg

commit sha 8a035bae681f6daa0c70c4460b5d5476b91ea71f

add call-alloy

view details

Dan Burton

commit sha add401e121528db07d42195d890990f11edad703

Merge pull request #6201 from marcellussiegburg/patch-1 add call-alloy

view details

push time in a day

PR merged commercialhaskell/stackage

add call-alloy

Checklist:

  • [ ] Meaningful commit message, eg add my-cool-package (please not mention build-constraints.yml)

  • [ ] At least 30 minutes have passed since uploading to Hackage

  • [ ] On your own machine, you have successfully run the following command (find verify-package in the root of this repo):

    ./verify-package $package # or $package-$version
    

The script runs virtually the following commands in a clean directory:

  stack unpack $package-$version # `-$version` is optional
  cd $package-$version
  rm -f stack.yaml && stack init --resolver nightly --ignore-subdirs
  stack build --resolver nightly --haddock --test --bench --no-run-benchmarks
+3 -0

0 comment

1 changed file

marcellussiegburg

pr closed time in a day

push eventcommercialhaskell/stackage

Ben Orchard

commit sha 6c3c871dd5fd7c2f34fec841899652b2b1b00f27

Replace language-fortran with fortran-src language-fortran was deprecated by fortran-src some years ago.

view details

Dan Burton

commit sha b7200d593801650ff3c463df1ac2629d918f6f07

Merge pull request #6200 from raehik/add-fortran-src Replace language-fortran with fortran-src

view details

push time in a day

PR merged commercialhaskell/stackage

Replace language-fortran with fortran-src

language-fortran was deprecated by fortran-src some years ago.

Checklist:

  • [x] Meaningful commit message, eg add my-cool-package (please not mention build-constraints.yml)

  • [x] At least 30 minutes have passed since uploading to Hackage

  • [x] On your own machine, you have successfully run the following command (find verify-package in the root of this repo):

    ./verify-package $package # or $package-$version
    

The script runs virtually the following commands in a clean directory:

  stack unpack $package-$version # `-$version` is optional
  cd $package-$version
  rm -f stack.yaml && stack init --resolver nightly --ignore-subdirs
  stack build --resolver nightly --haddock --test --bench --no-run-benchmarks
+1 -1

1 comment

1 changed file

raehik

pr closed time in a day

push eventcommercialhaskell/all-cabal-metadata

all-cabal-tool

commit sha 83796e8cdf10b9ca9712c0b3e388730d1d22c001

Update from Hackage at 2021-09-24T16:57:08Z

view details

push time in a day

push eventcommercialhaskell/all-cabal-hashes

all-cabal-tool

commit sha 656315a029b50dc112e511d398df13946b1e44a4

Update from Hackage at 2021-09-24T16:57:08Z

view details

push time in a day