Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    TrueBoxGuy
    @TrueBoxGuy
    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.
    Taine Zhao
    @thautwarm
    Understood. I forgot the stackage-related stuffs, and I now think it makes a lot of sense!
    Cary Robbins
    @carymrobbins
    I may have asked about this before, but is there a programmatic way for accessing the stackage API to determine resolver metadata? e.g. some sort of list-resolvers endpoint
    Seems from the routes file there's not really anything like this exposed?
    Coding Horribly
    @codinghorribly

    Hi! I'm new to Haskell, and I just used Stack to install Yesod. There were a bunch of warnings, and I'm trying to figure out if they're warning about Stack itself or Yesod (or both?). I'd be happy to try to help clean some of them up, if I can. Two examples:

    x509-validation     > /tmp/stack13015/x509-validation-1.6.11/Data/X509/Validation.hs:34:1: warning: [-Wunused-imports]
    x509-validation     >     The import of ‘Control.Applicative’ is redundant
    x509-validation     >       except perhaps to import instances from ‘Control.Applicative’
    x509-validation     >     To import instances alone, use: import Control.Applicative()
    x509-validation     >    |                                   
    x509-validation     > 34 | import Control.Applicative        
    x509-validation     >    | ^^^^^^^^^^^^^^^^^^^^^^^^^^        
    x509-validation     >

    I figure that one (the one above) is validating Yesod, and found that in Yesod. But what about:

    unix-time           > /tmp/stack13015/unix-time-0.4.7//usr/include/features.h:184:3: error:      
    unix-time           >      warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
    unix-time           >      # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
    unix-time           >        ^~~~~~~                                                             
    unix-time           >     |                                                                      
    unix-time           > 184 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
    unix-time           >     |   ^

    Thanks!

    Paolo G. Giarrusso
    @Blaisorblade
    Aren't those in the packages listed on the left column?
    So, neither stack nor yesod?
    And fixing the second requires C/UNIX experience
    Coding Horribly
    @codinghorribly
    Okay, I'm pretty new to all of this, I thought x509-validation was a Stack validation library, but it's actually a separate library that Stack is leveraging?
    Javier Neira
    @jneira
    @codinghorribly they are libraries that yesod depends on, stack should build all dependencies before even to start build yesod itself
    dont worry, at beginning it could be a little it difficult :smile: