Logs: freenode/#haskell
| 2021-03-13 13:24:55 | → | RamZess joins (~osboxes@213.142.184.77) |
| 2021-03-13 13:25:18 | <RamZess> | hello everyone |
| 2021-03-13 13:25:28 | → | heatsink joins (~heatsink@2600:1700:bef1:5e10:c79:3d13:d977:c947) |
| 2021-03-13 13:27:58 | × | juri_ quits (~juri@178.63.35.222) (Ping timeout: 245 seconds) |
| 2021-03-13 13:30:02 | × | RamZess quits (~osboxes@213.142.184.77) (Quit: leaving) |
| 2021-03-13 13:30:02 | × | heatsink quits (~heatsink@2600:1700:bef1:5e10:c79:3d13:d977:c947) (Ping timeout: 264 seconds) |
| 2021-03-13 13:30:27 | × | wilkie quits (~wilkie@217.146.82.202) (Remote host closed the connection) |
| 2021-03-13 13:31:21 | <geekosaur> | hello |
| 2021-03-13 13:31:24 | → | RamZess joins (~osboxes@213.142.184.77) |
| 2021-03-13 13:31:27 | <geekosaur> | oh, they left |
| 2021-03-13 13:32:54 | × | bergey` quits (~user@pool-74-108-99-127.nycmny.fios.verizon.net) (Ping timeout: 246 seconds) |
| 2021-03-13 13:33:00 | <RamZess> | Is anybody here alive and ready to help? I have a couple of beginner questions about stack and ghci. |
| 2021-03-13 13:33:28 | → | matryoshka joins (~matryoshk@2606:6080:1002:8:3285:30e:de43:8809) |
| 2021-03-13 13:33:29 | <siraben> | RamZess: don't ask to ask, just ask! |
| 2021-03-13 13:35:06 | → | juri_ joins (~juri@178.63.35.222) |
| 2021-03-13 13:37:10 | × | forgottenone quits (~forgotten@176.42.24.172) (Remote host closed the connection) |
| 2021-03-13 13:37:33 | <Lycurgus> | but it's OK that you already did |
| 2021-03-13 13:37:59 | <Lycurgus> | it's just common IRC etiquette not to |
| 2021-03-13 13:38:05 | → | tromp joins (~tromp@dhcp-077-249-230-040.chello.nl) |
| 2021-03-13 13:38:12 | <gentauro> | RamZess: as long as peeps don't reply: "You should just drop stack and use cabal" :P (happens from time to time, sadly) |
| 2021-03-13 13:39:19 | → | forgottenone joins (~forgotten@176.42.24.172) |
| 2021-03-13 13:39:41 | → | Tario joins (~Tario@201.192.165.173) |
| 2021-03-13 13:39:50 | Lycurgus | recommends set .stack yaml to lts 8.6.5 and use stack repl |
| 2021-03-13 13:40:00 | → | Hobbestigrou1 joins (~Hobbestig@195.140.213.38) |
| 2021-03-13 13:40:49 | <geekosaur> | the latter in particular, since stack wants to manage ghc itself so you can't just run ghci, you need to run it via stack |
| 2021-03-13 13:41:18 | <RamZess> | Let say I wanna play with standalone hs file (~/dev/HelloWorld.has). There is no stack project there but I have stack installed. When I start "stack ghci -packages xzy" it says that I'm using "global-project" and install packages into ~/.stack/snapshots. I want to use permament for "global-project" some packages. I put them into "packages" ~/.stack/global-project/stack.yaml but it does not work. Any |
| 2021-03-13 13:41:24 | <RamZess> | suggestions? |
| 2021-03-13 13:41:27 | → | Jd007 joins (~Jd007@162.156.11.151) |
| 2021-03-13 13:42:58 | × | tromp quits (~tromp@dhcp-077-249-230-040.chello.nl) (Ping timeout: 245 seconds) |
| 2021-03-13 13:44:50 | × | drbean quits (~drbean@TC210-63-209-202.static.apol.com.tw) (Quit: ZNC 1.8.2+cygwin2 - https://znc.in) |
| 2021-03-13 13:45:33 | × | stree quits (~stree@68.36.8.116) (Ping timeout: 264 seconds) |
| 2021-03-13 13:46:07 | → | ddellacosta joins (ddellacost@gateway/vpn/mullvad/ddellacosta) |
| 2021-03-13 13:47:25 | → | idhugo joins (~idhugo@87-49-147-45-mobile.dk.customer.tdc.net) |
| 2021-03-13 13:50:01 | × | Jd007 quits (~Jd007@162.156.11.151) (Quit: Jd007) |
| 2021-03-13 13:50:07 | <gentauro> | RamZess: when I use `stack + ghci` for scripting I do something like this -> https://gitlab.com/spisemisu/pcx-utils/-/blob/master/src/pcf-v61-teams.hs#L1-9 |
| 2021-03-13 13:50:49 | <gentauro> | oh, that script doesn't have packages. W8 a second |
| 2021-03-13 13:51:13 | × | ddellacosta quits (ddellacost@gateway/vpn/mullvad/ddellacosta) (Ping timeout: 276 seconds) |
| 2021-03-13 13:51:36 | <gentauro> | RamZess: there you go -> https://gitlab.com/spisemisu/remove-facebook-content/-/blob/master/RFC.hs#L1-13 |
| 2021-03-13 13:52:03 | <gentauro> | RamZess: the `trick` is to call add packages with double dash -> `--package aeson` |
| 2021-03-13 13:52:06 | <gentauro> | ;) |
| 2021-03-13 13:54:25 | <RamZess> | gentauro: I yep double dash, it was a mistake. I want to have kind of a standard set of packages that are already references (without --package ..) when I start stack gchi |
| 2021-03-13 13:57:01 | <RamZess> | gentauro: when I use the .hs with script annotated packages would it be correct intepreted with "stack ghci"? |
| 2021-03-13 13:57:20 | → | urodna joins (~urodna@unaffiliated/urodna) |
| 2021-03-13 13:58:16 | → | stree joins (~stree@68.36.8.116) |
| 2021-03-13 14:00:24 | × | Lycurgus quits (~niemand@98.4.114.199) (Quit: Exeunt) |
| 2021-03-13 14:00:38 | × | aarvar quits (~foewfoiew@2601:602:a080:fa0:6cfb:c91f:3c9a:a8cb) (Ping timeout: 264 seconds) |
| 2021-03-13 14:01:42 | → | zebrag joins (~inkbottle@aaubervilliers-654-1-101-29.w86-212.abo.wanadoo.fr) |
| 2021-03-13 14:03:50 | → | seanparsons joins (~sean@cpc145088-gill21-2-0-cust281.20-1.cable.virginm.net) |
| 2021-03-13 14:07:54 | → | __minoru__shirae joins (~shiraeesh@109.166.56.41) |
| 2021-03-13 14:09:34 | → | timCF joins (~i.tkachuk@m91-129-99-43.cust.tele2.ee) |
| 2021-03-13 14:15:16 | → | fendor joins (~fendor@178.115.131.242.wireless.dyn.drei.com) |
| 2021-03-13 14:15:20 | × | fendor quits (~fendor@178.115.131.242.wireless.dyn.drei.com) (Remote host closed the connection) |
| 2021-03-13 14:15:51 | → | fendor joins (~fendor@178.115.131.242.wireless.dyn.drei.com) |
| 2021-03-13 14:15:53 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2021-03-13 14:15:57 | <timCF> | Hello! Can anybody recommend elegent way to compose pipline of multiple `MonadIO m => prev -> m (Either Error next)` expressions without tons of `case` expressions? `next` type is used as `prev` in next expression in pipline |
| 2021-03-13 14:17:23 | → | alx741 joins (~alx741@181.196.69.27) |
| 2021-03-13 14:22:09 | × | frozenErebus quits (~frozenEre@94.128.82.20) (Ping timeout: 264 seconds) |
| 2021-03-13 14:22:52 | → | CrazyPython joins (~crazypyth@98.122.164.118) |
| 2021-03-13 14:23:09 | <absence> | timCF: check out ExceptT in transformers |
| 2021-03-13 14:24:28 | × | clog quits (~nef@bespin.org) (Ping timeout: 260 seconds) |
| 2021-03-13 14:24:36 | <absence> | "MonadIO m => prev -> ExceptT Error m next" can be composed using normal monad operators, like =<<, <=<, etc |
| 2021-03-13 14:25:41 | → | ddellacosta joins (~ddellacos@86.106.143.10) |
| 2021-03-13 14:25:45 | → | Sornaensis joins (~kvirc@077213203030.dynamic.telenor.dk) |
| 2021-03-13 14:26:12 | → | heatsink joins (~heatsink@2600:1700:bef1:5e10:c79:3d13:d977:c947) |
| 2021-03-13 14:26:28 | <timCF> | absence: thanks! |
| 2021-03-13 14:27:25 | <Philonous> | Is there a tool that automatically generates / updates package version bounds in a cabal file? |
| 2021-03-13 14:29:57 | → | tromp joins (~tromp@dhcp-077-249-230-040.chello.nl) |
| 2021-03-13 14:30:18 | × | ddellacosta quits (~ddellacos@86.106.143.10) (Ping timeout: 246 seconds) |
| 2021-03-13 14:31:14 | × | heatsink quits (~heatsink@2600:1700:bef1:5e10:c79:3d13:d977:c947) (Ping timeout: 264 seconds) |
| 2021-03-13 14:31:22 | <absence> | if i have an MVector, and a function that takes Vector, can i somehow make them talk to eachother without creating a copy? |
| 2021-03-13 14:31:23 | → | usr25 joins (~usr25@unaffiliated/usr25) |
| 2021-03-13 14:32:35 | → | frozenErebus joins (~frozenEre@94.128.82.20) |
| 2021-03-13 14:34:10 | <sm[m]> | Philonous: cabal-bounds, I'm thinking |
| 2021-03-13 14:35:57 | → | Stanley00 joins (~stanley00@unaffiliated/stanley00) |
| 2021-03-13 14:37:17 | <sm[m]> | RamZess, this works: in ~/.ghci add :set -package pretty-simple, etc. |
| 2021-03-13 14:37:37 | <timCF> | absence: seems like ExceptT relies on throwing/catching runtime exceptions? This does not sounds good. Version of code with tons of `<-` and `case` expressions used to compose `IO Either a b` expressions is ugly, but at least error handling is pure |
| 2021-03-13 14:38:08 | <sm[m]> | RamZess: but next time those packages aren't installed, eg after a global stackage resolver update, GHCI won't start |
| 2021-03-13 14:38:13 | → | coot joins (~coot@37.30.55.141.nat.umts.dynamic.t-mobile.pl) |
| 2021-03-13 14:39:15 | → | pera joins (~pera@unaffiliated/pera) |
| 2021-03-13 14:41:33 | <RamZess> | sm[m] ! thax It works! |
| 2021-03-13 14:42:17 | <absence> | timCF: it doesn't, it just sounds like it because of the names used for the functions and types. if you look at the source code, it's just does the pattern matching behing the scenes |
| 2021-03-13 14:42:38 | → | bergey` joins (~user@pool-74-108-99-127.nycmny.fios.verizon.net) |
| 2021-03-13 14:43:47 | <absence> | timCF: it's identical to MaybeT for Maybe in that regard, but due to an unfortunate historical incident, the name EitherT was already taken, so we're stuck with the somewhat misleading ExceptT |
| 2021-03-13 14:43:53 | <timCF> | absence: hmm, I've just got confused of lots of `SomeException` handlers in this example http://www.mega-nerd.com/erikd/Blog/CodeHacking/Haskell/what_do_you_mean.html |
| 2021-03-13 14:44:37 | <sm[m]> | np |
| 2021-03-13 14:45:53 | <absence> | timCF: i don't think the ExceptT in that example is the same one |
| 2021-03-13 14:46:11 | → | monadmatt joins (~user@119-17-128-101.771180.mel.nbn.aussiebb.net) |
| 2021-03-13 14:47:13 | <absence> | timCF: https://hackage.haskell.org/package/transformers-0.5.6.2/docs/Control-Monad-Trans-Except.html#t:ExceptT |
| 2021-03-13 14:47:25 | × | geekosaur quits (ac3a5746@172.58.87.70) (Quit: Connection closed) |
| 2021-03-13 14:47:30 | × | tfl^ quits (tfl@ip98-184-89-2.mc.at.cox.net) (Read error: Connection reset by peer) |
| 2021-03-13 14:47:49 | <timCF> | absence: thanks! |
| 2021-03-13 14:50:03 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 245 seconds) |
| 2021-03-13 14:54:17 | <Philonous> | absence, There's unsafeFreeze, but it's unsafe, as the name implies. In particular, if you change the MVector later you might get unexpected behaviour |
| 2021-03-13 14:55:00 | × | tromp quits (~tromp@dhcp-077-249-230-040.chello.nl) (Remote host closed the connection) |
| 2021-03-13 14:55:45 | × | monadmatt quits (~user@119-17-128-101.771180.mel.nbn.aussiebb.net) (Ping timeout: 264 seconds) |
| 2021-03-13 14:57:43 | → | tromp joins (~tromp@dhcp-077-249-230-040.chello.nl) |
| 2021-03-13 14:58:30 | × | zebrag quits (~inkbottle@aaubervilliers-654-1-101-29.w86-212.abo.wanadoo.fr) (Quit: Konversation terminated!) |
| 2021-03-13 14:58:40 | → | ddellacosta joins (~ddellacos@86.106.143.226) |
| 2021-03-13 14:58:52 | → | zebrag joins (~inkbottle@aaubervilliers-654-1-101-29.w86-212.abo.wanadoo.fr) |
| 2021-03-13 15:00:55 | → | ddellaco_ joins (ddellacost@gateway/vpn/mullvad/ddellacosta) |
All times are in UTC.