Logs: freenode/#haskell
| 2020-09-19 19:56:10 | <lechner> | Hi, I saw STACK_ROOT for downloaded packages. How can I redirect 'stack update' to a place other than ~/.local/bin? |
| 2020-09-19 19:56:11 | <davean> | incorrect |
| 2020-09-19 19:56:23 | <energizer> | davean: what happens instead? |
| 2020-09-19 19:56:30 | <merijn> | energizer: It will, but if you use -Wall (and you should) you'll get a warning |
| 2020-09-19 19:56:31 | → | shad0w_ joins (~arjun@160.202.36.27) |
| 2020-09-19 19:56:33 | <davean> | energizer: you can enable -Wall to get warnings about missing cases (or a more specific flag), and -Werror would prevent the compile. |
| 2020-09-19 19:56:44 | <energizer> | what will happen at runtime? |
| 2020-09-19 19:56:45 | × | danvet_ quits (~Daniel@2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa) (Ping timeout: 272 seconds) |
| 2020-09-19 19:56:48 | <merijn> | energizer: It'll crash |
| 2020-09-19 19:56:58 | <davean> | well, it'll throw an exception |
| 2020-09-19 19:57:03 | <merijn> | (well, throw an exception, but close enough) |
| 2020-09-19 19:57:04 | <davean> | That might not crash it if you handle the exceptions. |
| 2020-09-19 19:57:25 | <shad0w_> | hi all. whats a good second book for haskell ? |
| 2020-09-19 19:57:35 | <davean> | shad0w_: tell me what a good first book is first. |
| 2020-09-19 19:57:41 | <merijn> | Depends, what was the first one and what do you wanna learn |
| 2020-09-19 19:58:06 | <shad0w_> | i am 3/4rths through the graham hutton book. programming in haskell (2nd ed.) |
| 2020-09-19 19:58:08 | × | ukari quits (~ukari@unaffiliated/ukari) (Remote host closed the connection) |
| 2020-09-19 19:59:01 | <sm[m]> | lechner: stack install is the command that writes there. Have a look at stack install --help |
| 2020-09-19 19:59:04 | → | ukari joins (~ukari@unaffiliated/ukari) |
| 2020-09-19 19:59:23 | × | eflister quits (47ee2144@c-71-238-33-68.hsd1.or.comcast.net) (Remote host closed the connection) |
| 2020-09-19 19:59:39 | <merijn> | shad0w_: And what do you hope to get from this 2nd book that you're not getting from this one? |
| 2020-09-19 19:59:52 | <sm[m]> | lechner: actually it's in stack --help. --local-bin-dir. |
| 2020-09-19 20:00:00 | <shad0w_> | it was quite alright, a little low on details and real world projects though. |
| 2020-09-19 20:00:02 | → | bicho_rastrero joins (~cerdito@87.85-87-38.dynamic.clientes.euskaltel.es) |
| 2020-09-19 20:00:32 | <sm[m]> | that's my cue! |
| 2020-09-19 20:00:32 | <sm[m]> | @where htac is nice |
| 2020-09-19 20:00:32 | <lambdabot> | "Haskell Tutorial and Cookbook" by Mark Watson in 2017-09-04 at <https://leanpub.com/haskell-cookbook> |
| 2020-09-19 20:00:35 | <merijn> | shad0w_: What sorta details? Like "how this does compile"? |
| 2020-09-19 20:00:38 | <energizer> | thanks |
| 2020-09-19 20:01:49 | <MarcelineVQ> | Best to make something for yourself after reading a book, no book's gonna teach you how to do that truly, you'll only learn how to assemble their specific exercises :> |
| 2020-09-19 20:02:25 | → | manjaroi3 joins (~manjaro-i@2600:1700:9f00:b3df:a02:eef:be70:88de) |
| 2020-09-19 20:02:34 | <merijn> | Yeah, I'd say the best way to learn is "just start" |
| 2020-09-19 20:02:47 | <shad0w_> | merijn: not quite. i touched quite a few concepts and the write up for them was not very detailed. i'd be left feeling. hmm. there should be more on this in here, this cant all be it. |
| 2020-09-19 20:02:49 | <lechner> | sm[m]: stack upgrade also wrote there when I ran it on the outdated 1.71 version from stock debian. it seems an environment variable might be safer than just --local-bin-dir per invocation |
| 2020-09-19 20:02:53 | <merijn> | There's whole bunches of reading for specific topics/things, but best to discover them "as is" |
| 2020-09-19 20:03:04 | <shad0w_> | mostly on the haskell parts that are different from other langs |
| 2020-09-19 20:03:04 | × | gmt quits (~gmt@pool-71-105-108-44.nycmny.fios.verizon.net) (Ping timeout: 246 seconds) |
| 2020-09-19 20:03:12 | <shad0w_> | like typeclasses and more |
| 2020-09-19 20:03:24 | × | kleisli_ quits (~kleisli@172-8-147-49.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 260 seconds) |
| 2020-09-19 20:03:30 | <davean> | I've only ever got compitent by reading before doing, not really by doing personally. Doing leads to me pattern matching, reading leads to me thinking and understanding. |
| 2020-09-19 20:03:30 | <merijn> | shad0w_: Incidentally, often overlooked/underrated document is just the Haskell 2010 report which should be read by more people than it is :p |
| 2020-09-19 20:03:40 | <ski> | @where report |
| 2020-09-19 20:03:40 | <lambdabot> | http://www.haskell.org/onlinereport/haskell2010/ (more: http://www.haskell.org/haskellwiki/Definition) |
| 2020-09-19 20:03:44 | <davean> | Only when I produce something novel does doing help. |
| 2020-09-19 20:04:01 | <sm[m]> | +1 re Haskell report, also the GHC User Guide and typeclassopaedia |
| 2020-09-19 20:04:09 | <sm[m]> | and base haddock |
| 2020-09-19 20:04:16 | <merijn> | davean: Right, but if you just finish reading a programming book, you should probably try and put it into practice before grabbing a 2nd book :) |
| 2020-09-19 20:04:17 | → | nbloomf joins (~nbloomf@2600:1700:83e0:1f40:a06a:6814:10f6:3957) |
| 2020-09-19 20:04:36 | × | nbloomf quits (~nbloomf@2600:1700:83e0:1f40:a06a:6814:10f6:3957) (Client Quit) |
| 2020-09-19 20:04:38 | <ski> | @where Typeclassopedia |
| 2020-09-19 20:04:38 | <lambdabot> | http://www.haskell.org/haskellwiki/Typeclassopedia |
| 2020-09-19 20:04:41 | <shad0w_> | MarcelineVQ: i tend to agree |
| 2020-09-19 20:04:45 | <merijn> | You can keep reading until the heat death of the universe, but at some point you gotta do something :) |
| 2020-09-19 20:05:09 | <shad0w_> | just dont really feel im still comfortable with the language enough yet though. |
| 2020-09-19 20:05:23 | <shad0w_> | but then again, that happens by using it more. |
| 2020-09-19 20:05:31 | <sm[m]> | lechner: you're right, stack upgrade writes there too. Maybe there's an env var mentioned in the user guide |
| 2020-09-19 20:05:37 | → | nbloomf joins (~nbloomf@2600:1700:83e0:1f40:a06a:6814:10f6:3957) |
| 2020-09-19 20:05:44 | <bicho_rastrero> | The videos of Erik Meijer from Channel 9 are a good intro. |
| 2020-09-19 20:06:02 | <davean> | merijn: your experience and mine probably differ. |
| 2020-09-19 20:06:44 | <shad0w_> | my experience tend to lean more towards @davean side aswell. |
| 2020-09-19 20:06:52 | <shad0w_> | tends* |
| 2020-09-19 20:06:53 | × | mnrmnaugh quits (~mnrmnaugh@unaffiliated/mnrmnaugh) (Ping timeout: 260 seconds) |
| 2020-09-19 20:07:17 | <monochrom> | Speaking of which, due to quirks in human minds, the 2nd (and even the 3rd) book doesn't have to be different. |
| 2020-09-19 20:07:17 | <merijn> | shad0w_: Yeah, but "doing stuff and getting stuck" will let you know exactly *what* you don't get yet and then people can point to more specific resources |
| 2020-09-19 20:07:32 | <shad0w_> | so far, i've written down the cookbook, haskell 2010 report and typeclassopedia ? |
| 2020-09-19 20:07:40 | <davean> | typeclassopedia is great |
| 2020-09-19 20:07:43 | <merijn> | @where rwh |
| 2020-09-19 20:07:44 | <lambdabot> | http://www.realworldhaskell.org/blog/ http://book.realworldhaskell.org/read/ |
| 2020-09-19 20:07:49 | <merijn> | Oh, that's still the old one |
| 2020-09-19 20:07:53 | <monochrom> | In a math channel someone made the great observation that "the 3rd calculus textbook you read is the best". |
| 2020-09-19 20:08:01 | <merijn> | https://github.com/tssm/up-to-date-real-world-haskell |
| 2020-09-19 20:08:02 | → | sedeki joins (~textual@unaffiliated/sedeki) |
| 2020-09-19 20:08:15 | <monochrom> | This is only because some people really need the same thing repeated 3 times. |
| 2020-09-19 20:08:25 | <shad0w_> | +1 |
| 2020-09-19 20:08:46 | <merijn> | shad0w_: RWH skimps over many language details, but it does have a bunch of real world examples (although the original version's code might have bitrotted due to newer library versions) |
| 2020-09-19 20:09:05 | <merijn> | The high level ideas of "how to write a Haskell application" and the high level library designs remains relevant, though |
| 2020-09-19 20:09:11 | <shad0w_> | i can glue around those, i think ? |
| 2020-09-19 20:11:26 | <sm[m]> | shad0w_: GHC User Guide (and cabal's & stack's, really) and the base package's haddock docs are also worth knowing at least in outline |
| 2020-09-19 20:12:15 | × | mitchellsalad quits (uid40617@gateway/web/irccloud.com/x-nltqasqieelsglgp) (Quit: Connection closed for inactivity) |
| 2020-09-19 20:12:21 | <sm[m]> | maybe it was mentioned, but you also will learn fast by looking at successful FOSS projects and maybe asking for guidance in their IRC rooms |
| 2020-09-19 20:12:39 | <cohn> | ok, silly question time. Combinators are kind of the opposite of Functors, right? |
| 2020-09-19 20:13:28 | <sm[m]> | shad0w_: still more.. doing exercises will build some fluency, project euler did it for me |
| 2020-09-19 20:13:53 | <shad0w_> | okay, these links should keep me busy. |
| 2020-09-19 20:14:14 | <shad0w_> | thanks, you guys are helpful : ) |
| 2020-09-19 20:14:18 | ← | sedeki parts (~textual@unaffiliated/sedeki) ("Textual IRC Client: www.textualapp.com") |
| 2020-09-19 20:14:18 | <sm[m]> | then there's videos. Really there's too much :) |
| 2020-09-19 20:14:21 | <lechner> | okay, now i have the latest stack and ghc. which SHA512 should i get and how, please? |
| 2020-09-19 20:14:34 | → | sedeki joins (~textual@unaffiliated/sedeki) |
| 2020-09-19 20:14:36 | <shad0w_> | you guys hang around here often ? |
| 2020-09-19 20:15:18 | × | johtso quits (uid563@gateway/web/irccloud.com/x-xmeoikcxfjfjijiq) (Quit: Connection closed for inactivity) |
| 2020-09-19 20:15:48 | <shad0w_> | sm[m]: i mostly do exercism, but its getting a little repetitive for me. i think i'll give project euler a look too. |
| 2020-09-19 20:15:54 | <sm[m]> | lechner: hoogle can help find some candidate packages: https://hoogle.haskell.org/?hoogle=sha512&scope=set%3Astackage |
| 2020-09-19 20:16:08 | → | drupol joins (sid117588@gateway/web/irccloud.com/x-thtirfgpuxvejbva) |
| 2020-09-19 20:16:13 | × | sedeki quits (~textual@unaffiliated/sedeki) (Quit: Textual IRC Client: www.textualapp.com) |
| 2020-09-19 20:16:33 | <drupol> | Hello, |
| 2020-09-19 20:16:39 | → | mitchellsalad joins (uid40617@gateway/web/irccloud.com/x-evcglbwkcwzfvhut) |
| 2020-09-19 20:16:54 | <drupol> | How can I do "import Data.List.Ordered" in my code ? It doesn't work locally. |
| 2020-09-19 20:17:01 | <drupol> | Could not find module ‘Data.List.Ordered’ |
| 2020-09-19 20:17:30 | <ddellacosta> | drupol: how are you building your project? |
| 2020-09-19 20:17:52 | <drupol> | I'm just a beginner, I'm trying to do this example: https://wiki.haskell.org/Prime_numbers#Sieve_of_Eratosthenes |
All times are in UTC.