Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2021-03-16 06:50:42 sord937 joins (~sord937@gateway/tor-sasl/sord937)
2021-03-16 06:50:50 <gaff> i tried putting stackage url in cabal config file, but that doesn't work.
2021-03-16 06:51:04 <guest316> call that c's fixed-point inside a Cont do-notaion, it creates a loop
2021-03-16 06:51:13 <guest316> that's confused me
2021-03-16 06:51:44 <sclv> stack uses packages from hackage ultimately too
2021-03-16 06:52:05 <sclv> the lts is just a file listing a subset of pckages and versions
2021-03-16 06:52:15 <sclv> its not a special package repo
2021-03-16 06:52:29 jhrcek joins (~jhrcek@ip-89-103-183-101.net.upcbroadband.cz)
2021-03-16 06:52:32 <sclv> its additional data to hackage not a replacement
2021-03-16 06:52:36 <olligobber> guest316, are you talking about `setjmp = callCC (\c -> return (fix c))' ?
2021-03-16 06:52:39 <gaff> ok
2021-03-16 06:52:48 × jhrcek quits (~jhrcek@ip-89-103-183-101.net.upcbroadband.cz) (Client Quit)
2021-03-16 06:53:04 jhrcek joins (~jhrcek@ip-89-103-183-101.net.upcbroadband.cz)
2021-03-16 06:53:28 <gaff> so how can you get a curated set of packages using cabal, just like the ones listed in stackage LTS?
2021-03-16 06:53:56 <sclv> stackage lets you download a freeze file.
2021-03-16 06:54:04 <sclv> but also, why?
2021-03-16 06:54:55 <gaff> just so that i can be sure that when cabal installs a package, i don't run into conflicts.
2021-03-16 06:55:07 Lycurgus joins (~niemand@98.4.116.165)
2021-03-16 06:55:24 <sclv> just use cabal build and projects
2021-03-16 06:55:31 <sclv> and dont install libs directly
2021-03-16 06:55:35 <gaff> can you elaborate on the freeze file?
2021-03-16 06:55:43 <sclv> and the solver prevents this for you
2021-03-16 06:56:00 <sclv> im trying to find it - they hide it for some reason
2021-03-16 06:56:48 × aki_ quits (~aki_@185.204.1.185) ()
2021-03-16 06:57:51 <gaff> ok, here is what i want -- i don't have any complex set up that requires multiple versions of a package or ghc. so all i want to do is have cabal install packages in ~/.cabal directory, but all installed packages must be compatible.
2021-03-16 06:58:04 <sclv> gaff: like this — curl https://www.stackage.org/lts-12.21/cabal.config > cabal.project.freeze
2021-03-16 06:58:21 <sclv> thats not the way to use cabal these days!
2021-03-16 06:58:30 <gaff> i see
2021-03-16 06:58:50 <sclv> with new build it just manages your deps for you. You never have to manually install a package at all
2021-03-16 06:59:23 <sclv> its described in the nix-style builds section of the cabal user guide iirc
2021-03-16 06:59:42 <gaff> ok
2021-03-16 06:59:59 <sclv> https://cabal.readthedocs.io/en/3.4/nix-local-build-overview.html
2021-03-16 07:00:31 <sclv> note that this is outdated in that you don’t need the v2 prefix anymore on a sufficiently recent cabal
2021-03-16 07:00:31 <gaff> so for each project, you just do a nix style build?
2021-03-16 07:00:36 <sclv> yep
2021-03-16 07:00:48 <sclv> which is now just named “build”
2021-03-16 07:00:56 <guest316> olligobber: yes
2021-03-16 07:01:07 <gaff> so default is nix style build
2021-03-16 07:01:09 <gaff> ?
2021-03-16 07:01:14 <sclv> Yes
2021-03-16 07:01:55 <gaff> i am using cabal 3.4, by the way
2021-03-16 07:02:02 <sclv> cool
2021-03-16 07:02:04 <gaff> and ghc 8.10.4
2021-03-16 07:02:23 <sclv> thats all good up to date stuff
2021-03-16 07:03:02 shad0w_ joins (67573b43@103.87.59.67)
2021-03-16 07:03:03 × idhugo_ quits (~idhugo@87-49-147-45-mobile.dk.customer.tdc.net) (Ping timeout: 246 seconds)
2021-03-16 07:04:35 sh9 joins (~sh9@softbank060116136158.bbtec.net)
2021-03-16 07:04:39 <gaff> also, i have a question -- what are the uses of hscolour, alex, and happy?
2021-03-16 07:04:56 × Varis quits (~Tadas@unaffiliated/varis) (Remote host closed the connection)
2021-03-16 07:05:39 <gaff> i am looking for creating local html documentation of packages pulled by cabal from hackage
2021-03-16 07:05:58 <sclv> the first produces pretty printed source, haddock uses it. The others are parser and lexer generators used by many packages
2021-03-16 07:06:20 <sclv> Cabal has flags to generate docs
2021-03-16 07:06:30 <sclv> Its in the guide
2021-03-16 07:06:49 <gaff> yeah, set documentation: True
2021-03-16 07:06:53 dni53363 joins (~dni46445@static-198-54-131-94.cust.tzulo.com)
2021-03-16 07:07:32 × dni53363 quits (~dni46445@static-198-54-131-94.cust.tzulo.com) (Remote host closed the connection)
2021-03-16 07:07:51 dni53363 joins (~dni46445@static-198-54-131-94.cust.tzulo.com)
2021-03-16 07:07:58 × dni53363 quits (~dni46445@static-198-54-131-94.cust.tzulo.com) (Max SendQ exceeded)
2021-03-16 07:08:21 dni53363 joins (~dni46445@static-198-54-131-94.cust.tzulo.com)
2021-03-16 07:09:09 × dni53363 quits (~dni46445@static-198-54-131-94.cust.tzulo.com) (Max SendQ exceeded)
2021-03-16 07:09:14 × howdoi quits (uid224@gateway/web/irccloud.com/x-evlatajzqwspjogs) (Quit: Connection closed for inactivity)
2021-03-16 07:09:31 dni53363 joins (~dni46445@static-198-54-131-94.cust.tzulo.com)
2021-03-16 07:09:51 × dni53363 quits (~dni46445@static-198-54-131-94.cust.tzulo.com) (Max SendQ exceeded)
2021-03-16 07:10:36 dni53363 joins (~dni46445@static-198-54-131-60.cust.tzulo.com)
2021-03-16 07:10:42 Lord_of_Life joins (~Lord@unaffiliated/lord-of-life/x-0885362)
2021-03-16 07:10:48 × dni53363 quits (~dni46445@static-198-54-131-60.cust.tzulo.com) (Max SendQ exceeded)
2021-03-16 07:11:12 dni53363 joins (~dni46445@static-198-54-131-60.cust.tzulo.com)
2021-03-16 07:11:23 × dni53363 quits (~dni46445@static-198-54-131-60.cust.tzulo.com) (Max SendQ exceeded)
2021-03-16 07:11:52 dni53363 joins (~dni46445@static-198-54-131-60.cust.tzulo.com)
2021-03-16 07:12:11 × dni53363 quits (~dni46445@static-198-54-131-60.cust.tzulo.com) (Max SendQ exceeded)
2021-03-16 07:12:26 poscat joins (~poscat@2408:8207:4825:c7c0::1)
2021-03-16 07:12:34 dni53363 joins (~dni46445@static-198-54-131-60.cust.tzulo.com)
2021-03-16 07:12:58 × dni53363 quits (~dni46445@static-198-54-131-60.cust.tzulo.com) (Max SendQ exceeded)
2021-03-16 07:13:09 × sh9 quits (~sh9@softbank060116136158.bbtec.net) (Quit: WeeChat 2.8)
2021-03-16 07:13:10 plutoniix joins (~q@ppp-223-24-63-1.revip6.asianet.co.th)
2021-03-16 07:13:19 dni53363 joins (~dni46445@static-198-54-131-60.cust.tzulo.com)
2021-03-16 07:13:25 <gaff> sclv: so i don't need to worry about installing hscolour, alex, or happy. cabal will download & install them if other packages need it. correct?
2021-03-16 07:13:43 × dni53363 quits (~dni46445@static-198-54-131-60.cust.tzulo.com) (Max SendQ exceeded)
2021-03-16 07:15:42 <Uniaika> gaff: yep
2021-03-16 07:16:13 <gaff> sclv: thank you
2021-03-16 07:16:16 dni53363 joins (~dni46445@static-198-54-131-174.cust.tzulo.com)
2021-03-16 07:16:38 × dni53363 quits (~dni46445@static-198-54-131-174.cust.tzulo.com) (Max SendQ exceeded)
2021-03-16 07:16:59 dni53363 joins (~dni46445@static-198-54-131-174.cust.tzulo.com)
2021-03-16 07:17:21 × dni53363 quits (~dni46445@static-198-54-131-174.cust.tzulo.com) (Max SendQ exceeded)
2021-03-16 07:17:24 <gaff> sclv: unfortunately, the cabal documentation on nix build looks outdated. it still says v2 in build in cabal 3.4 documentation.
2021-03-16 07:17:43 dni53363 joins (~dni46445@static-198-54-131-174.cust.tzulo.com)
2021-03-16 07:17:50 <gaff> i wonder why they haven't updated this stuff.
2021-03-16 07:17:57 × dni53363 quits (~dni46445@static-198-54-131-174.cust.tzulo.com) (Max SendQ exceeded)
2021-03-16 07:18:01 <sclv> yes. Other than that it’s correct
2021-03-16 07:18:13 <gaff> sclv: thnks
2021-03-16 07:18:16 <sclv> They’re working in new docs, but have limited resources
2021-03-16 07:18:19 dni53363 joins (~dni46445@static-198-54-131-174.cust.tzulo.com)
2021-03-16 07:18:24 <gaff> i see
2021-03-16 07:18:47 × dni53363 quits (~dni46445@static-198-54-131-174.cust.tzulo.com) (Max SendQ exceeded)
2021-03-16 07:19:21 dni53363 joins (~dni46445@static-198-54-131-174.cust.tzulo.com)
2021-03-16 07:19:45 × dni53363 quits (~dni46445@static-198-54-131-174.cust.tzulo.com) (Max SendQ exceeded)
2021-03-16 07:20:17 × tzh quits (~tzh@c-24-21-73-154.hsd1.wa.comcast.net) (Quit: zzz)
2021-03-16 07:20:25 <gaff> juts want to confirm one more thing, since the docs are not updated. to fetch package html documentation through cabal, all i need is to set documentation: True in cabal config file (which is now in ~/.cabal folder)?
2021-03-16 07:20:37 cfricke joins (~cfricke@unaffiliated/cfricke)
2021-03-16 07:20:49 joncol joins (~jco@c188-150-101-195.bredband.comhem.se)

All times are in UTC.