Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Michael Snoyman
    @snoyberg
    commercialhaskell/stack#3663
    Michael Snoyman
    @snoyberg
    @DanBurton You're the hero that Stack deserves commercialhaskell/stack#3922
    Dan Burton
    @DanBurton
    @snoyberg are there any docs about the 3-tiered package database thing that stack does?
    Attila Domokos
    @adomokos
    @snoyberg - can you please include that architecture doc here?
    Jens Petersen
    @juhp
    Shall we add a link to the Stackage blog from stackage.org?
    Mihai Maruseac
    @mihaimaruseac
    I'd say so
    Jens Petersen
    @juhp
    Done :)
    Michael Snoyman
    @snoyberg
    :fireworks:
    Pawel Szulc
    @EncodePanda
    hi, quick question, how can i run the whole suite of Stack’s integration tests?
    Pawel Szulc
    @EncodePanda
    no implementation yet but at least integration test added commercialhaskell/stack#4136 :)
    Pawel Szulc
    @EncodePanda
    @snoyberg is there document for stack contributors
    so i dont have to ask simple questions like "how can i run the whole suite of Stack’s integration tests?”
    Pawel Szulc
    @EncodePanda
    Pawel Szulc
    @EncodePanda
    @mihaimaruseac are intergation tests fired after PR is merged (on Stack project)?
    Michael Snoyman
    @snoyberg
    No, they're too expensive for Travis to run, we have them running on a totally different server with unfortunately no Github integration
    Actually, I think we only run them nightly, again due to the high runtime cost
    Pawel Szulc
    @EncodePanda
    we could potentially run them on gitlab
    there is a way to create a gitlab pipeline which has strongers servers for CI and run them periodically
    Mihai Maruseac
    @mihaimaruseac
    oh, that makes sense now; I made a PR a while ago and all tests passed and now I see I actually broke one integration test
    Ghost
    @ghost~5bd37f73d73408ce4face830
    Hi, was hoping I could do a quick check if anyone knows: Is everything from The Haskell Book (http://haskellbook.com/) still current? Like syntax and so forth. Any errata?
    Chris Allen
    @bitemyapp
    It's pretty up to datw
    date*
    There are only minor things like slightly different type signatures. I'm doing a pass of the book to harmonize it with GHC 8.4.3 right now.
    Saurabh Nanda
    @saurabhnanda
    Last message
    Last messge sent 2 months ago. Wow!
    Mihai Maruseac
    @mihaimaruseac
    But we're still here
    Heligo
    @AlterAc64
    Greetings, ladies&gents. Anyone worked with Ajax on a warp-server once?
    Lyle Kopnicky
    @lylek

    Hi @snoyberg (or anyone else who might have input), I have a question about using RIO. I have an application that first needs to load some config files and do some transformation of them. I'd like to store the config file data in the RIO environment (App), but that means I can't populate the App and call runRIO until I've collected that config data.

    Unfortunately that means that if I encounter errors in the config file data, I can't call logError, etc., since I'm not yet in the RIO monad. This seems like a sort of chicken-and-egg problem.

    Is the appropriate solution to bootstrap by using App types and separate phases of runRIO? E.g, create a Bootstrap datatype for the phase where it's loading the config files. It would already be set up with a logger and process context. Once that is done and has loaded the config data, that call to runRIO would return a Config structure. Then I'd have an App type which included everything from Bootstrap plus the Config data, and I'd do a second call to runRIO.

    Only thing is, it seems like a bit of redundant boilerplate to have to create two similar data types, Bootstrap and App, where App just has one additional field.

    Is there a more canonical way of handling this?

    Michael Snoyman
    @snoyberg
    That's the right directional way of doing this, and very close to what we do in Stack. If all you need is process execution and logging, you can use the built in SimpleApp.
    Lyle Kopnicky
    @lylek
    SimpleApp would probably work at that point, thanks.
    It also occurred to me that I could put the Config data in an MVar and just not initialize it until I have something to put in it. But if I accidentally wrote code in the bootstrap phase that tried to read the MVar, it would just hang. Sort of the MVar version of having a Maybe and assuming that it's a Just.
    Ben MacAdam
    @benjamin-macadam
    Hi - I have a question about how to set up Stack for an academic setting. Right now I
    Mihai Maruseac
    @mihaimaruseac
    @benjamin-macadam your message got interrupted
    Ben MacAdam
    @benjamin-macadam
    Sorry about that! 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.
    Mihai Maruseac
    @mihaimaruseac
    try chmod -R 777 on that shared folder; or creating a new group and adding both users to the same group
    Pawel Szulc
    @EncodePanda
    hi all, question regarding stack: does stack have ability to extend it via some sort of plugins mechanism?
    to give an example, lets say my project has some ProtoBuffs definitions (I do hope I never ever have to work on project that uses protobuffs, but lets imagine that I do)
    I could write a plugin (generic solution) that would read that protobuf definitions and generate haskell code from it
    Having that plugin I could reuse it for my different projects, open source it for other folks to use
    adding a bit more "declarativity" to haskell builds
    does stack has anything like that? is it doable?
    Łukasz Gołębiewski
    @lukasz-golebiewski
    +1
    Pawel Szulc
    @EncodePanda
    and if it does not exist, how difficult would it be to extend stack with such feature?
    Pawel Szulc
    @EncodePanda
    question regarding stack integration with nix
    it used to be that when nix was enabled I only got non-haskell deps from nix (C libs etc)
    now recently I see that GHC is being downloaded from nix-cache
    did support for nix changed over time?

    docs https://docs.haskellstack.org/en/stable/nix_integration/ are still saying

    When using the Nix integration, Haskell dependencies are handled as usual: They are downloaded from Stackage and built locally by Stack. Nix is used by Stack to provide the non-Haskell dependencies needed by these Haskell packages.

    Pawel Szulc
    @EncodePanda
    Is gitter abandoned?