turion / essence-of-live-coding-tutorial

Tutorial for essence-of-live-coding
BSD 3-Clause "New" or "Revised" License
16 stars 4 forks source link

Add pulse flag to build with pulse audio backend on Linux #5

Closed neosimsim closed 4 years ago

turion commented 4 years ago

Either way, that's very useful.

neosimsim commented 4 years ago

I currently see two ways to disable the flag manually. Either by running

cabal configure --constraint 'essence-of-live-coding-tutorial -pulse'

or by changing the command in ghicd to

cabal repl -f -pulse

.

I can comment both in the README if you like.

neosimsim commented 4 years ago
cabal repl -f -pulse

Or maybe —flag. As a Unix/POSIX fan I usually keep to single letter option but that’s not the general opinion I guess.

neosimsim commented 4 years ago

I’d prefer cabal config The flag is then persisted in cabal.project.local (which should be ignore). Changing ghicd dirties the working git tree.

turion commented 4 years ago

Or make the flag default true and add a comment in the readme how to turn it off?

neosimsim commented 4 years ago

Or make the flag default true and add a comment in the readme how to turn it off?

True is the default default https://cabal.readthedocs.io/en/3.4/cabal-package.html?highlight=flags#pkg-field-flag-default

turion commented 4 years ago

Ah great! Ok then.

turion commented 4 years ago

Thanks!

Btw. Someone ran this successfully on a mac and in fact Pulseaudio throws an error there.

turion commented 4 years ago

I'll update the readme.