Size: a a a

2020 November 16

ПК

Паша Калугин... in Haskell
Alexander Vershilov
Чтобы не сломать 3540 библиотеки?
О, звучит как что-то из словаря плюсиста
источник

JS

Jerzy Syrowiecki in Haskell
Alexander T
3540 библиотек не смогут добавить {-# NoOverloadedStrings #-}?
чем отрицательное расширение лучше положительного? зачем вообще какие-то расширения добавлять? есть же аннотации типов
источник

AT

Alexander T in Haskell
Jerzy Syrowiecki
чем отрицательное расширение лучше положительного? зачем вообще какие-то расширения добавлять? есть же аннотации типов
есть впечатление, что в большинстве проектов это расширение активно.
источник

к

кана in Haskell
Alexander T
https://mail.haskell.org/pipermail/ghc-steering-committee/2020-November/001876.html
почему оверлоадед стрингс не сделать дефолтом?
ну пока не появится новый стандарт, ничего особо не сделать
источник

AB

Alexander Babin in Haskell
Как можно прикруть https://github.com/phadej/github для stack
добавил в
extra-deps:
 - binary-instances-1
 - time-compat-1.9.3
 - github-0.26


при этом заимпоритть его не могу
src\Lib.hs:5:1: error:
   Could not find module `Github.RateLimit'
источник

AV

Alexander Vershilov in Haskell
Alexander Babin
Как можно прикруть https://github.com/phadej/github для stack
добавил в
extra-deps:
 - binary-instances-1
 - time-compat-1.9.3
 - github-0.26


при этом заимпоритть его не могу
src\Lib.hs:5:1: error:
   Could not find module `Github.RateLimit'
А в *.cabal или package.yaml есть зависимость?
источник

AB

Alexander Babin in Haskell
Alexander Vershilov
А в *.cabal или package.yaml есть зависимость?
только в
executables:
   dependencies:
   - gitreader

tests:
 dependencies:
   - gitreader
источник

AB

Alexander Babin in Haskell
если добавляю в dependency
то получаю циклическую зависимость
Error:
   Components in the package depend on each other in a cyclic way:
 'library' depends on 'library'
источник

AV

Alexander Vershilov in Haskell
Добавлять надо github
источник

AB

Alexander Babin in Haskell
тут прилетает
In the dependencies for binary-instances-1:
   aeson must match >=0.7.0.6 && <1.5, but the stack configuration has no specified version  (latest matching version
         is 1.4.7.1)
   base-4.14.0.0 from stack configuration does not match >=4.6.0.1 && <4.14  (latest matching version is 4.13.0.0)
   binary-0.8.8.0 from stack configuration does not match >=0.5.1.1 && <0.8.8  (latest matching version is 0.8.7.0)
   binary-orphans must match >=1.0.1 && <1.1, but the stack configuration has no specified version  (latest matching
                  version is 1.0.1)
   case-insensitive must match >=1.2.0.4 && <1.2.2, but the stack configuration has no specified version  (latest
                    matching version is 1.2.1.0)
   hashable must match >=1.2.3.3 && <1.4, but the stack configuration has no specified version  (latest matching version
            is 1.3.0.0)
   scientific must match >=0.3.3.8 && <0.4, but the stack configuration has no specified version  (latest matching
              version is 0.3.6.2)
   tagged must match >=0.7.3 && <0.8.7, but the stack configuration has no specified version  (latest matching version
          is 0.8.6)
   text-binary must match >=0.2.1.1 && <0.3, but the stack configuration has no specified version  (latest matching
               version is 0.2.1.1)
   unordered-containers must match >=0.2.5.1 && <0.3, but the stack configuration has no specified version  (latest
                        matching version is 0.2.13.0)
   vector must match >=0.10.12.3 && <0.13, but the stack configuration has no specified version  (latest matching version
          is 0.12.1.2)
   vector-binary-instances must match >=0.2.1.0 && <0.3, but the stack configuration has no specified version  (latest
                           matching version is 0.2.5.1)
needed due to gitreader-0.1.0.0 -> binary-instances-1

In the dependencies for github-0.26:
   aeson must match >=1.4.0.0 && <1.6, but the stack configuration has no specified version  (latest matching version
         is 1.5.4.1)
   base-compat must match >=0.11.1 && <0.12, but the stack configuration has no specified version  (latest matching
               version is 0.11.2)
   base16-bytestring must match >=0.1.1.6 && <0.2, but the stack configuration has no specified version  (latest matching
                     version is 0.1.1.7)
   cryptohash-sha1 must match >=0.11.100.1 && <0.12, but the stack configuration has no specified version  (latest
                   matching version is 0.11.100.1)
   deepseq-generics must match >=0.2.0.0 && <0.3, but the stack configuration has no specified version  (latest matching
                    version is 0.2.0.0)
   hashable must match >=1.2.7.0 && <1.4, but the stack configuration has no specified version  (latest matching version
            is 1.3.0.0)
   http-client must match >=0.5.12 && <0.8, but the stack configuration has no specified version  (latest matching
               version is 0.7.2.1)
   http-client-tls must match >=0.3.5.3 && <0.4, but the stack configuration has no specified version  (latest matching
                   version is 0.3.5.3)
   http-link-header must match >=1.0.3.1 && <1.1, but the stack configuration has no specified version  (latest matching
                    version is 1.0.3.1)
   http-types must match >=0.12.3 && <0.13, but the stack configuration has no specified version  (latest matching
              version is 0.12.3)
   iso8601-time must match >=0.1.5 && <0.2, but the stack configuration has no specified version  (latest matching
                version is 0.1.5)
   network-uri must match >=2.6.1.0 && <2.7, but the stack configuration has no specified version  (latest matching
               version is 2.6.3.0)
   tagged must match >=0.8.5 && <0.9, but the stack configuration has no specified version  (latest matching version
          is 0.8.6)
   tls must match >=1.4.1, but the stack configuration has no specified version  (latest matching version is 1.5.4)
источник

AB

Alexander Babin in Haskell

   transformers-compat must match >=0.6.5 && <0.7, but the stack configuration has no specified version  (latest matching
                       version is 0.6.6)
   unordered-containers must match >=0.2.10.0 && <0.3, but the stack configuration has no specified version  (latest
                        matching version is 0.2.13.0)
   vector must match >=0.12.0.1 && <0.13, but the stack configuration has no specified version  (latest matching version
          is 0.12.1.2)
   vector-instances must match >=3.4 && <3.5, but the stack configuration has no specified version  (latest matching
                    version is 3.4)
needed due to gitreader-0.1.0.0 -> github-0.26

In the dependencies for time-compat-1.9.3:
   base-orphans must match >=0.8.1 && <0.9, but the stack configuration has no specified version  (latest matching
                version is 0.8.3)
needed due to gitreader-0.1.0.0 -> time-compat-1.9.3
источник

AB

Alexander Babin in Haskell
их тоже все ручками занести, тк их stack не видит?
источник

AV

Alexander Vershilov in Haskell
Да
источник

AV

Alexander Vershilov in Haskell
Стеку нужно явно указывать версии пакетов не входящие в снепшот
источник

AB

Alexander Babin in Haskell
Alexander Vershilov
Стеку нужно явно указывать версии пакетов не входящие в снепшот
они добавляются в
extra-deps:

верно?
источник

AB

Alexander Babin in Haskell
а потом в package.yaml в dependency
источник

AV

Alexander Vershilov in Haskell
Сначала в package.yaml или *.cabal, потом в extra-deps
источник

AB

Alexander Babin in Haskell
Alexander Vershilov
Сначала в package.yaml или *.cabal, потом в extra-deps
👍
источник

KV

Kirill Valyavin in Haskell
А есть травёрсал, который обходит всю дату и собирает значения такого-то типа?
источник

MK

Maxim Koltsov in Haskell
Kirill Valyavin
А есть травёрсал, который обходит всю дату и собирает значения такого-то типа?
источник