Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Cary Robbins
    @carymrobbins
    This bug brings much sadness into my life - commercialhaskell/stack#4786
    Compiler thinks a type is different depending on where it is referenced
    Are there any workarounds in the meantime? Maybe even some tips as to how someone could submit a patch to fix it?
    Michael Snoyman
    @snoyberg
    @carymrobbins any chance that there are cyclic dependencies at play here?
    Cary Robbins
    @carymrobbins
    @snoyberg I think technically no, there shouldn't be, unless this introduces one -
    • A stack project with two packages core and testlib
    • testlib:lib depends on core:lib
    • core:test depends on testlib:lib
    I see core:test as a separate target from core:lib, so the arrow should look like
    core:lib -> testlib:lib -> core:test
    But maybe something in stack considers both core:lib and core:test the same target in some way?
    hovind
    @hovind
    Hi, folks! stack build puts things in .stack-work/install/x86_64-linux-tinfo6, does anyone know how I can generate the arch-vendor-abi triplet (in this case x86_64-linux-tinfo6) in a portable manner?
    TrueBoxGuy
    @TrueBoxGuy
    image.png
    Why is haddock not putting the documentation in the directory specified?
    Should I delete / rename the other folder?
    Dmitri Zaitsev
    @dmitriz
    Hi folks! Does anyone know how to make stack use the current ghc?
    I am trying to install https://github.com/litxio/ptghci
    running stack install begins downloading some old ghc version
    which is over 200MB!
    Is there any option to use my current version instead?
    Magnus Therning
    @magthe
    I think you also might have to make sure your local version matches the one in the resolver version.
    Dmitri Zaitsev
    @dmitriz
    @magthe Thanks, I have actually found it and tried but sadly the download is running nevertheless
    ✗ stack install
    Preparing to install GHC to an isolated location.
    This will not interfere with any system-level installation.
    ghc-8.6.4:  406.53 KiB / 215.76 MiB (  0.18%) downloaded...^C
    
    ➜  ptghci git:(master) ✗ cat ~/.stack/config.yaml 
    # This file contains default non-project-specific settings for 'stack', used
    # in all projects.  For more information about stack's configuration, see
    # http://docs.haskellstack.org/en/stable/yaml_configuration/
    #
    system-ghc: true
    which ghc 
    ~/.ghcup/bin/ghc
    Magnus Therning
    @magthe
    And what version is that pre-installed ghc?
    Dmitri Zaitsev
    @dmitriz
    @magthe The latest version:
    ~ ghci -V
    The Glorious Glasgow Haskell Compilation System, version 8.6.5
    ➜  ~ ghc -V 
    The Glorious Glasgow Haskell Compilation System, version 8.6.5
    Magnus Therning
    @magthe
    I'm not sure how picky stack is, but it could reject your 8.6.5 because the version in the resolver is 8.6.4.
    Dmitri Zaitsev
    @dmitriz
    @magthe Ok, I have managed to download those versions with ghcup that thankfully have been accepted by stack (that wasn't able to download them). So I am fine with any version that is available with ghcup but there seem to be only few.
    Jennifer Wilcox
    @Nitori-
    Hey everyone, I have a small question.
    I'm working on a small "auxiliary" command for stack (i.e. you call your package "stack-foo" and "stack foo" will invoke it)
    Is there any opinion on where I should keep the custom configuration for such a command? I'd be inclined to put it in stack.yml but I don't know if that would be poor form
    Casper Thule
    @CThuleHansen
    Is there a way to see where the binaries are stored after stack build?
    Casper Thule
    @CThuleHansen
    hmm seems not
    Kirill Zaborsky
    @qrilka
    why not?
    qrilka@qdesktop ~/ws/h/hatrace $ ls $(stack path --local-install-root)/bin
    hatrace
    Dan Burton
    @DanBurton

    @CThuleHansen you can also try

    stack exec which mybin

    replacing mybin with the binary you are trying to find

    Casper Thule
    @CThuleHansen
    @DanBurton tried, no luck
    using local-install-root
    to path
    Ben MacAdam
    @benjamin-macadam
    Hi there, I've been trying to get stack working on a university lab for a few days now - the main issue is that each user's environment takes up about 8GB of space. Is there any way to set a global stack root? I'm trying to share the same .stack folder between two users on my personal laptop and I'm getting permissions errors.
    Balter Notz
    @BalterNotz
    Hello, I got a problem
    when I run stack setup,
    '''
    Exception while reading snapshot from lts-14.12:
    HttpExceptionRequest Request {
      host                 = "raw.githubusercontent.com"
      port                 = 443
      secure               = True
      requestHeaders       = [("User-Agent","Haskell pantry package")]
      path                 = "/commercialhaskell/stackage-snapshots/master/lts/14/12.yaml"
      queryString          = ""
      method               = "GET"
      proxy                = Nothing
      rawBody              = False
      redirectCount        = 10
      responseTimeout      = ResponseTimeoutDefault
      requestVersion       = HTTP/1.1
    }
     (InternalException (HostCannotConnect "raw.githubusercontent.com" [Network.Socket.connect: <socket: 13>: does not exist (Connection refused)]))
    1 reply
    Balter Notz
    @BalterNotz
    My ~/.stack/config.yml file
    setup-info: "http://mirrors.tuna.tsinghua.edu.cn/stackage/stack-setup.yaml"
    urls:
      latest-snapshot: http://mirrors.tuna.tsinghua.edu.cn/stackage/snapshots.json
    
    package-indices:
      - download-prefix: http://mirrors.tuna.tsinghua.edu.cn/hackage/
        hackage-security:
            keyids:
            - 0a5c7ea47cd1b15f01f5f51a33adda7e655bc0f0b0615baa8e271f4c3351e21d
            - 1ea9ba32c526d1cc91ab5e5bd364ec5e9e8cb67179a471872f6e26f0ae773d42
            - 280b10153a522681163658cb49f632cde3f38d768b736ddbc901d99a1a772833
            - 2a96b1889dc221c17296fcc2bb34b908ca9734376f0f361660200935916ef201
            - 2c6c3627bd6c982990239487f1abd02e08a02e6cf16edb105a8012d444d870c3
            - 51f0161b906011b52c6613376b1ae937670da69322113a246a09f807c62f6921
            - 772e9f4c7db33d251d5c6e357199c819e569d130857dc225549b40845ff0890d
            - aa315286e6ad281ad61182235533c41e806e5a787e0b6d1e7eef3f09d137d2e9
            - fe331502606802feac15e514d9b9ea83fee8b6ffef71335479a2e68d84adc6b0
            key-threshold: 3 # number of keys required
    
            # ignore expiration date, see https://github.com/commercialhaskell/stack/pull/4614
            ignore-expiry: no
    Balter Notz
    @BalterNotz
    btnz@vmubuntuserver:~$ wget https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/14/12.yaml
    --2019-10-30 02:12:07--  https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/14/12.yaml
    Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 199.59.149.136
    Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|199.59.149.136|:443... failed: Connection refused.
    btnz@vmubuntuserver:~$ wget https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/14/12.yaml
    --2019-10-30 02:12:31--  https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/14/12.yaml
    Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 31.13.65.17
    Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|31.13.65.17|:443... failed: Connection refused.
    btnz@vmubuntuserver:~$ wget https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/14/12.yaml
    --2019-10-30 02:14:46--  https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/14/12.yaml
    Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 67.228.74.123
    Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|67.228.74.123|:443... failed: Connection refused.
    btnz@vmubuntuserver:~$ wget https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/14/12.yaml
    --2019-10-30 02:16:26--  https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/14/12.yaml
    Balter Notz
    @BalterNotz
    btnz@vmubuntuserver:~$ stack update
    Selected mirror http://mirrors.tuna.tsinghua.edu.cn/hackage/
    Downloading root
    Selected mirror http://mirrors.tuna.tsinghua.edu.cn/hackage/
    Downloading timestamp
    Downloading snapshot
    Downloading mirrors
    Cannot update index (no local copy)
    Downloading index
    Updated package index downloaded
    Calculating hashes to check for hackage-security rebases or filesystem changes
    No old cache found, populating cache from scratch
    Populating cache from file size 632057344, hash 12df935d511eb0000b2755731539acf68d09cd10539b17f83f7e5ac9c37edc99
    Populating package index cache ...
    Package index cache populated
    btnz@vmubuntuserver:~$ 
    btnz@vmubuntuserver:~$ 
    btnz@vmubuntuserver:~$ stack setup
    Warning: http://mirrors.tuna.tsinghua.edu.cn/stackage/stack-setup.yaml: Unrecognized field in GHCDownloadInfo: version
    Preparing to install GHC to an isolated location.
    This will not interfere with any system-level installation.
    Downloaded ghc-8.6.5.                                      
    rts-1.0: Warning: .:466:1: The field "hugs-options" is deprecated. hugs isn't supported anymore
    Installed GHC.    
    stack will use a sandboxed GHC it installed
    For more information on paths, see 'stack path' and 'stack exec env'
    To use this GHC and packages outside of a project, consider using:
    stack ghc, stack ghci, stack runghc, or stack exec
    btnz@vmubuntuserver:~$
    Javier Neira
    @jneira
    @benjamin-macadam setting $STACK_ROOT?
    Taine Zhao
    @thautwarm
    Can you guys save me? idris must match ==1.3.2, but the stack configuration has no specified version (latest matching version is 1.3.2)
    Paolo G. Giarrusso
    @Blaisorblade
    @thautwarm do you need to add idris to your extra-deps? if not, I guess you'll need to provide more info :-)
    Taine Zhao
    @thautwarm
    I hadn't done it. In fact I know I can do this, but I just feel like to avoid changing stack.yaml...
    After all, I think I've already specified the version info of that dependency.
    Taine Zhao
    @thautwarm
    However, I did now and I still want to know how to solve it without chaning stack.yaml...
    Magnus Therning
    @magthe
    Well, idris seems to not be included in Stackage, so I believe you are pretty much forced to mention it in stack.yaml if you depend on it.