Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
John Wiegley
@jwiegley
wanna fix that? :)
larluo
@clojurians-org
yeah, i'll try to solve it in two weeks.
John Wiegley
@jwiegley
matthewbauer: ping
matthewbauer: I'm having difficulty building static Haskell binaries on Linux via Nix, and was wondering if your commit 6da1a83d4ddbee4cb54331bf7a0335e1a90f303a might be involved; what is the meaning of the libffi parameter after that change, and does anyone use it?
matthewbauer: my symptom is that no matter what I've tried, I get "cannot find -lffi" when I tried to link a static executable
matthewbauer: ah, maybe the issue is that I don't have your commit in nixos-19.03
larluo
@clojurians-org
the nix repl lack the session support.
is there excellent library to manage session state?

nix repl

hnix> a = 1 + 3
<string>:1:3:
  |
1 | a = 1 + 3
  |   ^
unexpected '='
expecting "!=", "&&", "++", "->", "//", "<=", "==", ">=", "||", '*', '+', '-', '/', '<', '>', '?', ., or end of input

nix repl

nix-repl> a = 1 + 2

nix-repl> a
3
Richard Marko
@sorki
GHC.TypeLits provides the someSymbolVal function which looks somewhat related but it produces a SomeSymbol, not a Symbol and I can quite grasp how to use it.
my sides
any idea how to build type StoreDir = Symbol ?
I guess I need to use a Proxy or another datatype with an instance for type KnownStoreDir = KnownSymbol
Shea Levy
@shlevy
@sorki What are you trying to do?
Richard Marko
@sorki
shlevy: rebasing remote store, it compilies now but when I try to run tests I get
• No instance for (GHC.TypeLits.KnownSymbol a0)
    arising from a use of ‘withPath’
which is kind-of expected as I don't create KnownStoredir anywhere
Shea Levy
@shlevy
Ah you need a way to create an existential knownstoredir, got it
Can you link to the place in the code?
John Wiegley
@jwiegley
the hnix repl needs a lot of love, actually
Patrick Hilhorst
@Synthetica9
Is there any commit in nixpkgs where hnix 0.6 isn't broken?
Domen Kožar
@domenkozar
0.6.1 :)
btw, did we consider using tree-sitter for parsing?
that would solve performance issues and lack of comments
but it would probably make error reporting worse
Silvan Mosberger
@Infinisil
It's amazing how often CI fails for non-important reasons. I'm seeing this all too often on a lot of projects online
Domen Kožar
@domenkozar
@Infinisil for example? :)
Silvan Mosberger
@Infinisil
domenkozar: The link from the bot above
CI failed because of timeout haskell-nix/hnix#498
Anton Latukha
@Anton-Latukha

Good Friday for everybody.

Please, I require and request your input.

About assignment:
"
Rather than pass strings with rendered components to ErrorCall, every possible error or piece of information raised within hnix should use a specific constructor
"
from haskell-nix/hnix#309

It seemed like a good first issue.

I spent some time. So far and did not found how to transform the monadic throwError/ErrorCatch handling into clean smart constructors without big deep rewriting of nested monadic code and functions.

Maybe assignment really means to make custom monadic type constructors with custom type class instances to do more advanced ErrorCall error catching and info gathering. Is this a right conjecture on what is asked?

Can you provide some input words on what you would suggest about the task, directions.

Thank you for everything.

Doug Beardsley
@mightybyte
@/all FYI for everyone here, we are planning another HNix hackathon in conjunction with the Compose Unconference in NYC the weekend of June 22 and 23 (and perhaps a preliminary organizational session Friday evening June 21). If you can join us in NYC, the unconference is free and you can find the registration link at http://www.composeconference.org/. For those who can't join in person, you can still participate. We will be coordinating here like we have done previously. Hope to see you then!
Andika Demas Riyandi
@Rizary

Hi, I try to follow the installation instruction and got the following error:

autoreconf: 'configure.ac' or 'configure.in' is required
builder for '/nix/store/dn1npijmqy6snsmcgbvnykvvrh3k87wh-nix-2.3pre6631_e58a7144.drv' failed with exit code 1

I am using ubuntu 18.04 on WSL

Andika Demas Riyandi
@Rizary
I forgot to use --recursive pls ignore.
Andika Demas Riyandi
@Rizary
I got stuck in here:
image.png
anyone experienced the same? (it is in WSL) NixOS fine though.
Domen Kožar
@domenkozar
typical windows
Joe Graham
@josgraha
@jwiegley how do i get your build environment? :smile:
Anton Latukha
@Anton-Latukha
@josgraha Meanwhile you waiting for a direct response. Wiegley has a YouTube channel with videos where he shows development process, he also has several blogs, up to date GitHub repos of configs, including Emacs configs, he appeared on couple of podcasts as a guest where he described his workflow. If you piece it all together - you would have a very good material.
John Wiegley
@jwiegley
@josgraha Hi Joe, which aspect of the build environment did you want?
Joe Graham
@josgraha
Oh wow thank you so much I dont know why I didnt think about searching YouTube 😪
Anton Latukha
@Anton-Latukha

@josgraha
Also every-ones different tooling now revolves around ghcid and Haskell IDE Engine. HIE becomes well-integrated in majority of cases.

In the HNix project, inside its Nix-shell you can right-away start ghcid to aid you. For example, I currently use this: ghcid --command='cabal new-repl --ghc-options=-fno-code --ghc-options=-fno-break-on-exception --ghc-options=-fno-break-on-error --ghc-options=-v1 --ghc-options=-ferror-spans --ghc-options=-j'.

John has a lot of niceties to draw from into your setup, if you make an effort learning and integrating them.

Anton Latukha
@Anton-Latukha

====

Please suggest exception handling ideas into: haskell-nix/hnix#509

Anton Latukha
@Anton-Latukha
@Infinisil Travis can fall because of git depth 1 setting. Opened haskell-nix/hnix#510
Anton Latukha
@Anton-Latukha

====

Some time passed. And I found a way to integrate NixOS/Nix, Emacs, Haskell IDE Engine.
And made guide for it:
https://www.reddit.com/r/haskell/comments/cigdqp/integration_of_nixosnix_with_haskell_ide_engine/

@josgraha
Anton Latukha
@Anton-Latukha

This is the most versatile Haskell setup today. You can get the Nix and all the tricks, Emacs and canonicalized Haskell IDE at the same time.

I already tested the setup making a HNix contribution.

Anton Latukha
@Anton-Latukha

====

I decided to break the dead air.

I started to get more and more errors with NixOps making it impossible to use even for me. NixOps is still fully Python2, and that kick of the can ends in 3 month. Maybe someone has some thoughts/motives about it.

Anton Latukha
@Anton-Latukha

====

Also people keep complaining about issues, that I reported, solved and gave to Nix already three years ago. Sill not merged thou.
Since people still complain, maybe someone can help me to merge my fully ready POSIX Nix installer into Nix mainline, or at least as beta-option installer. It is good to push for somewhere right after NixOS release.

====

For interest looked at what tooling currently uses HNix:

dhall-nix
hocker (Interact with the docker registry and generate nix build instructions)
jenkinsPlugins2nix
nixfromnpm
servant-nix (Servant Nix content-type)
update-nix-fetchgit
yarn2nix

Seems pretty good functionality already.