angerman changed the topic of #haskell.nix to: https://input-output-hk.github.io/haskell.nix - alternative haskell infrastructure for nix; logs at https://logs.nix.samueldr.com/haskell.nix
hekkaidekapus_ is now known as hekkaidekapus
{`-`} has joined #haskell.nix
acarrico has joined #haskell.nix
acarrico has quit [Ping timeout: 240 seconds]
Tritlo has quit [Ping timeout: 260 seconds]
Tritlo has joined #haskell.nix
blackriversoftwa has quit [Ping timeout: 260 seconds]
blackriversoftwa has joined #haskell.nix
acarrico has joined #haskell.nix
fendor_ has joined #haskell.nix
fendor has quit [Ping timeout: 240 seconds]
acarrico has quit [Ping timeout: 246 seconds]
acarrico has joined #haskell.nix
acarrico has quit [Ping timeout: 260 seconds]
acarrico has joined #haskell.nix
fendor__ has joined #haskell.nix
fendor_ has quit [Ping timeout: 240 seconds]
__monty__ has joined #haskell.nix
fendor__ is now known as fendor
fendor has quit [Remote host closed the connection]
acarrico has quit [Ping timeout: 256 seconds]
fendor has joined #haskell.nix
fendor has quit [Remote host closed the connection]
heath has quit [Ping timeout: 256 seconds]
heath has joined #haskell.nix
arianvp has joined #haskell.nix
shapr has quit [Ping timeout: 256 seconds]
julm has quit [Ping timeout: 256 seconds]
shapr has joined #haskell.nix
shapr is now known as Guest98709
julm has joined #haskell.nix
Guest98709 is now known as shapr
shapr has joined #haskell.nix
shapr has quit [Changing host]
terrorjack has quit [Read error: Connection reset by peer]
terrorjack has joined #haskell.nix
fendor has joined #haskell.nix
<shapr> How do I start a new project with haskell.nix ? I want to use cabal to generate an empty project file, but it's not in scope until I start the shell?
<tnks> shapr: I normally end up with a small scaffold that I copy around from project to project... not that great. My scaffold is based on the docs, so not too out of the standard.
<tnks> shapr: to that end, I've been meaning to document all this more in what was my "example-nix" project, but has been going through some seismic changes on a local working directory.
<tnks> I could see some value of someone making a template, though. I guess Cabal supports that? If it does, I just haven't messed with it.
__monty__ has quit [Quit: leaving]
<shapr> tnks: I have alias cabnew='cabal init -m --is-executable --main-is=Main.hs -a "Shae Erisson" -l BSD3 --version=0.1.0.0 -e "shae@scannedinavian.com" -c Web --source-dir=. --package-dir=. -u ""'
<shapr> that creates an empty cabal project for me
<tnks> shapr: okay, nice way to make an empty Cabal project. Haskell.nix will invariably involve making a Nix expression. But honestly, you could probably make something could literally be copy/pasted into a directory that has a cabal.project file.
<tnks> Because all references to the project could be done with `./.`.
<tnks> But also, I'd really recommend either using Niv or Nix Flakes for any serious work. Using `<nixpkgs>` is a sin.
<shapr> I copy pasted from a previous project, but I think I modified default.nix incorrectly
<shapr> I copied this default.nix from the tutorial: https://input-output-hk.github.io/haskell.nix/tutorials/getting-started/
<shapr> when I run nix-shell -A shellFor I get error: attribute 'haskell-nix' missing, at /home/shae/build/hdedupe/default.nix:15:4
<tnks> shapr: can you post a Gist of this Nix expression? It seems like something that should stand out.
<shapr> ah, I had a shell.nix from the next page of the tutorial, that might have been part of the problem?
<shapr> Now I get failures with git clean
<shapr> sensibly, I haven't added anything to git yet!
<shapr> # 'cleanGit' cleans a source directory based on the files known by git
<shapr> I removed that from the expression, now I get error: attempt to call something which is not a function but a set, at /home/shae/build/hdedupe/default.nix:17:9
* shapr grumbles
<shapr> I just want to start a mostly empty project with haskell.nix :-(
<tnks> Yeah, I was going to make exactly this example... let me see if I have something on a repo you can look at as a reference.
<shapr> tnks: do you know how to create a default.nix that uses haskell.nix and lets me start up with a mostly empty project?
<shapr> yes please!
<tnks> shapr: yeah, I do... but I'd have to write it from scratch... I mean, let me see if I can do that real quick. Everything I have is slightly more complex than an empty project.
<tnks> But honestly, what I'd end up with wouldn't be much different from the docs.
<shapr> well, docs require that I have a project.cabal and have files checked into git
<shapr> I want to start simpler
<tnks> you mean cabal.project?
<tnks> Honestly, I'd go that route too anyway.
<tnks> And as for Git, you can bypass that. You just had a problem with your attempt.
<shapr> I want to try haskell.nix for advent of code solving, so I need something fast
<tnks> Well, I think Nix is not fast, generally. I've been spending a bit of time dealing with that.
<tnks> Lots of missing documentation and tooling.
<tnks> If you publish the scaffold project you have, I might able to fix it faster than piecing one from scratch now.
<shapr> well, it doesn't work
<shapr> but I'm trying to steal pieces from https://github.com/shapr/fermatslastmargin
<shapr> other than that, I'm using the default.nix straight from the tutorial
<tnks> shapr: do you have a link to the broken project that you're setting up with Haskell.nix, as opposed to the project you're copying from? That project looks like it's set up with the normal Nixpkgs Haskell infrastructure.
<shapr> I can pastebin a default.nix, but it's exactly the same as the default.nix from https://input-output-hk.github.io/haskell.nix/tutorials/getting-started/
<tnks> the `fetchTarball` call can be dangerous, because Nix will cache the first one you ever used, and not let it go. And Haskell.nix is a moving targe.
<tnks> the `fetchTarball` call can be dangerous, because Nix will cache the first one you ever used, and not let it go. And Haskell.nix is a moving target.
<tnks> (sorry... Slack has ruined me... updating is a reflex)
<tnks> shapr: so to start, can you put in a recent commit ID instead of "master" in "master.tar.gz"?
<shapr> ok, I'll go find one
<shapr> this is all new to me
hekkaidekapus_ has joined #haskell.nix
hekkaidekapus has quit [Ping timeout: 240 seconds]