infinisil changed the topic of #nix-lang to: Channel for discussing Nix as a language - https://nixos.org/nix/manual/#chap-writing-nix-expressions - Logs: https://logs.nix.samueldr.com/nix-lang/
Synthetica has quit [Quit: Connection closed for inactivity]
andi- has quit [Remote host closed the connection]
andi- has joined #nix-lang
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nix-lang
evanjs has quit [Client Quit]
evanjs has joined #nix-lang
evanjs has quit [Ping timeout: 244 seconds]
evanjs has joined #nix-lang
evanjs has quit [Ping timeout: 245 seconds]
evanjs- has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nix-lang
__monty__ has joined #nix-lang
jtojnar has joined #nix-lang
jtojnar has quit [Ping timeout: 244 seconds]
jtojnar_ has joined #nix-lang
__monty__ has quit [Quit: leaving]
andi- has quit [Remote host closed the connection]
andi- has joined #nix-lang
evanjs- has joined #nix-lang
hmpffff has joined #nix-lang
ddellacosta has joined #nix-lang
evanjs- has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs- has joined #nix-lang
evanjs is now known as Guest71254
evanjs- is now known as evanjs
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nix-lang
ddellacosta has quit [Ping timeout: 268 seconds]
ddellacosta has joined #nix-lang
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nix-lang
evanjs has quit [Client Quit]
evanjs has joined #nix-lang
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nix-lang
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nix-lang
ddellacosta has quit [Ping timeout: 245 seconds]
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nix-lang
ddellacosta has joined #nix-lang
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nix-lang
ddellacosta has quit [Ping timeout: 246 seconds]
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nix-lang
evanjs has quit [*.net *.split]
evanjs has joined #nix-lang
qyliss has joined #nix-lang
<qyliss> There's a better way of writing `if a == null then b else a`, right?
<infinisil> I am quite fond of isNull, but apparenty that's soft deprecated
<qyliss> I was more hoping for a function like fromMaybe in Haskell
<qyliss> I thought I'd be able to write `a or b`
<infinisil> Yeah, nothing in nixpkgs' lib for that pretty sure
<pie_> tfw no type classes
<infinisil> > fromMaybe = default: optional: if optional == null then default else optional
<{^_^}> fromMaybe defined
<infinisil> Not sure what this has to do with typeclasses lol
<pie_> having looked at the implementation of fromMaybe, nevermind
<pie_> "The Maybe type is also a monad. It is a simple kind of error monad, where all errors are represented by Nothing. "
* pie_ tries to figure out how to read haddock again
jtojnar_ has quit [Quit: jtojnar_]
ddellacosta has joined #nix-lang
jtojnar has joined #nix-lang
pie_ has quit [Quit: pie_]
pie_ has joined #nix-lang
pie_ has quit [Max SendQ exceeded]
pie_ has joined #nix-lang
pie_ has quit [Max SendQ exceeded]
pie_ has joined #nix-lang
pie_ has quit [Max SendQ exceeded]
pie_ has joined #nix-lang
pie_ has quit [Max SendQ exceeded]
pie_ has joined #nix-lang
pie_ has quit [Max SendQ exceeded]
qyliss has quit [Quit: bye]
qyliss has joined #nix-lang
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nix-lang
evanjs has quit [Ping timeout: 240 seconds]
evanjs has joined #nix-lang