Logs: freenode/#haskell
| 2021-02-27 12:08:18 | <jacks2> | use return to make IO a out of a |
| 2021-02-27 12:09:25 | <daffy> | ohhh |
| 2021-02-27 12:09:32 | <jacks2> | or, I guess, just print the result since you are in main |
| 2021-02-27 12:10:22 | hackage | PortMidi-simple 0.1.0.0 - Simplified PortMidi wrapper https://hackage.haskell.org/package/PortMidi-simple-0.1.0.0 (AlexanderBondarenko) |
| 2021-02-27 12:12:17 | <daffy> | right |
| 2021-02-27 12:13:43 | → | EoF joins (~EoF@ip5b419221.dynamic.kabel-deutschland.de) |
| 2021-02-27 12:15:27 | <daffy> | if I want to allow the user to input a filepath, does getLine work? or i guess the question i'm asking is does ghci read a filepath as a string |
| 2021-02-27 12:15:35 | × | danvet quits (~Daniel@2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa) (Ping timeout: 272 seconds) |
| 2021-02-27 12:15:49 | <jacks2> | yes. FilePath is just alias for String |
| 2021-02-27 12:15:54 | × | EoF quits (~EoF@ip5b419221.dynamic.kabel-deutschland.de) (Client Quit) |
| 2021-02-27 12:16:25 | <jacks2> | or you can pass it as command line argument |
| 2021-02-27 12:16:28 | <jacks2> | :t getArgs |
| 2021-02-27 12:16:29 | <lambdabot> | error: Variable not in scope: getArgs |
| 2021-02-27 12:16:34 | <jacks2> | @hoogle getArgs |
| 2021-02-27 12:16:34 | <lambdabot> | System.Environment getArgs :: IO [String] |
| 2021-02-27 12:16:35 | <lambdabot> | System.Environment.Blank getArgs :: IO [String] |
| 2021-02-27 12:16:35 | <lambdabot> | System.Directory.Internal.Prelude getArgs :: IO [String] |
| 2021-02-27 12:17:32 | <jacks2> | use the one in System.Environment getArgs |
| 2021-02-27 12:18:47 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 265 seconds) |
| 2021-02-27 12:19:16 | <daffy> | ah okay, thank you man |
| 2021-02-27 12:21:27 | → | gitgood joins (~gitgood@80-44-13-166.dynamic.dsl.as9105.com) |
| 2021-02-27 12:22:10 | <__monty__> | If you want to do command-line arguments take a look at optparse-applicative. |
| 2021-02-27 12:23:21 | → | nineonine joins (~nineonine@2604:3d08:7785:9600:8c3e:8d1a:de68:76d3) |
| 2021-02-27 12:23:39 | <jacks2> | he has yet to use Maybe, and is just starting how to use do blocks, optparse-applicative might be a bit too advanced at this point :) |
| 2021-02-27 12:23:46 | <jacks2> | starting to learn* |
| 2021-02-27 12:23:49 | × | emmanuel_erc quits (~user@2603-7000-9600-01c9-c589-d024-9ed2-1840.res6.spectrum.com) (Read error: Connection reset by peer) |
| 2021-02-27 12:24:44 | → | emmanuel_erc joins (~user@2603-7000-9600-01c9-c589-d024-9ed2-1840.res6.spectrum.com) |
| 2021-02-27 12:25:32 | × | peutetre quits (~peutetre@185.163.110.108) (Remote host closed the connection) |
| 2021-02-27 12:26:59 | × | basoares quits (~basoares@2a04:ee41:4:2178:a846:18f7:81d4:249b) (Ping timeout: 272 seconds) |
| 2021-02-27 12:27:47 | <__monty__> | Didn't see that context. And it still depends. Some people prefer just getting things done the dirty way, others prefer investing some more time up front to come to a more elegant solution. |
| 2021-02-27 12:28:14 | × | nineonine quits (~nineonine@2604:3d08:7785:9600:8c3e:8d1a:de68:76d3) (Ping timeout: 264 seconds) |
| 2021-02-27 12:31:27 | → | drbean_ joins (~drbean@TC210-63-209-94.static.apol.com.tw) |
| 2021-02-27 12:32:58 | → | __minoru__shirae joins (~shiraeesh@46.34.207.247) |
| 2021-02-27 12:33:51 | <daffy> | thanks guys for the help, do you guys have any recommendations on books to read or websites for learning haskell? |
| 2021-02-27 12:34:14 | → | geekosaur joins (ac3a8f5e@172.58.143.94) |
| 2021-02-27 12:34:24 | → | BigLama joins (~alex@static-176-165-167-17.ftth.abo.bbox.fr) |
| 2021-02-27 12:35:22 | <BigLama> | Hi guys, I have somme issues with the Req library https://hackage.haskell.org/package/req-3.9.0/docs/Network-HTTP-Req.html |
| 2021-02-27 12:35:28 | <__monty__> | If you're very new there's the books by Graham Hutton or Richard Bird or Haskell from first principles. If you're familiar with functional programming concepts CIS194 is often recommended. |
| 2021-02-27 12:35:46 | <__monty__> | @where hutton |
| 2021-02-27 12:35:46 | <lambdabot> | I know nothing about hutton. |
| 2021-02-27 12:36:12 | <BigLama> | The doc says "Note that if you use req to do all your requests, connection sharing and reuse is done for you automatically." However, I've mad a first requestion to log in (successful) but a second requestion do not seem to share connection... |
| 2021-02-27 12:36:30 | <BigLama> | s/requestion/request/ |
| 2021-02-27 12:37:13 | <daffy> | completely new to functional programming, i've done a little bit of racket but that's it |
| 2021-02-27 12:37:39 | → | dftxbs3e joins (~dftxbs3e@unaffiliated/dftxbs3e) |
| 2021-02-27 12:37:39 | × | emmanuel_erc quits (~user@2603-7000-9600-01c9-c589-d024-9ed2-1840.res6.spectrum.com) (Read error: Connection reset by peer) |
| 2021-02-27 12:37:49 | <__monty__> | @where PIH |
| 2021-02-27 12:37:49 | <lambdabot> | "Programming in Haskell" by Graham Hutton in 2007-01-15,2016-09-01 at <http://www.cs.nott.ac.uk/~pszgmh/pih.html> |
| 2021-02-27 12:38:04 | <__monty__> | http://www.cs.ox.ac.uk/publications/books/functional/ |
| 2021-02-27 12:38:12 | <__monty__> | @where HPFFP |
| 2021-02-27 12:38:12 | <lambdabot> | "Haskell Programming: from first principles - Pure functional programming without fear or frustration" by Chistopher Allen (bitemyapp),Julie Moronuki at <http://haskellbook.com/>,#haskell-beginners |
| 2021-02-27 12:38:26 | → | emmanuel_erc joins (~user@2603-7000-9600-01c9-c589-d024-9ed2-1840.res6.spectrum.com) |
| 2021-02-27 12:38:29 | <daffy> | awesome, thanks! |
| 2021-02-27 12:39:26 | <__monty__> | BigLama: Compiled or in GHCi? And maybe it's only about reusing TCP connections? |
| 2021-02-27 12:42:37 | × | chloekek quits (~chloekek@84-80-232-61.fixed.kpn.net) (Quit: Leaving) |
| 2021-02-27 12:43:56 | <ij> | does repa or vector have functionality that could grow each pixel into a NxN in place? |
| 2021-02-27 12:45:22 | → | bergey joins (~user@pool-74-108-99-127.nycmny.fios.verizon.net) |
| 2021-02-27 12:45:57 | × | xelxebar_ quits (~xelxebar@gateway/tor-sasl/xelxebar) (Remote host closed the connection) |
| 2021-02-27 12:47:48 | → | xelxebar joins (~xelxebar@gateway/tor-sasl/xelxebar) |
| 2021-02-27 12:48:18 | × | LKoen quits (~LKoen@185.61.176.203) (Remote host closed the connection) |
| 2021-02-27 12:48:28 | <BigLama> | __monty__: compiled |
| 2021-02-27 12:48:52 | hackage | hslua-core 1.0.0 - Bindings to Lua, an embeddable scripting language https://hackage.haskell.org/package/hslua-core-1.0.0 (tarleb) |
| 2021-02-27 12:49:04 | <BigLama> | __monty__: that would be too bad. I'm looking for the same functionnalites as sessions in Python's requests |
| 2021-02-27 12:49:53 | <__monty__> | BigLama: I'd wait for someone who's familiar with the library. That may well be the intent. |
| 2021-02-27 12:50:58 | × | pavonia quits (~user@unaffiliated/siracusa) (Quit: Bye!) |
| 2021-02-27 12:50:58 | × | emmanuel_erc quits (~user@2603-7000-9600-01c9-c589-d024-9ed2-1840.res6.spectrum.com) (Read error: Connection reset by peer) |
| 2021-02-27 12:51:22 | <BigLama> | __monty__: Okay, thanks. I've spend quite a few hours trying to make this work but could not figure it out |
| 2021-02-27 12:51:32 | → | emmanuel_erc joins (~user@2603-7000-9600-01c9-c589-d024-9ed2-1840.res6.spectrum.com) |
| 2021-02-27 12:51:57 | <ij> | what I'm looking for is actually flatten :D |
| 2021-02-27 12:52:53 | → | basoares joins (~basoares@2a04:ee41:4:2178:ed37:7464:5079:3088) |
| 2021-02-27 12:54:39 | <__monty__> | BigLama: Are you doing all the requests with req in a single `runReq`? |
| 2021-02-27 12:55:33 | <BigLama> | __monty__: I've tried in a single runReq and in severals |
| 2021-02-27 12:57:04 | <__monty__> | And you're sure you don't need to pass an authentication token you get from the login in the headers of other requests? |
| 2021-02-27 12:57:08 | × | forgottenone quits (~forgotten@176.42.27.254) (Read error: Connection reset by peer) |
| 2021-02-27 12:57:29 | → | elfets joins (~elfets@ip-37-201-23-96.hsi13.unitymediagroup.de) |
| 2021-02-27 12:57:57 | × | emmanuel_erc quits (~user@2603-7000-9600-01c9-c589-d024-9ed2-1840.res6.spectrum.com) (Read error: Connection reset by peer) |
| 2021-02-27 12:58:11 | → | forgottenone joins (~forgotten@176.42.27.254) |
| 2021-02-27 12:58:54 | → | emmanuel_erc joins (~user@2603-7000-9600-01c9-c589-d024-9ed2-1840.res6.spectrum.com) |
| 2021-02-27 12:59:31 | <BigLama> | __monty__: I don't know. In python, I log in first using a POST request and using their sessions mecanims, there is no need to pass anything else later on |
| 2021-02-27 12:59:46 | → | darjeeling_ joins (~darjeelin@122.245.218.150) |
| 2021-02-27 12:59:54 | <tomsmeding> | presumably it stores a cookie or something |
| 2021-02-27 13:00:10 | × | GZJ0X__ quits (~gzj@unaffiliated/gzj) (Remote host closed the connection) |
| 2021-02-27 13:00:31 | → | GZJ0X__ joins (~gzj@unaffiliated/gzj) |
| 2021-02-27 13:00:59 | <BigLama> | tomsmeding: Req does not allow for cookies management at my beginner level :/ |
| 2021-02-27 13:01:02 | <BigLama> | https://paste.tomsmeding.com/DBMIZz02 |
| 2021-02-27 13:01:03 | <tomsmeding> | web services don't generally require you to actually keep one tcp connection open when sending multiple requests for one account, because many http applications don't support that for various reasons |
| 2021-02-27 13:01:40 | <tomsmeding> | "Support for cookies is quite minimalistic at the moment." - oh |
| 2021-02-27 13:01:45 | <BigLama> | Here's my code for reference. The first GET request is a hack to get some attribute. The second request should be enough to stay logged Inoperable |
| 2021-02-27 13:02:02 | <BigLama> | logged in* |
| 2021-02-27 13:02:12 | <BigLama> | Back to Python I think :/ |
| 2021-02-27 13:02:46 | <tomsmeding> | let me have a look |
| 2021-02-27 13:04:21 | <tomsmeding> | oh I was looking at the wrong library lol |
| 2021-02-27 13:04:40 | × | emmanuel_erc quits (~user@2603-7000-9600-01c9-c589-d024-9ed2-1840.res6.spectrum.com) (Read error: Connection reset by peer) |
| 2021-02-27 13:05:06 | <BigLama> | tomsmeding: It's this one https://hackage.haskell.org/package/req. Thanks ! |
| 2021-02-27 13:05:16 | → | mputz joins (~Thunderbi@dslb-088-064-063-125.088.064.pools.vodafone-ip.de) |
| 2021-02-27 13:05:31 | → | emmanuel_erc joins (~user@2603-7000-9600-01c9-c589-d024-9ed2-1840.res6.spectrum.com) |
| 2021-02-27 13:06:05 | <ij> | ah, it's actually the kronecker product I'm looking for!\ |
| 2021-02-27 13:06:31 | <tomsmeding> | ij: you sure it's not traverse? |
| 2021-02-27 13:06:36 | <ij> | tomsmeding, haha |
| 2021-02-27 13:06:39 | <ij> | it's always traverse |
| 2021-02-27 13:06:46 | <tomsmeding> | it's always traverse |
All times are in UTC.